From 9dd613394ce41c152ef6d05146c3e5808bd8ea49 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Tue, 3 Oct 2023 10:57:41 +0200 Subject: [PATCH] add humidity to ventialtion --- src/devices/ventilation.cpp | 2 ++ src/devices/ventilation.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/devices/ventilation.cpp b/src/devices/ventilation.cpp index 0c81519ef..8d85895f5 100644 --- a/src/devices/ventilation.cpp +++ b/src/devices/ventilation.cpp @@ -46,6 +46,7 @@ Ventilation::Ventilation(uint8_t device_type, uint8_t device_id, uint8_t product register_device_value( DeviceValueTAG::TAG_DEVICE_DATA, &mode_, DeviceValueType::ENUM, FL_(enum_ventMode), FL_(ventMode), DeviceValueUOM::NONE, MAKE_CF_CB(set_ventMode)); register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &voc_, DeviceValueType::USHORT, FL_(airquality), DeviceValueUOM::NONE); + register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &humidity_, DeviceValueType::UINT, FL_(airHumidity), DeviceValueUOM::PERCENT); register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &bypass_, DeviceValueType::BOOL, FL_(bypass), DeviceValueUOM::NONE, MAKE_CF_CB(set_bypass)); } @@ -75,6 +76,7 @@ void Ventilation::process_BlowerMessage(std::shared_ptr telegram // message 0x05D9, data: 03 9C FF void Ventilation::process_VOCMessage(std::shared_ptr telegram) { has_update(telegram, voc_, 0); + has_update(telegram, humidity_, 2); } // message 0x56B diff --git a/src/devices/ventilation.h b/src/devices/ventilation.h index 56cf4e287..336b6193c 100644 --- a/src/devices/ventilation.h +++ b/src/devices/ventilation.h @@ -34,6 +34,7 @@ class Ventilation : public EMSdevice { int16_t inEx_; int16_t outEx_; uint16_t voc_; + uint8_t humidity_; uint8_t bypass_; // uint16_t filterRemain_; uint8_t ventInSpeed_;