From 6ed378b8e0e3142f73cfec7b114187b111d33ada Mon Sep 17 00:00:00 2001 From: Edward Firmo Date: Wed, 19 Jul 2023 13:08:08 +0200 Subject: [PATCH] Default embedded climate to relay_0 --- nspanel_esphome.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nspanel_esphome.yaml b/nspanel_esphome.yaml index b76593f..e4346b0 100644 --- a/nspanel_esphome.yaml +++ b/nspanel_esphome.yaml @@ -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