I'm just never gonna be finished with E's bedroom automation...

Might even move it to Node-RED eventually. Who knows?
This commit is contained in:
2023-02-05 14:55:51 -05:00
parent 9d397c9f2b
commit a8a587bd28
2 changed files with 121 additions and 82 deletions

View File

@ -202,64 +202,4 @@ input_number:
max: 40
step: 1
unit_of_measurement: °F
icon: mdi:thermometer
automation:
- id: '1655415573165'
alias: Emma Bedroom Handling
description: "For scheduled operations in Emma's bedroom"
trigger:
- platform: time
at: input_datetime.emma_wakeup
id: emma-wakeup
- platform: time
at: input_datetime.emma_bedtime
id: emma-bedtime
condition:
- condition: state
entity_id: input_boolean.vacation_mode
state: 'off'
action:
- if:
- condition: trigger
id: emma-wakeup
then:
- service: script.emma_wakeup
- if:
- condition: trigger
id: emma-bedtime
then:
- choose:
- conditions:
- condition: state
entity_id: input_select.scheduled_climate_mode_emma_aircon
state: AC
sequence:
- service: fan.turn_on
target:
entity_id: fan.emma_air_conditioner
- service: script.text_notify
data:
who: "parents"
title: "Emma Climate Schedule"
message: "The air conditioner in Emma's Bedroom has been activated."
- conditions:
- condition: state
entity_id: input_select.scheduled_climate_mode_emma_aircon
state: White Noise
sequence:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.white_noise_emma_bedroom
- service: script.text_notify
data:
who: "parents"
title: "Emma Climate Schedule"
message: "White noise has been activated in Emma's Bedroom."
default:
- service: script.text_notify
data:
who: "parents"
title: "Emma Climate Schedule"
message: "No option selected for Emma's climate mode. No devices will be activated."
mode: restart
icon: mdi:thermometer