Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107763

Not getting state from Tasmota on mqtt

$
0
0

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?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 107763

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>