mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
alias: Marshall Status at Startup
|
|
id: automation_marshall_status_at_startup
|
|
mode: restart
|
|
|
|
trigger:
|
|
- platform: homeassistant
|
|
event: start
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.marshall_home
|
|
state: 'on'
|
|
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: time
|
|
after: '22:00:00'
|
|
before: '23:00:00'
|
|
sequence:
|
|
- service: input_boolean.turn_on
|
|
entity_id:
|
|
- input_boolean.marshall_in_bed
|
|
|
|
- service: input_boolean.turn_on
|
|
entity_id:
|
|
- input_boolean.marshall_is_awake
|
|
- conditions:
|
|
- condition: time
|
|
after: '23:00:00'
|
|
before: '06:00:00'
|
|
sequence:
|
|
- service: input_boolean.turn_on
|
|
entity_id:
|
|
- input_boolean.marshall_in_bed
|
|
|
|
- service: input_boolean.turn_off
|
|
entity_id:
|
|
- input_boolean.marshall_is_awake
|
|
default:
|
|
- service: input_boolean.turn_off
|
|
entity_id:
|
|
- input_boolean.marshall_in_bed
|
|
|
|
- service: input_boolean.turn_on
|
|
entity_id:
|
|
- input_boolean.marshall_is_awake |