Updated with Sunset trigger rather than delay.
This commit is contained in:
parent
047da64886
commit
fad53a3bac
|
@ -33,13 +33,10 @@ automation:
|
||||||
- alias: 'Tweet Solar Production'
|
- alias: 'Tweet Solar Production'
|
||||||
hide_entity: false
|
hide_entity: false
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: sun
|
||||||
entity_id: sun.sun
|
event: sunset
|
||||||
to: 'below_horizon'
|
offset: '+01:00:00'
|
||||||
from: 'above_horizon'
|
|
||||||
|
|
||||||
action:
|
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
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data_template:
|
||||||
tweet: >-
|
tweet: >-
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 152 KiB After Width: | Height: | Size: 133 KiB |
Loading…
Reference in New Issue