2018-01-02 00:00:45 +00:00
|
|
|
######################################################################################################
|
|
|
|
###Script to send notifications to Twitter as @BearStoneHA.
|
2018-01-12 16:13:55 +00:00
|
|
|
## Publish on Facebook as well - https://www.facebook.com/BearStoneHA/
|
2018-01-02 00:00:45 +00:00
|
|
|
## Enhancements by @dale3h
|
|
|
|
######################################################################################################
|
|
|
|
|
|
|
|
tweet_engine:
|
|
|
|
sequence:
|
2018-01-12 18:01:51 +00:00
|
|
|
- service: mqtt.publish
|
2018-01-02 00:00:45 +00:00
|
|
|
data_template:
|
2018-01-12 18:01:51 +00:00
|
|
|
topic: 'ifttt/message'
|
2018-01-12 18:33:07 +00:00
|
|
|
payload: >-
|
|
|
|
{{ tweet }}
|
2018-01-12 18:01:51 +00:00
|
|
|
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
|
|
|
|
|
2018-01-12 18:52:50 +00:00
|
|
|
# - service: ifttt.trigger
|
|
|
|
# data_template: {"event":"facebook_tweet", "value1":"{{ tweet }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"}
|
2018-01-12 18:33:07 +00:00
|
|
|
|
2018-01-12 18:01:51 +00:00
|
|
|
#
|
|
|
|
# - service: ifttt.trigger
|
|
|
|
# data_template:
|
|
|
|
# event: >-
|
|
|
|
# facebook_tweet
|
|
|
|
# value1: >
|
|
|
|
# {{states.sensor.ifttt_formatted_message.state}} #IOT #SmartHome
|