Skip to content

Commit

Permalink
Try force reading battery?
Browse files Browse the repository at this point in the history
  • Loading branch information
olicooper committed Jun 9, 2020
1 parent 63ea66e commit 1e05921
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion de_web_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5663,8 +5663,12 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const SensorFi
else if (*ci == POWER_CONFIGURATION_CLUSTER_ID)
{
//This device make a Rejoin every time, you trigger it, it's the only moment where you can read attribute.
if (sensorNode.modelId() == QLatin1String("Remote switch") || sensorNode.modelId() == QLatin1String("Shutters central remote switch") || sensorNode.modelId() == QLatin1String("Double gangs remote switch") )
if (sensorNode.modelId() == QLatin1String("Remote switch") ||
sensorNode.modelId() == QLatin1String("Shutters central remote switch") ||
sensorNode.modelId() == QLatin1String("Double gangs remote switch") ||
sensorNode.modelId() == QLatin1String("Lightify Switch Mini")) )
{
DBG_Printf(DBG_INFO, "MyDebug 40 SensorNode %u / %s\n", sensorNode.id().toUInt(), qPrintable(sensorNode.name()));
//Ask for battery but only every day max
//int diff = idleTotalCounter - sensorNode.lastRead(READ_BATTERY);
//if (diff > 24 * 3600)
Expand Down

0 comments on commit 1e05921

Please sign in to comment.