Hi there,
Hoping someone can clear something up for me. I recently reflashed a few of my Sonoff devices with the Tasmota firmware as it includes Alexa integration out of the box as I wanted to remove Fauxmo from my HA Pi.
The issue is this. I can get Alexa to change the state of the Sonoff device, however, I believe that Home Assistant is changing the device back to its former state - this maybe linked to my mqtt config. Included below are a portion of the mqtt config and the log entry from the Sonoff. At 14:58 Alexa has been told to turn on the Sonoff and at 15:04 I believe that Home Assistant is restoring the previous status. Note although it states that it’s connected/reconnected the power hasn’t been removed at any point from the Sonoff. Any help appreciated.
- platform: mqtt
name: "sonoff-s20.166"
friendly_name: Spare S20
state_topic: "stat/sonoff-s20.166/POWER"
command_topic: "cmnd/sonoff-s20.166/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
14:58:54 HTP: WeMo basic event
14:58:54 MQT: stat/sonoff-s20.166/RESULT = {“POWER”:“ON”}
14:58:54 MQT: stat/sonoff-s20.166/POWER = ON
14:58:55 CFG: Saved to flash at F4, Count 144, Bytes 164815:03:56 WIF: Checking connection…
15:03:56 WIF: Connected
15:03:56 HTP: WeMo setup
15:04:03 UPP: WeMo Type 2, Response sent to 192.168.0.127:8308
15:04:05 UPP: WeMo Type 2, Response sent to 192.168.0.127:8308
15:04:07 HTP: WeMo setup
15:04:10 UPP: WeMo Type 2, Response sent to 192.168.0.200:59000
15:04:11 UPP: WeMo Type 2, Response sent to 192.168.0.200:59000
15:04:13 UPP: WeMo Type 2, Response sent to 192.168.0.200:59000
15:04:29 UPP: Multicast disabled
15:04:29 MQT: Attempting connection…
15:04:32 MQT: Connected
15:04:32 MQT: tele/sonoff-s20.166/LWT = Online (retained)
15:04:32 MQT: cmnd/sonoff-s20.166/POWER =
15:04:32 MQT: Subscribe to cmnd/sonoff-s20.166/#
15:04:32 MQT: Subscribe to cmnd/sonoffs/#
15:04:32 MQT: Subscribe to cmnd/sonoff-s20.166/#
15:04:33 UPP: Multicast (re)joined
15:04:33 RSL: Received Topic cmnd/sonoff-s20.166/POWER, Data Size 3, Data OFF
15:04:33 RSL: Group 0, Index 1, Command POWER, Data OFF
15:04:33 MQT: stat/sonoff-s20.166/RESULT = {“POWER”:“OFF”}
15:04:33 MQT: stat/sonoff-s20.166/POWER = OFF
15:04:34 CFG: Saved to flash at FB, Count 145, Bytes 1648
15:04:34 RSL: Received Topic cmnd/sonoff-s20.166/POWER, Data Size 3, Data OFF
15:04:34 RSL: Group 0, Index 1, Command POWER, Data OFF
15:04:34 MQT: stat/sonoff-s20.166/RESULT = {“POWER”:“OFF”}
15:04:34 MQT: stat/sonoff-s20.166/POWER = OFF
15:04:35 UPP: WeMo Type 2, Response sent to 192.168.0.100:35159