mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-10 09:49:54 +03:00
add uptimetotal, #1416
This commit is contained in:
@@ -398,6 +398,12 @@ Boiler::Boiler(uint8_t device_type, int8_t device_id, uint8_t product_id, const
|
||||
DeviceValueNumOp::DV_NUMOP_DIV100,
|
||||
FL_(meterEHeat),
|
||||
DeviceValueUOM::KWH);
|
||||
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA,
|
||||
&upTimeTotal_,
|
||||
DeviceValueType::TIME,
|
||||
DeviceValueNumOp::DV_NUMOP_DIV60,
|
||||
FL_(upTimeTotal),
|
||||
DeviceValueUOM::MINUTES);
|
||||
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA,
|
||||
&upTimeControl_,
|
||||
DeviceValueType::TIME,
|
||||
@@ -1489,6 +1495,7 @@ void Boiler::process_UBAInformation(std::shared_ptr<const Telegram> telegram) {
|
||||
* 08 00 FF 31 03 94 00 00 00 00 00 00 00 38
|
||||
*/
|
||||
void Boiler::process_UBAEnergySupplied(std::shared_ptr<const Telegram> telegram) {
|
||||
has_update(telegram, upTimeTotal_, 0);
|
||||
has_update(telegram, nrgSuppTotal_, 4);
|
||||
has_update(telegram, nrgSuppHeating_, 12);
|
||||
has_update(telegram, nrgSuppWw_, 8);
|
||||
|
||||
@@ -154,6 +154,7 @@ class Boiler : public EMSdevice {
|
||||
uint16_t heatblock_; // see #1317
|
||||
|
||||
// info
|
||||
uint32_t upTimeTotal_; // Operating time
|
||||
uint32_t upTimeControl_; // Operating time control
|
||||
uint32_t upTimeCompHeating_; // Operating time compressor heating
|
||||
uint32_t upTimeCompCooling_; // Operating time compressor cooling
|
||||
|
||||
Reference in New Issue
Block a user