diff --git a/atom.xml b/atom.xml index 8ac042ec9e..48f02a722f 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
The following automation shows how to raise a custom event called event_light_turned_on
with entity_id
as the event data. The action part could be inside a script or an automation.
- alias: Fire Event
+ trigger:
+ platform: state
+ entity_id: light.kitchen
+ to: 'on'
+ action:
+ event: event_light_turned_on
+ event_data:
+ entity_id: ""
+
+The following automation shows how to capture the custom event event_light_turned_on
, and retrieve corresponsing entity_id
that was passed as the event data.
- alias: Capture Event
+ trigger:
+ platform: event
+ event_type: light_turned_on
+ action:
+ - service: notify.notify
+ data_template:
+ message: " is turned on."
+
+