@@ -4419,7 +4419,7 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const SensorFi
4419
4419
sensorNode.setManufacturer("OSRAM");
4420
4420
}
4421
4421
}
4422
- else if ((node->nodeDescriptor().manufacturerCode() == VENDOR_119C))
4422
+ else if ((node->nodeDescriptor().manufacturerCode() == VENDOR_119C))
4423
4423
{
4424
4424
sensorNode.setManufacturer("Sinope");
4425
4425
}
@@ -7567,16 +7567,16 @@ bool DeRestPluginPrivate::processZclAttributes(Sensor *sensorNode)
7567
7567
}
7568
7568
}
7569
7569
7570
- if (sensorNode->mustRead(READ_BATTERY) && tNow > sensorNode->nextReadTime(READ_BATTERY))
7571
- {
7572
- std::vector<uint16_t> attributes;
7573
- attributes.push_back(0x0021); // battery percentage remaining
7574
- if (readAttributes(sensorNode, sensorNode->fingerPrint().endpoint, POWER_CONFIGURATION_CLUSTER_ID, attributes))
7575
- {
7576
- sensorNode->clearRead(READ_BATTERY);
7577
- processed++;
7578
- }
7579
- }
7570
+ // if (sensorNode->mustRead(READ_BATTERY) && tNow > sensorNode->nextReadTime(READ_BATTERY))
7571
+ // {
7572
+ // std::vector<uint16_t> attributes;
7573
+ // attributes.push_back(0x0021); // battery percentage remaining
7574
+ // if (readAttributes(sensorNode, sensorNode->fingerPrint().endpoint, POWER_CONFIGURATION_CLUSTER_ID, attributes))
7575
+ // {
7576
+ // sensorNode->clearRead(READ_BATTERY);
7577
+ // processed++;
7578
+ // }
7579
+ // }
7580
7580
7581
7581
return (processed > 0);
7582
7582
}
@@ -14097,21 +14097,21 @@ void DeRestPlugin::idleTimerFired()
14097
14097
}
14098
14098
}
14099
14099
14100
- if (*ci == POWER_CONFIGURATION_CLUSTER_ID)
14101
- {
14102
- if (sensorNode->modelId().startsWith(QLatin1String("ICZB-KPD1"))) // iCasa Pulse keypads
14103
- {
14104
- val = sensorNode->getZclValue(*ci, 0x0021); // battery percentage remaining
14105
- if (!val.timestamp.isValid() || val.timestamp.secsTo(now) > 1800)
14106
- {
14107
- sensorNode->enableRead(READ_BATTERY);
14108
- sensorNode->setLastRead(READ_BATTERY, d->idleTotalCounter);
14109
- sensorNode->setNextReadTime(READ_BATTERY, d->queryTime);
14110
- d->queryTime = d->queryTime.addSecs(tSpacing);
14111
- processSensors = true;
14112
- }
14113
- }
14114
- }
14100
+ // if (*ci == POWER_CONFIGURATION_CLUSTER_ID)
14101
+ // {
14102
+ // if (sensorNode->modelId().startsWith(QLatin1String("ICZB-KPD1"))) // iCasa Pulse keypads
14103
+ // {
14104
+ // val = sensorNode->getZclValue(*ci, 0x0021); // battery percentage remaining
14105
+ // if (!val.timestamp.isValid() || val.timestamp.secsTo(now) > 1800)
14106
+ // {
14107
+ // sensorNode->enableRead(READ_BATTERY);
14108
+ // sensorNode->setLastRead(READ_BATTERY, d->idleTotalCounter);
14109
+ // sensorNode->setNextReadTime(READ_BATTERY, d->queryTime);
14110
+ // d->queryTime = d->queryTime.addSecs(tSpacing);
14111
+ // processSensors = true;
14112
+ // }
14113
+ // }
14114
+ // }
14115
14115
}
14116
14116
14117
14117
DBG_Printf(DBG_INFO_L2, "Force read attributes for SensorNode %s\n", qPrintable(sensorNode->name()));
0 commit comments