Rework of E's climate control script
This commit is contained in:
@ -184,35 +184,42 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: input_datetime.emma_bedtime
|
at: input_datetime.emma_bedtime
|
||||||
conditions:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.vacation_mode
|
entity_id: input_boolean.vacation_mode
|
||||||
state: 'off'
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
- if:
|
- choose:
|
||||||
- condition: state
|
- conditions:
|
||||||
entity_id: input_select.scheduled_climate_mode_emma_aircon
|
- condition: state
|
||||||
state: 'AC'
|
entity_id: input_select.scheduled_climate_mode_emma_aircon
|
||||||
then:
|
state: AC
|
||||||
- service: fan.turn_on
|
sequence:
|
||||||
target:
|
- service: fan.turn_on
|
||||||
entity_id: fan.emma_air_conditioner
|
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
|
- service: script.text_notify
|
||||||
data:
|
data:
|
||||||
who: "parents"
|
who: "parents"
|
||||||
title: "Emma Climate Schedule"
|
title: "Emma Climate Schedule"
|
||||||
message: "The air conditioner in Emma's Bedroom has been activated."
|
message: "No option selected for Emma's climate mode. No devices will be activated."
|
||||||
- if:
|
|
||||||
- condition: state
|
|
||||||
entity_id: input_select.scheduled_climate_mode_emma_aircon
|
|
||||||
state: 'White Noise'
|
|
||||||
then:
|
|
||||||
- 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."
|
|
||||||
mode: restart
|
mode: restart
|
||||||
|
Reference in New Issue
Block a user