TFT upload selectors
This commit is contained in:
@@ -174,35 +174,35 @@ script:
|
||||
- id: !extend watchdog
|
||||
then:
|
||||
- lambda: |-
|
||||
static const char *const TAG = "script.watchdog (add-on climate)";
|
||||
static const char *const TAG = "addon_climate_base.script.watchdog";
|
||||
bool addon_climate_cool = ${addon_climate_cool};
|
||||
bool addon_climate_heat = ${addon_climate_heat};
|
||||
bool addon_climate_dual = ${addon_climate_dual};
|
||||
uint cooler_relay = ${cooler_relay};
|
||||
uint heater_relay = ${heater_relay};
|
||||
ESP_LOGD(TAG, "Add-on climate:");
|
||||
ESP_LOGI(TAG, "Add-on climate:");
|
||||
if (addon_climate_cool) {
|
||||
ESP_LOGD(TAG, " Cool: %s", addon_climate_cool ? "Enabled" : "Disabled");
|
||||
ESP_LOGI(TAG, " Cool: %s", addon_climate_cool ? "Enabled" : "Disabled");
|
||||
if (cooler_relay == 1 or cooler_relay == 2)
|
||||
ESP_LOGD(TAG, " Relay: %i", cooler_relay);
|
||||
ESP_LOGI(TAG, " Relay: %i", cooler_relay);
|
||||
else
|
||||
ESP_LOGE(TAG, " Relay: %i", cooler_relay);
|
||||
}
|
||||
if (addon_climate_heat) {
|
||||
ESP_LOGD(TAG, " Heat: %s", addon_climate_heat ? "Enabled" : "Disabled");
|
||||
ESP_LOGI(TAG, " Heat: %s", addon_climate_heat ? "Enabled" : "Disabled");
|
||||
if (heater_relay == 1 or heater_relay == 2)
|
||||
ESP_LOGD(TAG, " Relay: %i", heater_relay);
|
||||
ESP_LOGI(TAG, " Relay: %i", heater_relay);
|
||||
else
|
||||
ESP_LOGE(TAG, " Relay: %i", heater_relay);
|
||||
}
|
||||
if (addon_climate_dual) {
|
||||
ESP_LOGD(TAG, " Dual: %s", addon_climate_dual ? "Enabled" : "Disabled");
|
||||
ESP_LOGI(TAG, " Dual: %s", addon_climate_dual ? "Enabled" : "Disabled");
|
||||
if (cooler_relay == 1 or cooler_relay == 2)
|
||||
ESP_LOGD(TAG, " Relay (cooler): %i", cooler_relay);
|
||||
ESP_LOGI(TAG, " Relay (cooler): %i", cooler_relay);
|
||||
else
|
||||
ESP_LOGE(TAG, " Relay (cooler): %i", cooler_relay);
|
||||
if (heater_relay == 1 or heater_relay == 2)
|
||||
ESP_LOGD(TAG, " Relay (heater): %i", heater_relay);
|
||||
ESP_LOGI(TAG, " Relay (heater): %i", heater_relay);
|
||||
else
|
||||
ESP_LOGE(TAG, " Relay (heater): %i", heater_relay);
|
||||
if (cooler_relay == heater_relay)
|
||||
|
||||
Reference in New Issue
Block a user