Rework of E's climate control script
This commit is contained in:
@ -184,16 +184,17 @@ 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:
|
||||||
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.scheduled_climate_mode_emma_aircon
|
entity_id: input_select.scheduled_climate_mode_emma_aircon
|
||||||
state: 'AC'
|
state: AC
|
||||||
then:
|
sequence:
|
||||||
- service: fan.turn_on
|
- service: fan.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: fan.emma_air_conditioner
|
entity_id: fan.emma_air_conditioner
|
||||||
@ -202,11 +203,11 @@ automation:
|
|||||||
who: "parents"
|
who: "parents"
|
||||||
title: "Emma Climate Schedule"
|
title: "Emma Climate Schedule"
|
||||||
message: "The air conditioner in Emma's Bedroom has been activated."
|
message: "The air conditioner in Emma's Bedroom has been activated."
|
||||||
- if:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.scheduled_climate_mode_emma_aircon
|
entity_id: input_select.scheduled_climate_mode_emma_aircon
|
||||||
state: 'White Noise'
|
state: White Noise
|
||||||
then:
|
sequence:
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: input_boolean.white_noise_emma_bedroom
|
entity_id: input_boolean.white_noise_emma_bedroom
|
||||||
@ -215,4 +216,10 @@ automation:
|
|||||||
who: "parents"
|
who: "parents"
|
||||||
title: "Emma Climate Schedule"
|
title: "Emma Climate Schedule"
|
||||||
message: "White noise has been activated in Emma's Bedroom."
|
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
|
mode: restart
|
||||||
|
Reference in New Issue
Block a user