Quick updates to Twitter.. To tweet or not to tweet. With an image. That is the question.
This commit is contained in:
parent
300f4bad4f
commit
2b1ec0e621
|
@ -139,7 +139,7 @@ automation:
|
|||
event_type: closed_github
|
||||
|
||||
action:
|
||||
- service: script.tweet_engine
|
||||
- service: script.tweet_engine_image
|
||||
data_template:
|
||||
tweet: >-
|
||||
{% set repo = trigger.event.data.repo %}
|
||||
|
@ -179,7 +179,7 @@ automation:
|
|||
- delay: '0{{ range(0,2) | random | int }}:{{ range(10,59) | random | int }}:00'
|
||||
- service: script.tweet_engine
|
||||
data_template:
|
||||
tweet: >
|
||||
tweet: >-
|
||||
{{ [
|
||||
"Beep. Bop. Beep. Boop. I am a #Bot run by @CCostan",
|
||||
"The number of Doorbell presses yesterday was {{states.sensor.doorbell_presses.state}}",
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
## Enhancements by @dale3h
|
||||
######################################################################################################
|
||||
|
||||
tweet_engine:
|
||||
tweet_engine_image:
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data_template:
|
||||
|
@ -21,6 +21,23 @@ tweet_engine:
|
|||
media: >-
|
||||
{{image}}
|
||||
|
||||
tweet_engine:
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data_template:
|
||||
topic: 'ifttt/message'
|
||||
payload: >-
|
||||
{{ tweet }}
|
||||
retain: true
|
||||
|
||||
- service: notify.BearStoneHA
|
||||
data_template:
|
||||
message: >-
|
||||
{{ tweet }} #IOT #SmartHome
|
||||
|
||||
|
||||
|
||||
|
||||
# - service: ifttt.trigger
|
||||
# data_template: {"event":"facebook_tweet", "value1":"{{ tweet }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"}
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 663 KiB After Width: | Height: | Size: 1.2 MiB |
Loading…
Reference in New Issue