|
楼主 |
发表于 2018-1-17 16:18:23
|
显示全部楼层
本帖最后由 ptlzx 于 2018-1-17 16:20 编辑
搞定了,这本就是将就的做法,无非麻烦点手机和物理开关配合一下。毕竟这种场景有时也是需要的,好过物理开关全废。谢谢版主啊!谢谢!
顺便问下,多设备的话是不是在config.json中添加多段设置就行:
{
"accessory": "mqtt-switch-tasmota",
"name": "Sonoff_1",
"url": "mqtt://192.168.1.55:1883",
"username": "pi",
"password": "1234567890",
"topics": {
"statusGet": "stat/S1/POWER",
"statusSet": "cmnd/S1/POWER"
}
},
{
"accessory": "mqtt-switch-tasmota",
"name": "Sonoff_2",
"url": "mqtt://192.168.1.55:1883",
"username": "pi",
"password": "1234567890",
"topics": {
"statusGet": "stat/S2/POWER",
"statusSet": "cmnd/S2/POWER"
}
} |
|