From 4b1b0e74df2e130c8ad2167170e755021244d45d Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Tue, 7 Mar 2023 17:46:33 +0100 Subject: [PATCH] add thermostat names, missing turk locale --- src/device_library.h | 4 ++-- src/emsdevice.cpp | 1 - src/system.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/device_library.h b/src/device_library.h index 669322b3c..227e3448d 100644 --- a/src/device_library.h +++ b/src/device_library.h @@ -98,7 +98,7 @@ {172, DeviceType::THERMOSTAT, "Rego 2000/3000", DeviceFlags::EMS_DEVICE_FLAG_RC300}, // 0x10 {216, DeviceType::THERMOSTAT, "CRF200S", DeviceFlags::EMS_DEVICE_FLAG_CRF | DeviceFlags::EMS_DEVICE_FLAG_NO_WRITE}, // 0x18 {246, DeviceType::THERMOSTAT, "Comfort+2RF", DeviceFlags::EMS_DEVICE_FLAG_CRF | DeviceFlags::EMS_DEVICE_FLAG_NO_WRITE}, // 0x18 -{253, DeviceType::THERMOSTAT, "Rego 3000", DeviceFlags::EMS_DEVICE_FLAG_RC300}, // 0x10 +{253, DeviceType::THERMOSTAT, "Rego 3000/UI800", DeviceFlags::EMS_DEVICE_FLAG_RC300}, // 0x10 // Thermostat - Sieger - 0x10 / 0x17 { 66, DeviceType::THERMOSTAT, "ES72/RC20", DeviceFlags::EMS_DEVICE_FLAG_RC20_N}, // 0x17 or remote @@ -121,7 +121,7 @@ // Thermostat remote - 0x38 { 3, DeviceType::THERMOSTAT, "RT800", DeviceFlags::EMS_DEVICE_FLAG_RC100H}, {200, DeviceType::THERMOSTAT, "RC100H", DeviceFlags::EMS_DEVICE_FLAG_RC100H}, -{249, DeviceType::THERMOSTAT, "TR120RF", DeviceFlags::EMS_DEVICE_FLAG_RC100H}, +{249, DeviceType::THERMOSTAT, "TR120RF/CR20RF", DeviceFlags::EMS_DEVICE_FLAG_RC100H}, // Solar Modules - 0x30 (for solar), 0x2A, 0x41 (for ww) { 73, DeviceType::SOLAR, "SM10", DeviceFlags::EMS_DEVICE_FLAG_SM10}, diff --git a/src/emsdevice.cpp b/src/emsdevice.cpp index c525f7297..526150cfa 100644 --- a/src/emsdevice.cpp +++ b/src/emsdevice.cpp @@ -1055,7 +1055,6 @@ void EMSdevice::set_climate_minmax(uint8_t tag, int16_t min, uint16_t max) { dv.min = min; dv.max = max; dv.remove_state(DeviceValueState::DV_HA_CONFIG_CREATED); - Mqtt::publish_ha_climate_config(dv.tag, false, true); // delete topic (remove = true) } return; } diff --git a/src/system.cpp b/src/system.cpp index c0d363e0c..ce89a449d 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -58,7 +58,7 @@ namespace emsesp { // in Debug mode use one language (en) to save flash memory needed for the tests const char * const languages[] = {EMSESP_LOCALE_EN}; #else -const char * const languages[] = {EMSESP_LOCALE_EN, EMSESP_LOCALE_DE, EMSESP_LOCALE_NL, EMSESP_LOCALE_SV, EMSESP_LOCALE_PL, EMSESP_LOCALE_NO, EMSESP_LOCALE_FR}; +const char * const languages[] = {EMSESP_LOCALE_EN, EMSESP_LOCALE_DE, EMSESP_LOCALE_NL, EMSESP_LOCALE_SV, EMSESP_LOCALE_PL, EMSESP_LOCALE_NO, EMSESP_LOCALE_FR, EMSESP_LOCALE_TR}; #endif static constexpr uint8_t NUM_LANGUAGES = sizeof(languages) / sizeof(const char *);