From e03d26d3fab20a98a94454717df79fab8092969b Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Thu, 1 Sep 2016 14:38:56 -0400 Subject: [PATCH] Added an example of an Automation using IFTTT (#884) * Added an example of an Automation using IFTTT For me, the data entry was confusing so hopefully this example helps clear it up. * Update ifttt.markdown --- source/_components/ifttt.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/_components/ifttt.markdown b/source/_components/ifttt.markdown index c5adde1b462..ce87fdaf248 100644 --- a/source/_components/ifttt.markdown +++ b/source/_components/ifttt.markdown @@ -55,6 +55,18 @@ When your screen looks like this, click the 'call service' button. You need to setup a unique trigger for each event you sent to IFTTT.

+```yaml +# Example configuration.yaml Automation entry +automation: + - alias: Startup Notification + trigger: + platform: event + event_type: homeassistant_start + action: + service: ifttt.trigger + data: {"event":"TestHA_Trigger", "value1":"Hello World!"} +``` + ### {% linkable_title Sending events from IFTTT to Home Assistant %} To be able to receive events from IFTTT, your Home Assistant instance needs to be accessible from the web. This can be achieved by forwarding port 8123 from your router to the device running Home Assistant. If your ISP is giving you a new IP address from time to time, consider using [DuckDNS][duck-dns].