Add Templates for Climate Setpoints

This commit is contained in:
2022-10-30 09:58:08 -07:00
parent 108f9c24cc
commit 6e5eddc243

View File

@@ -13,6 +13,44 @@ input_select:
- Manual
- Paused
input_number:
temp_setpoint_day_high:
name: Temperature Setpoint Day (High)
initial: 74
min: 60
max: 90
step: 1
temp_setpoint_day_low:
name: Temperature Setpoint Day (Low)
initial: 70
min: 60
max: 90
step: 1
temp_setpoint_night_high:
name: Temperature Setpoint Night (High)
initial: 76
min: 60
max: 90
step: 1
temp_setpoint_night_low:
name: Temperature Setpoint Night (Low)
initial: 70
min: 60
max: 90
step: 1
temp_setpoint_away_high:
name: Temperature Setpoint Away (High)
initial: 80
min: 60
max: 90
step: 1
temp_setpoint_away_low:
name: Temperature Setpoint Away (Low)
initial: 66
min: 60
max: 90
step: 1
template:
binary_sensor:
- name: HVAC Fan Running
@@ -91,32 +129,6 @@ automation:
data:
message: HVAC Restored (Window or Door Open)
- alias: Widen HVAC Range During On-Peak Time
mode: queued
trigger:
- platform: time
at: "20:00"
action:
- service: climate.set_temperature
target:
entity_id: climate.thermostat
data:
target_temp_high: 76.0
target_temp_low: 68.0
- alias: Widen HVAC Range During Work Day
mode: queued
trigger:
- platform: time
at: "20:00"
action:
- service: climate.set_temperature
target:
entity_id: climate.thermostat
data:
target_temp_high: 76.0
target_temp_low: 68.0
- alias: Widen HVAC Range at Night
mode: queued
trigger:
@@ -127,8 +139,8 @@ automation:
target:
entity_id: climate.thermostat
data:
target_temp_high: 76.0
target_temp_low: 68.0
target_temp_high: "{{ states('input_number.temp_setpoint_night_high')|float }}"
target_temp_low: "{{ states('input_number.temp_setpoint_night_low')|float }}"
- alias: Narrow HVAC Range during Day
mode: queued
@@ -140,24 +152,5 @@ automation:
target:
entity_id: climate.thermostat
data:
target_temp_high: 74.0
target_temp_low: 70.0
- alias: Narrow HVAC Range After Work
mode: queued
trigger:
- platform: zone
entity_id: person.jen
zone: !secret jen_work_zone
event: leave
- platform: zone
entity_id: person.jpk
zone: !secret jp_work_zone
event: leave
action:
- service: climate.set_temperature
target:
entity_id: climate.thermostat
data:
target_temp_high: 74.0
target_temp_low: 70.0
target_temp_high: "{{ states('input_number.temp_setpoint_day_high')|float }}"
target_temp_low: "{{ states('input_number.temp_setpoint_day_low')|float }}"