Updated with Sunset trigger rather than delay.

This commit is contained in:
ccostan 2018-06-13 20:56:06 -04:00
parent 047da64886
commit fad53a3bac
2 changed files with 3 additions and 6 deletions

View File

@ -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