Metering cluster process only attributes which are part of the event
Issue
@@ -4672,6 +4672,13 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event)
bool updated = false;
for (;ia != enda; ++ia)
{
+ if (std::find(event.attributeIds().begin(),
+ event.attributeIds().end(),
+ ia->id()) == event.attributeIds().end())
+ {
+ continue;
+ }
+
if (ia->id() == 0x0000) // Current Summation Delivered
{
if (updateType != NodeValue::UpdateInvalid)
