Here is my configuration:
- platform: mqtt
name: "sonoff_pow_02"
state_topic: "home/energy/sonoff_pow_02/POWER"
command_topic: "home/energy/sonoff_pow_02/POWER"
payload_on: "ON"
payload_off: "OFF"
retain: true
If I turn on/off switch on tasmota web interface I see changes in HA. When try toggle mqtt switch in HA is not working.