Testing out the REPEAT Loop Funtionality in my YouTube Script.

This commit is contained in:
ccostan
2020-10-07 14:14:05 -04:00
parent 602b43f672
commit 504ea6eebf
6 changed files with 32 additions and 30 deletions

View File

@@ -28,22 +28,26 @@ automation:
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
action:
- delay: '00:10:00'
- service: script.tweet_engine_no_image
data:
tweet: >
{{ [
"New Video! {{ states('sensor.vcloudinfo') }} - {{ state_attr('sensor.vcloudinfo','url') }} "
] | random }}
who: 'ccostan'
- repeat:
count: 1
sequence:
- delay: '00:03:00'
- service: script.tweet_engine_no_image
data:
tweet: >
{{ [
"New Video! {{ states('sensor.vcloudinfo') }} - {{ state_attr('sensor.vcloudinfo','url') }} "
] | random }}
who: 'ccostan'
- delay: '00:10:00'
- delay: '00:10:00'
- service: script.tweet_engine_no_image
data:
tweet: >
{{ [
"New Video! {{ states('sensor.vcloudinfo') }} - {{ state_attr('sensor.vcloudinfo','url') }} "
] | random }}
who: 'BearStoneHA'
- service: script.tweet_engine_no_image
data:
tweet: >
{{ [
"New Video! {{ states('sensor.vcloudinfo') }} - {{ state_attr('sensor.vcloudinfo','url') }} "
] | random }}
who: 'BearStoneHA'
- delay: '12:30:00'