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

@@ -9,11 +9,7 @@
---
substitutions:
### Local thermostat defaults ###
# https://esphome.io/components/climate/thermostat.html
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: "15"
temp_max: "45"
##### DO NOT CHANGE THIS #####
addon_climate_cool: "true"
@@ -27,10 +23,11 @@ climate:
- switch.turn_on: relay_${cooler_relay}
preset:
- name: "Off"
default_target_temperature_high: ${temp_max} ${temp_units}
default_target_temperature_high: ${target_high} ${temp_units}
mode: "off"
- name: Home
default_target_temperature_high: 24 ${temp_units}
default_target_temperature_high: ${target_high} ${temp_units}
mode: "cool"
packages:
climate_base_package: !include advanced/esphome/nspanel_esphome_addon_climate_base.yaml