zigbee2mqtt
zigbee2mqtt copied to clipboard
Light switches sending off before on
What happened?
I have light switches from different brands. When turning any of them on, z2m sends and off before on as status. This is problematic when programming triggers for the on or off state.
See these logs as an example where the light switch was turned on:
https://www.zigbee2mqtt.io/devices/5120.1200.html#iluminize-5120.1200
Info 2023-10-28 08:47:20MQTT publish: topic 'zigbee2mqtt/LichtschalterSchlafenKelly', payload '{"last_seen":"2023-10-28T08:47:19+02:00","linkquality":72,"state":"OFF"}'
Info 2023-10-28 08:47:20MQTT publish: topic 'zigbee2mqtt/LichtschalterSchlafenKelly', payload '{"last_seen":"2023-10-28T08:47:19+02:00","linkquality":72,"state":"ON"}'
https://www.zigbee2mqtt.io/devices/ZBMINIL2.html#sonoff-zbminil2
Info 2023-10-28 08:37:51MQTT publish: topic 'zigbee2mqtt/LichtschalterHobbyraum', payload '{"last_seen":"2023-10-28T08:37:50+02:00","linkquality":43,"power_on_behavior":"previous","state":"OFF","update":{"installed_version":4110,"latest_version":4110,"state":"idle"}}'
Info 2023-10-28 08:37:51MQTT publish: topic 'zigbee2mqtt/LichtschalterHobbyraum', payload '{"last_seen":"2023-10-28T08:37:50+02:00","linkquality":43,"power_on_behavior":"previous","state":"ON","update":{"installed_version":4110,"latest_version":4110,"state":"idle"}}'
What did you expect to happen?
No response
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.33.1-dev commit: 0e55b382
Adapter firmware version
20230507
Adapter
Egony Stick V4
Debug log
No response
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days