zigbee2mqtt / hassio-zigbee2mqtt

Official Zigbee2MQTT Home Assistant add-on
https://www.zigbee2mqtt.io
Apache License 2.0
1.02k stars 362 forks source link

Mi wireless switch (WXKG01LM) problem after update to v1.36.0 #579

Closed GregoryZet closed 3 months ago

GregoryZet commented 4 months ago

Description of the issue

After update zigbee2mqtt Addon to v1.36.0, the button Mi wireless switch (WXKG01LM) started to interpret a single click as a long press. Automations triggered by a single click no longer work. The situation occurs on all Mi wireless switch (WXKG01LM)

Addon version

v1.36.0

Platform

Core 2024.2.4 Supervisor 2024.02.1 Operating System 12.0

Logs of the issue (if applicable)

In Z2M log "single click" looks like this (MQTT publish two different action topics) :

info 2024-03-02 19:01:29MQTT publish: topic 'zigbee2mqtt/switch_1', payload '{"action":"single","battery":100,"click":null,"linkquality":54,"power_outage_count":95,"voltage":3022}' info 2024-03-02 19:01:29MQTT publish: topic 'zigbee2mqtt/switch_1', payload '{"action":"","battery":100,"click":null,"linkquality":54,"power_outage_count":95,"voltage":3022}' info 2024-03-02 19:01:30MQTT publish: topic 'zigbee2mqtt/switch_1/action', payload 'single' info 2024-03-02 19:01:30MQTT publish: topic 'zigbee2mqtt/switch_1', payload '{"action":null,"battery":100,"click":"long","linkquality":54,"power_outage_count":95,"voltage":3022}' info 2024-03-02 19:01:30MQTT publish: topic 'zigbee2mqtt/switch_1', payload '{"action":null,"battery":100,"click":"","linkquality":54,"power_outage_count":95,"voltage":3022}' info 2024-03-02 19:01:30MQTT publish: topic 'zigbee2mqtt/switch_1/click', payload 'long'

engal89 commented 4 months ago

I reported the same issue in the Z2M official repo: https://github.com/Koenkk/zigbee2mqtt/issues/21661 . Hope can be useful.

LagaV commented 3 months ago

+1

Koenkk commented 3 months ago

will be fixed in the 1 April release.