mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
38 lines
748 B
YAML
38 lines
748 B
YAML
id: set_house_to_morning
|
|
alias: Set House to Morning
|
|
mode: single
|
|
|
|
# platform: tod
|
|
# name: Morning
|
|
# after: '06:00'
|
|
# before: '09:00'
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: binary_sensor.morning
|
|
to: "on"
|
|
|
|
condition:
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.morning
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_select.time_of_day
|
|
state: Morning
|
|
|
|
action:
|
|
- action: input_select.select_option
|
|
data:
|
|
entity_id: input_select.time_of_day
|
|
option: Morning
|
|
|
|
- action: homeassistant.turn_off
|
|
entity_id: input_boolean.boys_room_asleep
|
|
|
|
- action: homeassistant.turn_off
|
|
entity_id: input_boolean.girls_room_asleep
|
|
|
|
- delay: "00:00:30"
|