@Steen67 wrote:
I have a problem with a binary sensor
I have make this 2 rules i tasmota
Rule1 on switch1#state do publish stat/sonoff_rf/RESULT {"POWER1":"%value%"} endon Rule2 on switch2#state do publish stat/sonoff_rf/RESULT {"POWER2":"%value%"} endon
It works fine, I get this topic
13:28:01 MQT: stat/sonoff_rf/RESULT = {"POWER1":"1"} 13:28:04 RUL: SWITCH1#STATE performs "publish stat/sonoff_rf/RESULT {"POWER1":"0"}" 13:28:04 MQT: stat/sonoff_rf/RESULT = {"POWER1":"0"} 13:28:05 RUL: SWITCH1#STATE performs "publish stat/sonoff_rf/RESULT {"POWER1":"1"}" 13:28:05 MQT: stat/sonoff_rf/RESULT = {"POWER1":"1"} 13:28:12 RUL: SWITCH2#STATE performs "publish stat/sonoff_rf/RESULT {"POWER2":"0"}" 13:28:12 MQT: stat/sonoff_rf/RESULT = {"POWER2":"0"} 13:28:13 RUL: SWITCH2#STATE performs "publish stat/sonoff_rf/RESULT {"POWER2":"1"}" 13:28:13 MQT: stat/sonoff_rf/RESULT = {"POWER2":"1"}
But how do I make a binary sensor ?
This does not work- platform: mqtt state_topic: "stat/sonoff_rf/RESULT" name: 'Dor' value_template: '{{value_json.POWER1.Data}}' payload_on: '1' payload_off: "0" device_class: door qos: 1
Posts: 1
Participants: 1