From 39b02d24c9f993a70475b232b8631b16ed4fbde8 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Sun, 27 Sep 2015 13:55:16 -0400 Subject: [PATCH] Updated Blog Post example Updated the Blog post example for IFTTT to the new Automation format. --- ...2015-09-13-home-assistant-meets-ifttt.markdown | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/source/_posts/2015-09-13-home-assistant-meets-ifttt.markdown b/source/_posts/2015-09-13-home-assistant-meets-ifttt.markdown index cf63aa779f5..f31eb21a4ce 100644 --- a/source/_posts/2015-09-13-home-assistant-meets-ifttt.markdown +++ b/source/_posts/2015-09-13-home-assistant-meets-ifttt.markdown @@ -61,14 +61,17 @@ Setup Maker channel with event name `HA_FIRE_ALARM` and Twitter channel to tweet ```yaml # Configuration.yaml entry automation: - alias: Post a tweet when fire alarm is triggered +- alias: Post a tweet when fire alarm is triggered + trigger: + - platform: mqtt + mqtt_topic: home/alarm/fire + mqtt_payload: 'on' - platform: mqtt - mqtt_topic: home/alarm/fire - mqtt_payload: 'on' + condition: use_trigger_values - execute_service: ifttt.trigger - service_data: {"event":"HA_FIRE_ALARM", "value1":"The fire alarm just triggered!"} + action: + service: ifttt.trigger + data: {"event":"HA_FIRE_ALARM", "value1":"The fire alarm just triggered!"} ``` ## {% linkable_title Turn on lights when I get home %}