mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Updated Blog Post example
Updated the Blog post example for IFTTT to the new Automation format.
This commit is contained in:
parent
3c4d6601ac
commit
39b02d24c9
@ -61,14 +61,17 @@ Setup Maker channel with event name `HA_FIRE_ALARM` and Twitter channel to tweet
|
|||||||
```yaml
|
```yaml
|
||||||
# Configuration.yaml entry
|
# Configuration.yaml entry
|
||||||
automation:
|
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
|
condition: use_trigger_values
|
||||||
mqtt_topic: home/alarm/fire
|
|
||||||
mqtt_payload: 'on'
|
|
||||||
|
|
||||||
execute_service: ifttt.trigger
|
action:
|
||||||
service_data: {"event":"HA_FIRE_ALARM", "value1":"The fire alarm just triggered!"}
|
service: ifttt.trigger
|
||||||
|
data: {"event":"HA_FIRE_ALARM", "value1":"The fire alarm just triggered!"}
|
||||||
```
|
```
|
||||||
|
|
||||||
## {% linkable_title Turn on lights when I get home %}
|
## {% linkable_title Turn on lights when I get home %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user