上一篇 使用ESPHome烧录固件到ESP32-C3并接入HomeAssistant文章中,我们使用ESPHome生成四种控制灯的代码,并烧录到ESP32-C3中,然后又在HomeAssistant中添加了自定义集成: ESPHome。
这篇我们接入巴法云,让小爱同学控制灯。
一、HomeAssistant集成巴法云
https://github.com/larry-wong/bemfa
1. 登陆官网注册,获取私钥
https://cloud.bemfa.com/tcp/devicemqtt.html
2. 手动安装插件
git clone https://github.com/larry-wong/bemfa
cp -r bemfa/custom_components/bemfa /root/homeassistant/custom_components
3. 配置要同步的实体
4.查看是否同步成功
5.微信小程序远程控制
二、米家连接巴法平台
我的 > 连接其他平台 > 添加 > 巴法
三、最终效果
【站在知识源头搞技术】第一支视频求三连!