Updated with some new Tweet Logic and easier names - #720 - YouTube Sensors as well.

This commit is contained in:
ccostan
2020-06-27 13:24:25 -04:00
parent 199b79d6ec
commit 691ee15e9d
10 changed files with 73 additions and 57 deletions

View File

@@ -23,10 +23,20 @@ automation:
entity_id: sensor.vcloudinfo
action:
- service: script.tweet_engine_image
- service: script.tweet_engine_no_image
data_template:
tweet: >
{{ [
"New Video! {{ states('sensor.vcloudinfo_info') }} - {{ state_attr('sensor.vcloudinfo','url') }} "
] | random }}
image: "{{state_attr('sensor.vcloudinfo','entity_picture')}}"
who: 'ccostan'
- delay: '00:10:00'
- service: script.tweet_engine_no_image
data_template:
tweet: >
{{ [
"New Video! {{ states('sensor.vcloudinfo_info') }} - {{ state_attr('sensor.vcloudinfo','url') }} "
] | random }}
who: 'BearStoneHA'