Log light on/off and level values in database
@@ -2030,6 +2030,7 @@ LightNode *DeRestPluginPrivate::updateLightNode(const deCONZ::NodeEvent &event)
updated = true;
}
lightNode->setZclValue(updateType, event.clusterId(), 0x0000, ia->numericValue());
+ pushZclValueDb(event.node()->address().ext(), event.endpoint(), event.clusterId(), ia->id(), ia->numericValue().u8);
break;
}
}
@@ -2070,9 +2071,9 @@ LightNode *DeRestPluginPrivate::updateLightNode(const deCONZ::NodeEvent &event)
}
}
lightNode->setZclValue(updateType, event.clusterId(), 0x0000, ia->numericValue());
+ pushZclValueDb(event.node()->address().ext(), event.endpoint(), event.clusterId(), ia->id(), ia->numericValue().u8);
break;
}
- break;
}
}
else if (ic->id() == BASIC_CLUSTER_ID && (event.clusterId() == BASIC_CLUSTER_ID))
