Default embedded climate to relay_0

This commit is contained in:
Edward Firmo
2023-07-19 13:08:08 +02:00
parent d329d92713
commit 6ed378b8e0

View File

@@ -32,7 +32,7 @@ substitutions:
# https://esphome.io/components/climate/thermostat.html
embedded_thermostat_disabled: "true"
embedded_thermostat_temp_units: "°C"
embedded_thermostat_heater_relay: "1" # Select 1 for "Relay 1" or 2 for "Relay 2"
embedded_thermostat_heater_relay: "0" # Select 1 for "Relay 1", 2 for "Relay 2" or "0" to a dummy switch/disabled
embedded_thermostat_min_heating_off_time: "300"
embedded_thermostat_min_heating_run_time: "300"
embedded_thermostat_min_idle_time: "30"
@@ -1105,8 +1105,6 @@ switch:
then:
- script.execute:
id: refresh_relays
##### PHYSICAL SWITCH 2 ######
- name: ${device_name} Relay 2
platform: gpio
@@ -1122,6 +1120,13 @@ switch:
then:
- script.execute:
id: refresh_relays
##### PHYSICAL SWITCH 0 (Dummy) - Usend when embedded climate is disabled #####
- name: ${device_name} Relay 0 (dummy)
platform: template
id: relay_0
lambda: !lambda return false;
internal: true
optimistic: true
##### DISPLAY ALWAYS ON #####
- name: ${device_name} Screen Power