Account for the faint possibility that I'm still streaming at dawn...
This commit is contained in:
@ -32,7 +32,26 @@ automation:
|
|||||||
entity_id: sensor.twitch_ironnerd24
|
entity_id: sensor.twitch_ironnerd24
|
||||||
from: 'streaming'
|
from: 'streaming'
|
||||||
to: 'offline'
|
to: 'offline'
|
||||||
|
id: offline
|
||||||
|
- platform: time
|
||||||
|
at: "07:55:00"
|
||||||
|
id: time
|
||||||
action:
|
action:
|
||||||
|
- 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
|
- service: script.tony_stream_reset
|
||||||
|
|
||||||
# TODO: Add actions when sleep mode is activated
|
# TODO: Add actions when sleep mode is activated
|
||||||
|
Reference in New Issue
Block a user