Testing out the REPEAT Loop Funtionality in my YouTube Script.
This commit is contained in:
parent
602b43f672
commit
504ea6eebf
|
@ -28,22 +28,26 @@ automation:
|
||||||
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
|
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- delay: '00:10:00'
|
- repeat:
|
||||||
|
count: 1
|
||||||
- service: script.tweet_engine_no_image
|
sequence:
|
||||||
data:
|
- delay: '00:03:00'
|
||||||
tweet: >
|
- service: script.tweet_engine_no_image
|
||||||
{{ [
|
data:
|
||||||
"New Video! {{ states('sensor.vcloudinfo') }} - {{ state_attr('sensor.vcloudinfo','url') }} "
|
tweet: >
|
||||||
] | random }}
|
{{ [
|
||||||
who: 'ccostan'
|
"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
|
- service: script.tweet_engine_no_image
|
||||||
data:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"New Video! {{ states('sensor.vcloudinfo') }} - {{ state_attr('sensor.vcloudinfo','url') }} "
|
"New Video! {{ states('sensor.vcloudinfo') }} - {{ state_attr('sensor.vcloudinfo','url') }} "
|
||||||
] | random }}
|
] | random }}
|
||||||
who: 'BearStoneHA'
|
who: 'BearStoneHA'
|
||||||
|
|
||||||
|
- delay: '12:30:00'
|
||||||
|
|
|
@ -100,11 +100,9 @@
|
||||||
rgb_color: &green [0,128,0]
|
rgb_color: &green [0,128,0]
|
||||||
light.led_garage_snip:
|
light.led_garage_snip:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
light.led_garage_small:
|
light.led_garage_small:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
light.led_outdoor_den:
|
light.led_outdoor_den:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
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 |
Loading…
Reference in New Issue