Update automation.markdown (#10786)

* Update automation.markdown

Service notation changed to yaml.

* ✏️ Tweak
This commit is contained in:
a-r-j-a-n 2019-10-15 11:34:26 +02:00 committed by Fabian Affolter
parent 9671a7479c
commit e2896d30d0

View File

@ -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.
</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'>
<img src='/images/getting-started/automation-new-action.png'>