product_id 200 as thermostat RC100H, #590

This commit is contained in:
MichaelDvP
2022-08-02 19:28:54 +02:00
parent 8ee70a1263
commit f79258f645
7 changed files with 573 additions and 470 deletions

View File

@@ -931,6 +931,9 @@ bool EMSESP::add_device(const uint8_t device_id, const uint8_t product_id, const
// first check to see if we already have it, if so update the record
for (const auto & emsdevice : emsdevices) {
if (emsdevice && emsdevice->is_device_id(device_id)) {
if (product_id == 0) { // update only with valid product_id
return true;
}
LOG_DEBUG(F("Updating details for already active deviceID 0x%02X"), device_id);
emsdevice->product_id(product_id);
emsdevice->version(version);