From 6e5eddc2433581f6935c16fa9a0612c1944f2bd6 Mon Sep 17 00:00:00 2001 From: "J.P. Krauss" Date: Sun, 30 Oct 2022 09:58:08 -0700 Subject: [PATCH] Add Templates for Climate Setpoints --- packages/climate/climate.yaml | 91 ++++++++++++++++------------------- 1 file changed, 42 insertions(+), 49 deletions(-) diff --git a/packages/climate/climate.yaml b/packages/climate/climate.yaml index 41646c0..ac1f27c 100644 --- a/packages/climate/climate.yaml +++ b/packages/climate/climate.yaml @@ -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 }}"