mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Tweaked automation (#4954)
Tweaked last automation - removed `-` for consistency with other examples
This commit is contained in:
parent
bdf356794e
commit
459f6a21a2
@ -164,7 +164,7 @@ The following automation shows how to capture the custom event `event_light_stat
|
|||||||
platform: event
|
platform: event
|
||||||
event_type: event_light_state_changed
|
event_type: event_light_state_changed
|
||||||
action:
|
action:
|
||||||
- service: notify.notify
|
service: notify.notify
|
||||||
data_template:
|
data_template:
|
||||||
message: "kitchen light is turned {{ trigger.event.data.state }}"
|
message: "kitchen light is turned {{ trigger.event.data.state }}"
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user