I have TS0042 button added from Zigbee2Mqtt.
When I restart my NAS where is the HA with Zigbee2Mqtt and use the button first time I see in the entity that HA have got the action. I see it here (it changes action to 1_single):
![Image]()
But in my automation “1_single” actions is not triggered. It is triggered when I press it again. Why?
I have made workaround that monitor state change and it worked but for next times I get 2 triggers invoked and it won’t work if the state of the button was “1_single” already. It look like this:
![Image]()
First press - “When Event type of Przyciski łazienka Action changes to 1_single” is triggered
Next presses - both are triggered
Logs from first button press:
2025-04-04 13:01:16.439 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.przyciski_lazienka_battery, old_state=<state sensor.przyciski_lazienka_battery=unknown; state_class=measurement, unit_of_measurement=%, device_class=battery, friendly_name=Przyciski łazienka Bateria @ 2025-04-04T13:01:02.927690+02:00>, new_state=<state sensor.przyciski_lazienka_battery=98; state_class=measurement, unit_of_measurement=%, device_class=battery, friendly_name=Przyciski łazienka Bateria @ 2025-04-04T13:01:16.439508+02:00>>
2025-04-04 13:01:16.444 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=event.przyciski_lazienka_action, old_state=<state event.przyciski_lazienka_action=2025-04-04T10:33:19.081+00:00; event_types=['1_single', '1_double', 'hold', '2_single', '2_double'], event_type=2_single, icon=mdi:gesture-double-tap, friendly_name=Przyciski łazienka Action @ 2025-04-04T13:01:02.925220+02:00>, new_state=<state event.przyciski_lazienka_action=2025-04-04T11:01:16.439+00:00; event_types=['1_single', '1_double', 'hold', '2_single', '2_double'], event_type=1_single, icon=mdi:gesture-double-tap, friendly_name=Przyciski łazienka Action @ 2025-04-04T13:01:16.443382+02:00>>
2025-04-04 13:01:16.489 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: device_automation 0x187a3efffe3bafb7 action_1_single from external application Zigbee2MQTT, version: 2.2.0, support URL: https://www.zigbee2mqtt.io
Second press:
2025-04-04 13:08:08.956 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=event.przyciski_lazienka_action, old_state=<state event.przyciski_lazienka_action=2025-04-04T11:01:16.439+00:00; event_types=['1_single', '1_double', 'hold', '2_single', '2_double'], event_type=1_single, icon=mdi:gesture-double-tap, friendly_name=Przyciski łazienka Action @ 2025-04-04T13:01:16.443382+02:00>, new_state=<state event.przyciski_lazienka_action=2025-04-04T11:08:08.955+00:00; event_types=['1_single', '1_double', 'hold', '2_single', '2_double'], event_type=1_single, icon=mdi:gesture-double-tap, friendly_name=Przyciski łazienka Action @ 2025-04-04T13:08:08.955922+02:00>>
2025-04-04 13:08:08.956 DEBUG (MainThread) [homeassistant.components.automation.wlacz_radio_w_lazience] Automation trigger 'None' triggered by mqtt topic zigbee2mqtt/Przyciski łazienka/action
Zigbee2Mqtt version: 2.2.0
2 posts - 2 participants
Read full topic