From 6d0e73cc4b0f588dd33525a50f7744995c4c1fb3 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Thu, 4 Jul 2024 16:15:40 +0200 Subject: [PATCH] show sensor in remote RC20 --- src/devices/thermostat.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index 4284ba3eb..2e1ceb0cb 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -720,11 +720,7 @@ void Thermostat::process_RC20Set_2(std::shared_ptr telegram) { // 0xAF - for reading the roomtemperature from the RC20/ES72 thermostat (0x18, 0x19, ..) void Thermostat::process_RC20Remote(std::shared_ptr telegram) { - auto hc = heating_circuit(telegram); - if (hc == nullptr) { - return; - } - has_update(telegram, hc->roomTemp, 0); + has_update(telegram, tempsensor1_, 0); } // 0x42B - for reading the roomtemperature from the RC100H remote thermostat (0x38, 0x39, ..) @@ -4524,6 +4520,7 @@ void Thermostat::register_device_values_hc(std::shared_ptrheatingtype, DeviceValueType::ENUM, FL_(enum_heatingtype), FL_(heatingtype), DeviceValueUOM::NONE, MAKE_CF_CB(set_heatingtype)); register_device_value(tag, &hc->summertemp, DeviceValueType::UINT8, FL_(summertemp), DeviceValueUOM::DEGREES, MAKE_CF_CB(set_summertemp), 10, 30); register_device_value(tag, &hc->summermode, DeviceValueType::ENUM, FL_(enum_summer), FL_(summermode), DeviceValueUOM::NONE); + register_device_value(tag, &tempsensor1_, DeviceValueType::INT16, DeviceValueNumOp::DV_NUMOP_DIV10, FL_(remotetemp), DeviceValueUOM::DEGREES); break; case EMSdevice::EMS_DEVICE_FLAG_RC25: register_device_value(tag, &hc->mode, DeviceValueType::ENUM, FL_(enum_mode3), FL_(mode), DeviceValueUOM::NONE, MAKE_CF_CB(set_mode));