So brief backstory/setup, current version of homeassistant (2025.11.4) running through home assistant OS (16.3). Signed into home assistant cloud account, connected to alexa. Several tasmota powered light switches (connected through mqtt) exposed to alexa through homeassistant.
Ok so most of the of switches work just fine when commanded (through voice) to turn on or off from alexa. However randomly with certain switches alexa will send a turn on command, the switch will respond to it by turning on, then alexa will send a second turn on command and the switch will respond to that second one by turning off. these commands are sent within less than a second of each other as far as I can tell
I am at a loss on what could be causing this double command or why a switch would turn off in repsonse to a “turn on” command. all the switches have the same firmware version installed, all other command methods (automations, manual) work just fine. Any insight or help would be appreciated.
What does monitoring the MQTT traffic show?
Are the expected on and off command transmissions and responses actually just toggle commands, and not state aware?
so unfortunately I didn’t have anything logging the mqtt traffic at the time (it doesn’t always do it) but I did confirm that the commands are state aware, ie. if I send the “ON” command it turns on and sending a second “ON” command does nothing, the light stays on. I’ll do some more poking at it to with mqtt explorer running to log the message traffic
so I was able to make it “glitch” and verified that all the commands being sent via mqtt were correct. However when I looked through the console log on the switch (to verify the commands received) I notice that the rules I have in tasmota that are allowing the switch to work correctly (its a three switch) somehow don’t respond correctly if it receives commands that are less 0.25 seconds apart.
Still have no idea why Alexa is sending double commands though