From 07e1b6e2d506b416e2ec8ccd0e6a2284151bfdd6 Mon Sep 17 00:00:00 2001 From: Fredrik Erlandsson Date: Thu, 10 Oct 2019 15:33:30 +0200 Subject: [PATCH] Sorted yaml for automation (#10686) --- source/_integrations/ifttt.markdown | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/_integrations/ifttt.markdown b/source/_integrations/ifttt.markdown index 9f4f82e14d1..348ca13ccca 100644 --- a/source/_integrations/ifttt.markdown +++ b/source/_integrations/ifttt.markdown @@ -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