Disable legacy time cluster handling
@@ -1242,7 +1242,7 @@ void DeRestPluginPrivate::apsdeDataIndication(const deCONZ::ApsDataIndication &i
break;
case TIME_CLUSTER_ID:
- handleTimeClusterIndication(ind, zclFrame);
+ if (!DEV_TestStrict()) { handleTimeClusterIndication(ind, zclFrame); }
break;
case WINDOW_COVERING_CLUSTER_ID:
@@ -4304,6 +4304,8 @@ void DeRestPluginPrivate::checkSensorNodeReachable(Sensor *sensor, const deCONZ:
updated = true;
}
+ if (!DEV_TestStrict())
+ {
if (sensor->type() == QLatin1String("ZHATime") && !sensor->mustRead(READ_TIME))
{
std::vector<quint16>::const_iterator ci = sensor->fingerPrint().inClusters.begin();
@@ -4325,6 +4327,7 @@ void DeRestPluginPrivate::checkSensorNodeReachable(Sensor *sensor, const deCONZ:
}
}
}
+ }
else
{
if (item && item->toBool())
@@ -8126,6 +8129,8 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const SensorFi
}
}
}
+ if (!DEV_TestStrict())
+ {
else if (*ci == TIME_CLUSTER_ID)
{
if (sensorNode.modelId() == QLatin1String("Thermostat")) // eCozy
@@ -8139,6 +8144,7 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const SensorFi
}
}
}
+ }
sensorNode.setNeedSaveDatabase(true);
@@ -9877,6 +9883,8 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event)
bool updated = false;
const QDateTime epoch = QDateTime(QDate(2000, 1, 1), QTime(0, 0), Qt::UTC);
+ if (!DEV_TestStrict())
+ {
for (;ia != enda; ++ia)
{
if (ia->id() == 0x0000) // Time (utc, in UTC)
@@ -9939,6 +9947,7 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event)
}
}
}
+ }
if (updated)
{
i->updateStateTimestamp();
@@ -11078,6 +11087,8 @@ bool DeRestPluginPrivate::processZclAttributes(Sensor *sensorNode)
}
}
+ if (!DEV_TestStrict())
+ {
if (sensorNode->mustRead(READ_TIME) && tNow > sensorNode->nextReadTime(READ_TIME))
{
DBG_Printf(DBG_INFO, " >>> %s sensor %s: exec READ_TIME\n", qPrintable(sensorNode->type()), qPrintable(sensorNode->name()));
@@ -11110,6 +11121,7 @@ bool DeRestPluginPrivate::processZclAttributes(Sensor *sensorNode)
processed++;
}
}
+ }
return (processed > 0);
}
@@ -16792,6 +16804,8 @@ void DeRestPlugin::idleTimerFired()
}
}
+ if (!DEV_TestStrict())
+ {
if (*ci == TIME_CLUSTER_ID)
{
if (!sensorNode->mustRead(READ_TIME))
@@ -16808,7 +16822,7 @@ void DeRestPlugin::idleTimerFired()
}
}
}
-
+ }
}
DBG_Printf(DBG_INFO_L2, "Force read attributes for %s SensorNode %s\n", qPrintable(sensorNode->type()), qPrintable(sensorNode->name()));
