百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
H

hampton-bay-fan-mqtt

> 编程语言
开源

用于控制 Hampton Bay 风扇的 MQTT/RF 桥接器

100 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

用于控制 Hampton Bay 风扇的 MQTT/RF 桥接器

Hampton Bay Fan MQTT

Overview

ESP8266 project enabling MQTT control for a Hampton Bay fan with a wireless receiver. Wireless communication is performed with a CC1101 wireless transceiver operating at 303 MHz.

This will also monitor for Hampton Bay RF signals so the state will stay in sync even if the original remote is used to control the fan.

Fan control is not limited to a single dip switch setting, so up to 16 fans can be controlled with one ESP8266.

Dependencies

This project uses the following libraries that are available through the Arduino IDE

  • SmartRC-CC1101-Driver-Lib by LSatan
  • rc-switch by sui77
  • PubSubClient by Nick O'Leary

Hardware

  • ESP8266 development board (Tested with a NodeMCU v2 and a D1 Mini)
  • CC1101 wireless transceiver
    • Wiring info can be found in the SmartRC-CC1101-Driver-Lib readme

Setup

Configuration

Change the WIFI_* and MQTT_* definitions in the sketch to match your network settings before uploading to the ESP.

MQTT

By default, the state/command topics will be

  • Fan on/off (payload ON or OFF)
    • home/hamptonbay//on/state
    • home/hamptonbay//on/set
  • Fan speed (payload low, medium, or high)
    • home/hamptonbay//speed/state
    • home/hamptonbay//speed/set
  • Light on/off (payload ON or OFF)
    • home/hamptonbay//light/state
    • home/hamptonbay//light/set

fan_id is a 4-digit binary number determined by the dip switch settings on the transmitter/receiver where up = 1 and down = 0. For example, the dip setting:

1 2 3 4
↑ ↓ ↓ ↓

...corresponds to a fan ID of 1000

Home Assistant

To use this in Home Assistant as an MQTT Fan and MQTT Light, I'm using this config

…

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言