I have created an automation that should activate once an event is received from my lightswitch button being pressed but the event coming in is not triggering the event.
Automation Code:
alias: Turn on lights
description: ''
trigger:
- platform: event
event_type: zha_event
event_data:
data:
device_ieee: 0c:43:14:ff:fe:7c:ec:3c,
unique_id: 0c:43:14:ff:fe:7c:ec:3c:2:0x0006,
device_id: 476d25b8760e55ab8b7a0f8ee11197d5,
endpoint_id: 2,
cluster_id: 6,
command: remote_button_short_press,
args: []
condition:
- condition: device
type: is_off
device_id: 43d79ba11cca69396f9b5fd417746ed7
entity_id: light.bathroom_door
domain: light
action:
- service: scene.turn_on
target:
entity_id: scene.hallway_lights
metadata: {}
mode: single
Raw Event when button pressed:
{
"event_type": "zha_event",
"data": {
"device_ieee": "0c:43:14:ff:fe:7c:ec:3c",
"unique_id": "0c:43:14:ff:fe:7c:ec:3c:2:0x0006",
"device_id": "476d25b8760e55ab8b7a0f8ee11197d5",
"endpoint_id": 2,
"cluster_id": 6,
"command": "remote_button_short_press",
"args": []
},
"origin": "LOCAL",
"time_fired": "2022-03-14T12:58:38.558914+00:00",
"context": {
"id": "eea3c25b8e39640ecc171116bda52597",
"parent_id": null,
"user_id": null
}
}