diff --git a/src/emsdevice.h b/src/emsdevice.h index a2eb795b5..f8fc22b76 100644 --- a/src/emsdevice.h +++ b/src/emsdevice.h @@ -407,6 +407,8 @@ class EMSdevice { static constexpr uint8_t EMS_DEVICE_ID_RFBASE = 0x50; static constexpr uint8_t EMS_DEVICE_ID_ROOMTHERMOSTAT = 0x17; // TADO using this with no version reply #174 static constexpr uint8_t EMS_DEVICE_ID_TADO_OLD = 0x19; // older TADO using this with no version reply, #1031 + static constexpr uint8_t EMS_DEVICE_ID_MIXER1 = 0x20; // e.g MH210 module as mixer + static constexpr uint8_t EMS_DEVICE_ID_MIXER8 = 0x27; static constexpr uint8_t EMS_DEVICE_ID_DHW1 = 0x28; // MM100 module as water station static constexpr uint8_t EMS_DEVICE_ID_DHW2 = 0x29; // MM100 module as water station static constexpr uint8_t EMS_DEVICE_ID_DHW8 = 0x2F; // last DHW module id? diff --git a/src/emsesp.cpp b/src/emsesp.cpp index fef8b3f70..04ebf62ad 100644 --- a/src/emsesp.cpp +++ b/src/emsesp.cpp @@ -1291,6 +1291,13 @@ bool EMSESP::add_device(const uint8_t device_id, const uint8_t product_id, const device_type = DeviceType::WATER; } + // set MH210 with id 0x20 as mixer, see https://github.com/emsesp/EMS-ESP32/discussions/2138 + if (product_id == 248 && device_id >= EMSdevice::EMS_DEVICE_ID_MIXER1 && device_id <= EMSdevice::EMS_DEVICE_ID_MIXER8) { + default_name = "MH210"; + device_type = DeviceType::MIXER; + flags = DeviceFlags::EMS_DEVICE_FLAG_MMPLUS; + } + // CR120 have version 22.xx, RC400/CW100 uses version 42.xx, see https://github.com/emsesp/EMS-ESP32/discussions/1779 if (product_id == 157 && version[0] == '2') { flags = DeviceFlags::EMS_DEVICE_FLAG_CR120;