You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Z2M 2.0, only "hold" actions are send to the event entity.
It is not producing event for hold action correctly.
What did you expect to happen?
In HA only legacy sensor detects "4_hold", new event sensor detects just "hold", without button reference:
How to reproduce it (minimal and precise)
Even in list for all available events it is just plain "hold", without reference to exact button:
seems like not all Action (enum) exposed in HA correctly
Zigbee2MQTT version
2.0.0
Adapter firmware version
20240710
Adapter
zStack3x0
Setup
Homeassistant OS
Debug log
info 2025-01-11 14:40:00z2m:mqtt: MQTT publish: topic 'homeassistant/device_automation/0x84fd27fffe803813/action_4_hold/config', payload '{"automation_type":"trigger","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0x84fd27fffe803813"],"manufacturer":"Tuya","model":"Wireless switch with 4 buttons","model_id":"TS004F","name":"4 Button Switch","via_device":"zigbee2mqtt_bridge_0x00124b0024bfc9c6"},"origin":{"name":"Zigbee2MQTT","sw":"2.0.0","url":"https://www.zigbee2mqtt.io"},"payload":"4_hold","subtype":"4_hold","topic":"zigbee2mqtt/4 Button Switch/action","type":"action"}'
info 2025-01-11 14:40:01z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/4 Button Switch/action', payload '4_hold'
The text was updated successfully, but these errors were encountered:
The issue is that 4_hold matches a regular expression that splits the event payload into the actual action happening (hold) and a separate attribute button, but that regex does not consider the actions single and double. This is something that will be addressed when event entities are reworked after #25061 has been decided.
What happened?
In Z2M 2.0, only "hold" actions are send to the event entity.
It is not producing event for hold action correctly.
What did you expect to happen?
In HA only legacy sensor detects "4_hold", new event sensor detects just "hold", without button reference:
![image](https://private-user-images.githubusercontent.com/93051097/402369385-b1eaff9d-e8f8-4b8d-9feb-e6406aef2ec7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDg5NzYsIm5iZiI6MTczODkwODY3NiwicGF0aCI6Ii85MzA1MTA5Ny80MDIzNjkzODUtYjFlYWZmOWQtZThmOC00YjhkLTlmZWItZTY0MDZhZWYyZWM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA2MTExNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZkODk2NzNlNmVmMzNmNTU0YjU2ZmRkNGZjYzJmZWU2ZWUzM2IxZmIwYTlmNGI5OTE2MmRkMThhOGYzOTQyMzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Mez0zn12YAF_kPwAhr1nqR9GT7XBB6biDPUz8-yhUCg)
How to reproduce it (minimal and precise)
Even in list for all available events it is just plain "hold", without reference to exact button:
![image](https://private-user-images.githubusercontent.com/93051097/402369416-f7582323-0713-4ad9-b038-ed87d9291d9a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDg5NzYsIm5iZiI6MTczODkwODY3NiwicGF0aCI6Ii85MzA1MTA5Ny80MDIzNjk0MTYtZjc1ODIzMjMtMDcxMy00YWQ5LWIwMzgtZWQ4N2Q5MjkxZDlhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA2MTExNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdmMzQ4YzQyMTU3YjkzMjg1NjBiODgwOWUyZWQ1ZmI0YTRmNTc2YzZlY2VkYTUxMTJhYjlmMGE3Yzg0YjA2YTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hEkQPzPCOxWyejr-hBS97BZOEeFf21mHvZ15CLKWcqs)
seems like not all Action (enum) exposed in HA correctly
Zigbee2MQTT version
2.0.0
Adapter firmware version
20240710
Adapter
zStack3x0
Setup
Homeassistant OS
Debug log
info 2025-01-11 14:40:00z2m:mqtt: MQTT publish: topic 'homeassistant/device_automation/0x84fd27fffe803813/action_4_hold/config', payload '{"automation_type":"trigger","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0x84fd27fffe803813"],"manufacturer":"Tuya","model":"Wireless switch with 4 buttons","model_id":"TS004F","name":"4 Button Switch","via_device":"zigbee2mqtt_bridge_0x00124b0024bfc9c6"},"origin":{"name":"Zigbee2MQTT","sw":"2.0.0","url":"https://www.zigbee2mqtt.io"},"payload":"4_hold","subtype":"4_hold","topic":"zigbee2mqtt/4 Button Switch/action","type":"action"}'
info 2025-01-11 14:40:01z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/4 Button Switch/action', payload '4_hold'
The text was updated successfully, but these errors were encountered: