From 9cf89ee6f6c1b903378d6104c37bc34752092530 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Mon, 8 Aug 2022 17:36:14 +0200 Subject: [PATCH] update comment, fix hp humidity scale --- src/devices/heatpump.cpp | 6 +++--- src/devices/thermostat.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/devices/heatpump.cpp b/src/devices/heatpump.cpp index 9e1136a8a..9ada1ce1b 100644 --- a/src/devices/heatpump.cpp +++ b/src/devices/heatpump.cpp @@ -25,11 +25,11 @@ REGISTER_FACTORY(Heatpump, EMSdevice::DeviceType::HEATPUMP); Heatpump::Heatpump(uint8_t device_type, uint8_t device_id, uint8_t product_id, const char * version, const std::string & name, uint8_t flags, uint8_t brand) : EMSdevice(device_type, device_id, product_id, version, name, flags, brand) { // telegram handlers - register_telegram_type(0x042B, F("HP1"), true, MAKE_PF_CB(process_HPMonitor1)); - register_telegram_type(0x047B, F("HP2"), true, MAKE_PF_CB(process_HPMonitor2)); + register_telegram_type(0x042B, F("HP1"), false, MAKE_PF_CB(process_HPMonitor1)); + register_telegram_type(0x047B, F("HP2"), false, MAKE_PF_CB(process_HPMonitor2)); // device values - register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &airHumidity_, DeviceValueType::UINT, FL_(div2), FL_(airHumidity), DeviceValueUOM::PERCENT); + register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &airHumidity_, DeviceValueType::UINT, nullptr, FL_(airHumidity), DeviceValueUOM::PERCENT); register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &dewTemperature_, DeviceValueType::UINT, nullptr, FL_(dewTemperature), DeviceValueUOM::DEGREES); } diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index 6b7c824a5..7f1ecd6a3 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -693,7 +693,7 @@ void Thermostat::process_RC20Remote(std::shared_ptr telegram) { } has_update(telegram, hc->remotetemp, 0); } -// 0x42B - for reading the roomtemperature from the RC20/ES72 thermostat (0x38, 0x39, ..) +// 0x42B - for reading the roomtemperature from the RC100H remote thermostat (0x38, 0x39, ..) // e.g. "38 10 FF 00 03 2B 00 D1 08 2A 01" void Thermostat::process_RemoteTemp(std::shared_ptr telegram) { std::shared_ptr hc = heating_circuit(telegram); @@ -704,7 +704,7 @@ void Thermostat::process_RC20Remote(std::shared_ptr telegram) { } -// 0x47B - for reading the roomtemperature from the RC20/ES72 thermostat (0x38, 0x39, ..) +// 0x47B - for reading humidity from the RC100H remote thermostat (0x38, 0x39, ..) // e.g. "38 10 FF 00 03 7B 08 24 00 4B" void Thermostat::process_RemoteHumidity(std::shared_ptr telegram) { std::shared_ptr hc = heating_circuit(telegram);