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'

View File

@ -100,11 +100,9 @@
rgb_color: &green [0,128,0]
light.led_garage_snip:
state: 'on'
#color_name: 'Green'
rgb_color: *green
light.led_garage_small:
state: 'on'
#color_name: 'Green'
rgb_color: *green
light.led_outdoor_den:
state: 'on'

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB