Implements target_low and target_high substitutions

Solves #1418
This commit is contained in:
Edward Firmo
2023-12-18 23:22:36 +01:00
parent 5877af3493
commit 6e55c61032
5 changed files with 21 additions and 29 deletions

View File

@@ -8,14 +8,6 @@
#####################################################################################################
---
substitutions:
### Local thermostat defaults ###
# https://esphome.io/components/climate/thermostat.html
heater_relay: "0" # Select 1 for "Relay 1", 2 for "Relay 2" or "0" to a dummy switch/disabled
cooler_relay: "0" # Select 1 for "Relay 1", 2 for "Relay 2" or "0" to a dummy switch/disabled
# https://esphome.io/components/climate/index.html#base-climate-configuration
temp_min: "5"
temp_max: "25"
##### DO NOT CHANGE THIS #####
addon_climate_dual: "true"
##############################
@@ -32,12 +24,13 @@ climate:
- switch.turn_on: relay_${heater_relay}
preset:
- name: "Off"
default_target_temperature_high: ${temp_max} ${temp_units}
default_target_temperature_low: ${temp_min} ${temp_units}
default_target_temperature_high: ${target_high} ${temp_units}
default_target_temperature_low: ${target_low} ${temp_units}
mode: "off"
- name: Home
default_target_temperature_high: 24 ${temp_units}
default_target_temperature_low: 18 ${temp_units}
default_target_temperature_high: ${target_high} ${temp_units}
default_target_temperature_low: ${target_low} ${temp_units}
mode: "auto"
packages:
climate_base_package: !include advanced/esphome/nspanel_esphome_addon_climate_base.yaml