Home-AssistantConfig/script/tweet.yaml

26 lines
851 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'
payload: "{{ tweet }}"
retain: true
2018-01-11 20:39:24 +00:00
# - service: notify.BearStoneHA
# data_template:
# message: >-
# {{ tweet }} #IOT #SmartHome
#
# - service: ifttt.trigger
# data_template:
# event: >-
# facebook_tweet
# value1: >
# {{states.sensor.ifttt_formatted_message.state}} #IOT #SmartHome