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
This commit is contained in:
Carlo Costanzo 2016-09-01 14:38:56 -04:00 committed by Fabian Affolter
parent 0604e083e8
commit e03d26d3fa

View File

@ -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.
</p>
```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].