mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
alias: Clint Status at Startup
|
|
id: automation_clint_status_at_startup
|
|
mode: restart
|
|
#description:
|
|
|
|
trigger:
|
|
- platform: homeassistant
|
|
event: start
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.clint_home
|
|
state: "on"
|
|
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: time
|
|
after: "23:30:00"
|
|
before: "00:00:00"
|
|
sequence:
|
|
- action: input_boolean.turn_on
|
|
entity_id:
|
|
- input_boolean.clint_in_bed
|
|
|
|
- action: input_boolean.turn_on
|
|
entity_id:
|
|
- input_boolean.clint_is_awake
|
|
- conditions:
|
|
- condition: time
|
|
after: "00:00:00"
|
|
before: "06:00:00"
|
|
sequence:
|
|
- action: input_boolean.turn_on
|
|
entity_id:
|
|
- input_boolean.clint_in_bed
|
|
|
|
- action: input_boolean.turn_off
|
|
entity_id:
|
|
- input_boolean.clint_is_awake
|
|
default:
|
|
- action: input_boolean.turn_off
|
|
entity_id:
|
|
- input_boolean.clint_in_bed
|
|
|
|
- action: input_boolean.turn_on
|
|
entity_id:
|
|
- input_boolean.clint_is_awake
|