Updated with Sunset trigger rather than delay.

pull/502/head
ccostan 8 years ago
parent 047da64886
commit fad53a3bac

@ -33,13 +33,10 @@ automation:
- alias: 'Tweet Solar Production'
hide_entity: false
trigger:
- platform: state
entity_id: sun.sun
to: 'below_horizon'
from: 'above_horizon'
- platform: sun
event: sunset
offset: '+01:00:00'
action:
- delay: '0{{ range(1,3) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}'
- service: script.tweet_engine_image
data_template:
tweet: >-

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

After

Width:  |  Height:  |  Size: 133 KiB

Loading…
Cancel
Save

Powered by TurnKey Linux.