So far I have tried several things and nothing has worked.
1: I tried the simplest solution of selecting device trigger in the editor and choosing my button and "button pressed" as the trigger. However this did not work,
After some research I found out the device triggers are pretty inconsistent and events were the way to go.
2: I made an event listener for "zha_event" and got this output when I clicked the button:
data:
device_ieee: a4:c1:38:91:80:57:91:2f
unique_id: a4:c1:38:91:80:57:91:2f:1:0x0006
device_id: 8bc04cbd4614c3d458369700193371b3
endpoint_id: 1
cluster_id: 6
command: remote_button_short_press
args: []
params: {}
origin: LOCAL
time_fired: "2024-11-18T04:42:55.976099+00:00"
context:
id: 01JCYS9D38NS78GCP4GDTZQ2M8
parent_id: null
user_id: null```
I then selected "manual trigger" in the automation editor and pasted:
```data:
device_ieee: a4:c1:38:91:80:57:91:2f
unique_id: a4:c1:38:91:80:57:91:2f:1:0x0006
device_id: 8bc04cbd4614c3d458369700193371b3
endpoint_id: 1
cluster_id: 6
command: remote_button_short_press```
and set event type to "zha_event"
this still did not work
This is the complete YAML for the automation:
```alias: Living room lights toggle
description: ""
triggers:
- trigger: event
event_type: zha_event
event_data:
data:
device_ieee: a4:c1:38:91:80:57:91:2f
unique_id: a4:c1:38:91:80:57:91:2f:1:0x0006
device_id: 8bc04cbd4614c3d458369700193371b3
endpoint_id: 1
cluster_id: 6
command: remote_button_short_press
conditions: []
actions:
- type: toggle
device_id: 46b25bd7fe0916b3b0271e8232915dc2
entity_id: 287678a655762326134180b9bdc8ba83
domain: light
- type: toggle
device_id: 95cb4dcb47498ac6e02efc093fe7ce53
entity_id: 3f55b857052e7c51044f9ffcad6d0871
domain: light
mode: single```
I am still new to HA and don't have a great handle on editing YAML, so any help would be appreciated!