From 718f9a4f116ea988b7126a54f16e709f87477125 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 12 Feb 2022 15:03:31 +0100 Subject: [PATCH] fixes #314 --- src/devices/boiler.cpp | 11 +++++++++-- src/devices/boiler.h | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/devices/boiler.cpp b/src/devices/boiler.cpp index b143e8dbb..6ddebf5d7 100644 --- a/src/devices/boiler.cpp +++ b/src/devices/boiler.cpp @@ -96,8 +96,15 @@ Boiler::Boiler(uint8_t device_type, int8_t device_id, uint8_t product_id, const register_device_value(DeviceValueTAG::TAG_BOILER_DATA, &tapwaterActive_, DeviceValueType::BOOL, nullptr, FL_(tapwaterActive), DeviceValueUOM::NONE); register_device_value( DeviceValueTAG::TAG_BOILER_DATA, &selFlowTemp_, DeviceValueType::UINT, nullptr, FL_(selFlowTemp), DeviceValueUOM::DEGREES, MAKE_CF_CB(set_flow_temp)); - register_device_value( - DeviceValueTAG::TAG_BOILER_DATA, &selBurnPow_, DeviceValueType::UINT, nullptr, FL_(selBurnPow), DeviceValueUOM::PERCENT, MAKE_CF_CB(set_burn_power)); + register_device_value(DeviceValueTAG::TAG_BOILER_DATA, + &selBurnPow_, + DeviceValueType::UINT, + nullptr, + FL_(selBurnPow), + DeviceValueUOM::PERCENT, + MAKE_CF_CB(set_burn_power), + 0, + 130); register_device_value(DeviceValueTAG::TAG_BOILER_DATA, &heatingPumpMod_, DeviceValueType::UINT, nullptr, FL_(heatingPumpMod), DeviceValueUOM::PERCENT); register_device_value(DeviceValueTAG::TAG_BOILER_DATA, &heatingPump2Mod_, DeviceValueType::UINT, nullptr, FL_(heatingPump2Mod), DeviceValueUOM::PERCENT); register_device_value(DeviceValueTAG::TAG_BOILER_DATA, &outdoorTemp_, DeviceValueType::SHORT, FL_(div10), FL_(outdoorTemp), DeviceValueUOM::DEGREES); diff --git a/src/devices/boiler.h b/src/devices/boiler.h index 5b81c69c7..c53d0b3f5 100644 --- a/src/devices/boiler.h +++ b/src/devices/boiler.h @@ -93,7 +93,7 @@ class Boiler : public EMSdevice { uint8_t heatingActive_; // Central heating is on/off uint8_t tapwaterActive_; // Hot tap water is on/off uint8_t selFlowTemp_; // Selected flow temperature - uint8_t selBurnPow_; // Burner max power % + uint8_t selBurnPow_; // Burner max power % (can be > 100%) uint8_t heatingPump2Mod_; // heatpump modulation from 0xE3 (heatpumps) uint8_t heatingPumpMod_; // Pump modulation % int16_t outdoorTemp_; // Outside temperature