mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 01:09:51 +03:00
add humidity to ventialtion
This commit is contained in:
@@ -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<const Telegram> telegram
|
||||
// message 0x05D9, data: 03 9C FF
|
||||
void Ventilation::process_VOCMessage(std::shared_ptr<const Telegram> telegram) {
|
||||
has_update(telegram, voc_, 0);
|
||||
has_update(telegram, humidity_, 2);
|
||||
}
|
||||
|
||||
// message 0x56B
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user