Added scheduling for master bedroom cooling

This commit is contained in:
2022-05-10 13:44:22 -04:00
parent 7076b4af3a
commit a5f210af2d
2 changed files with 51 additions and 1 deletions

View File

@ -27,4 +27,14 @@ kallen_bedtime:
kallen_wakeup_time:
name: Kallen Wake-up Time
has_date: false
has_time: true
has_time: true
master_bedroom_cooling:
name: Master Bedroom Cooling
has_date: false
has_time: true
icon: mdi:fan-auto
master_bedroom_wakeup:
name: Master Bedroom Wakeup
has_date: false
has_time: true
icon: mdi:fan-off

View File

@ -80,3 +80,43 @@ automation:
{% else %}
23:00
{% endif %}
- id: 89470712-f94d-4c01-8215-ed15b3bc799a
alias: Master Bedroom Scheduling
trigger:
- platform: time
at: '06:07:00'
id: mrbedroom-morning
- platform: time
at: '20:45:00'
id: mrbedroom-evening
action:
- if:
- condition: trigger
id: mrbedroom-morning
then:
- service: input_datetime.set_datetime
entity_id: input_datetime.master_bedroom_wakeup
data_template:
time: >
{% if is_state('input_boolean.school_today','on') %}
13:45
{% else %}
13:00
{% endif %}
- if:
- condition: trigger
id: mrbedroom-evening
then:
- service: input_datetime.set_datetime
entity_id: input_datetime.master_bedroom_cooling
data_template:
time: >
{% set low = state_attr('sensor.current_forecast','overnight_low') | float %}
{% if low > 55 and low < 60 %}
22:00
{% elif low > 60 %}
21:00
{% else %}
00:00
{% endif %}