Home-AssistantConfig/script/tweet.yaml

31 lines
1007 B
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
######################################################################################################
###Script to send notifications to Twitter as @BearStoneHA.
## Publish on Facebook as well - https://www.facebook.com/BearStoneHA/
2018-01-02 00:00:45 +00:00
## Enhancements by @dale3h
######################################################################################################
tweet_engine:
sequence:
- service: mqtt.publish
2018-01-02 00:00:45 +00:00
data_template:
topic: 'ifttt/message'
2018-01-12 18:33:07 +00:00
payload: >-
{{ tweet }}
retain: true
2018-01-11 20:39:24 +00:00
2018-01-12 18:33:07 +00:00
- service: notify.BearStoneHA
data_template:
message: >-
{{ tweet }} #IOT #SmartHome
- service: ifttt.trigger
data_template: {"event":"facebook_tweet", "value1":"{{ tweet }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"}
#
# - service: ifttt.trigger
# data_template:
# event: >-
# facebook_tweet
# value1: >
# {{states.sensor.ifttt_formatted_message.state}} #IOT #SmartHome