1
11
129
论坛积极会员
使用道具 举报
32
986
4233
论坛元老
27hh 发表于 2018-1-22 13:20 接入 sonoff 时写的配置文件,你应该记得里面有个 retain 参数,改成 false 即可。 ...
platform: mqtt name: "bedroom" state_topic: stat/S1/POWER command_topic: cmnd/S1/POWER qos: 1 payload_on: "ON" payload_off: "OFF" retain: false
skjgsk 发表于 2018-1-22 17:13 [code]platform: mqtt name: "bedroom" state_topic: stat/S1/POWER
powerretain 0
/var/lib/mosquitto/mosquitto.db (也有可能在其他位置)
本版积分规则 发表回复 回帖后跳转到最后一页
教程高产大神,简直就是为了教程而生~
在众坛友心目中具有较高技术与威望,为社区繁荣作出重要贡献
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2024-12-23 17:32 , Processed in 0.051632 second(s), 26 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.