2020-11-03 23:55:41 +00:00
|
|
|
- id: sleep_on
|
2022-11-24 01:00:17 +00:00
|
|
|
alias: '[Mode] Turn on sleep mode'
|
2020-11-03 23:55:41 +00:00
|
|
|
trigger:
|
|
|
|
- platform: time
|
|
|
|
at: input_datetime.sleep_mode
|
2022-05-17 17:05:26 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id:
|
|
|
|
- group.guests
|
|
|
|
to: not_home
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: group.guests
|
|
|
|
state: not_home
|
|
|
|
- condition: time
|
|
|
|
before: input_datetime.day_mode
|
|
|
|
after: input_datetime.sleep_mode
|
2020-11-03 23:55:41 +00:00
|
|
|
action:
|
|
|
|
- service: input_boolean.turn_on
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
mode: single
|
2021-05-10 10:24:31 +00:00
|
|
|
|
2020-11-03 23:55:41 +00:00
|
|
|
- id: sleep_off
|
2022-11-24 01:00:17 +00:00
|
|
|
alias: '[Mode] Turn off sleep mode'
|
2020-11-03 23:55:41 +00:00
|
|
|
trigger:
|
|
|
|
- platform: time
|
|
|
|
at: input_datetime.day_mode
|
|
|
|
action:
|
|
|
|
- service: input_boolean.turn_off
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
mode: single
|
2022-11-24 01:00:17 +00:00
|
|
|
|
|
|
|
- id: sleep_temperature
|
|
|
|
alias: '[Sleep] Set temperature in bedroom'
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
|
|
|
- input_boolean.sleep_mode
|
|
|
|
to: 'on'
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
|
|
|
action:
|
|
|
|
- service: climate.set_temperature
|
|
|
|
data:
|
|
|
|
temperature: 25
|
|
|
|
target:
|
|
|
|
entity_id: climate.bedroom_thermostat
|