I got the following event that I would like to use as a trigger for an automation:
{
"event_type": "call_service",
"data": {
"domain": "climate",
"service": "turn_on",
"service_data": {
"device_id": [
"dd37d290664d2379853d2e95172aa838"
]
}
},
"origin": "LOCAL",
"time_fired": "2022-06-15T23:28:39.076078+00:00",
"context": {
"id": "01G5MV5443MBN1S1PMMR6GFNZE",
"parent_id": "01G5MV544SSVKBTI7FRSTGG3WG",
"user_id": null
}
}
I tried
platform: event
event_type: call_service
event_data:
domain: climate
service: turn_on
service_data:
device_id: dd37d290664d2379853d2e95172aa838
id: ServiceCall
and
platform: event
event_type: call_service
event_data:
domain: climate
service: turn_on
device_id: dd37d290664d2379853d2e95172aa838
id: ServiceCall
but neither worked, the automation does not get triggered. However, if I remove the part with the device id it works. Thus, I assume that I got the wrong syntax. Can someone please tell me how the trigger would have to look like? Thanks!