Sorted yaml for automation (#10686)

This commit is contained in:
Fredrik Erlandsson 2019-10-10 15:33:30 +02:00 committed by Fabian Affolter
parent c6dc5533f1
commit 07e1b6e2d5

View File

@ -36,14 +36,15 @@ automation:
- id: this_is_the_automation_id
alias: The optional automation alias
trigger:
platform: event
event_type: ifttt_webhook_received
event_data:
- event_data:
action: call_service
event_type: ifttt_webhook_received
platform: event
condition: []
action:
service_template: '{% raw %}{{ trigger.event.data.service }}{% endraw %}'
data_template:
- data_template:
entity_id: '{% raw %}{{ trigger.event.data.entity_id }}{% endraw %}'
service_template: '{% raw %}{{ trigger.event.data.service }}{% endraw %}'
```
## Sending events to IFTTT