Hi,
I am using discovery function in HA with Tasmota. I have two devices.
“A” device topic was set to “sonoff”. It was discovered in HA, but I changed topic later to “sonoffs20_2”.
2018-10-20 23:36:35 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on stat/sonoffs20_2/RESULT: b'{"POWER":"ON"}'
2018-10-20 23:36:36 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on stat/sonoffs20_2/RESULT: b'{"POWER":"OFF"}'
I added a new device “B”, with default topic “sonoff”. The problem is, when I turn on/off device “B” it toggles device “A” switch (as I wrote “A”'s topic already was changed to something else).
2018-10-20 23:36:07 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on stat/sonoff/RESULT: b'{"POWER":"OFF"}'
2018-10-20 23:36:12 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on stat/sonoff/RESULT: b'{"POWER":"ON"}'
It only changes switch status in HA, it does not toggle the relay on device “A”.
If I change “A” device topic, I think it should delete any old connection to that switch.
What’s happening here?