From 70f52ce484ac248c4e52b158d3dfa2dc0addf579 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Tue, 9 Aug 2022 14:57:18 +0200 Subject: [PATCH] humidity, dewtemp as uint --- src/devices/thermostat.cpp | 4 ++-- src/devices/thermostat.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index bfb129142..86a7e5bf2 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -3978,8 +3978,8 @@ void Thermostat::register_device_values_hc(std::shared_ptr= 0x38 && device_id() <= 0x3F) { register_device_value(tag, &hc->remotetemp, DeviceValueType::SHORT, FL_(div10), FL_(remotetemp), DeviceValueUOM::DEGREES); - register_device_value(tag, &hc->dewtemperature, DeviceValueType::INT, nullptr, FL_(dewTemperature), DeviceValueUOM::DEGREES); - register_device_value(tag, &hc->humidity, DeviceValueType::INT, nullptr, FL_(airHumidity), DeviceValueUOM::PERCENT); + register_device_value(tag, &hc->dewtemperature, DeviceValueType::UINT, nullptr, FL_(dewTemperature), DeviceValueUOM::DEGREES); + register_device_value(tag, &hc->humidity, DeviceValueType::UINT, nullptr, FL_(airHumidity), DeviceValueUOM::PERCENT); register_device_value( tag, &ibaCalIntTemperature_, DeviceValueType::INT, FL_(div10), FL_(ibaCalIntTemperature), DeviceValueUOM::DEGREES_R, MAKE_CF_CB(set_calinttemp)); return; diff --git a/src/devices/thermostat.h b/src/devices/thermostat.h index 7a3db0425..2617c9d1e 100644 --- a/src/devices/thermostat.h +++ b/src/devices/thermostat.h @@ -84,8 +84,8 @@ class Thermostat : public EMSdevice { uint8_t climate; uint8_t switchonoptimization; uint8_t statusbyte; // from RC300monitor - int8_t humidity; - int8_t dewtemperature; + uint8_t humidity; + uint8_t dewtemperature; // RC 10 uint8_t reducehours; // night reduce duration