mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
Update automation.markdown (#10786)
* Update automation.markdown
Service notation changed to yaml.
* ✏️ Tweak
This commit is contained in:
parent
9671a7479c
commit
e2896d30d0
@ -28,7 +28,11 @@ In the trigger section, click on the dropdown and change trigger type to "Sun".
|
|||||||
A new automation with a sun trigger filled in.
|
A new automation with a sun trigger filled in.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
Once we have defined our trigger, scroll down to the action section. Make sure the action type is set to "Call Service" and change the service to `light.turn_on`. For this automation we're going to turn on all lights, so let's change the service data to `{ "entity_id": "all" }`.
|
Once we have defined our trigger, scroll down to the action section. Make sure the action type is set to "Call Service" and change the service to `light.turn_on`. For this automation we're going to turn on all lights, so let's change the service data to:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
entity_id: all
|
||||||
|
```
|
||||||
|
|
||||||
<p class='img'>
|
<p class='img'>
|
||||||
<img src='/images/getting-started/automation-new-action.png'>
|
<img src='/images/getting-started/automation-new-action.png'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user