I have a Tasmota POW setup and getting sensors values ok and the switch can be controlled but I am not getting State updates.
mqtt:
switch:
name: "Waterpump Switch"
state_topic: "stat/sonoff2/power"
command_topic: "cmnd/sonoff2/power"
# availability:
# - topic: "stat/sonoff2/power"
payload_on: "ON"
payload_off: "OFF"
state_on: "ON"
state_off: "OFF"
I have tried setting the availability topic as commented out above. This changes the default icon but the switch then fails to respond.
Not sure what I am doing wrong. I tried adding a value_template:
value_template: '{{ value_json["POWER"] }}'
but no success.
The Sonoff console shows responses like this:
10:33:01 MQT: stat/sonoff2/RESULT = {"POWER":"ON"}
10:33:01 MQT: stat/sonoff2/POWER = ON
Any clues for what I am missing?