Account for the faint possibility that I'm still streaming at dawn...

This commit is contained in:
2023-02-25 13:04:24 -05:00
parent fb6785d30a
commit 720d8587b5

View File

@ -32,8 +32,27 @@ automation:
entity_id: sensor.twitch_ironnerd24
from: 'streaming'
to: 'offline'
id: offline
- platform: time
at: "07:55:00"
id: time
action:
- service: script.tony_stream_reset
- choose:
- conditions:
- condition: trigger
id: offline
sequence:
- service: script.tony_stream_reset
- conditions:
- condition: trigger
id: time
sequence:
- if:
- condition: state
entity_id: sensor.twitch_ironnerd24
state: 'offline'
then:
- service: script.tony_stream_reset
# TODO: Add actions when sleep mode is activated