mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
map MH210 prod.248, id 0x20 as mixer, #2138
This commit is contained in:
@@ -407,6 +407,8 @@ class EMSdevice {
|
|||||||
static constexpr uint8_t EMS_DEVICE_ID_RFBASE = 0x50;
|
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_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_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_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_DHW2 = 0x29; // MM100 module as water station
|
||||||
static constexpr uint8_t EMS_DEVICE_ID_DHW8 = 0x2F; // last DHW module id?
|
static constexpr uint8_t EMS_DEVICE_ID_DHW8 = 0x2F; // last DHW module id?
|
||||||
|
|||||||
@@ -1291,6 +1291,13 @@ bool EMSESP::add_device(const uint8_t device_id, const uint8_t product_id, const
|
|||||||
device_type = DeviceType::WATER;
|
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
|
// 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') {
|
if (product_id == 157 && version[0] == '2') {
|
||||||
flags = DeviceFlags::EMS_DEVICE_FLAG_CR120;
|
flags = DeviceFlags::EMS_DEVICE_FLAG_CR120;
|
||||||
|
|||||||
Reference in New Issue
Block a user