Updates to random delays. Making them even more random of course! :)

This commit is contained in:
ccostan
2018-06-14 15:33:39 -04:00
parent 1e6368798a
commit 87b0fa3adf
8 changed files with 16 additions and 21 deletions

View File

@@ -107,13 +107,14 @@ automation:
"/config/www/custom_ui/floorplan/images/branding/space2.png",
"/config/www/custom_ui/floorplan/images/branding/starman.png"
] | random }}
- alias: 'Full Moon -Tweet'
trigger:
- platform: state
entity_id: sensor.moon
to: 'Full Moon'
action:
- delay: '{{ (range(1, 6)|random|int) }}:{{ (range(1, 50)|random|int) }}:00'
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
- service: script.tweet_engine_image
data_template:
tweet: >-