Set explicit resource item source value
@@ -842,7 +842,7 @@ void DeRestPluginPrivate::handleThermostatClusterIndication(const deCONZ::ApsDat
}
if (item && item->toString() != windowmodeSet)
{
- item->setValue(windowmodeSet);
+ item->setValue(windowmodeSet, ResourceItem::SourceDevice);
enqueueEvent(Event(RSensors, RStateWindowOpen, sensor->id(), item));
stateUpdated = true;
}
@@ -892,7 +892,7 @@ void DeRestPluginPrivate::handleThermostatClusterIndication(const deCONZ::ApsDat
if (item && item->toBool() != enabled)
{
- item->setValue(enabled);
+ item->setValue(enabled, ResourceItem::SourceDevice);
enqueueEvent(Event(RSensors, RConfigExternalWindowOpen, sensor->id(), item));
configUpdated = true;
}
@@ -952,7 +952,7 @@ void DeRestPluginPrivate::handleThermostatClusterIndication(const deCONZ::ApsDat
item = sensor->item(RStateMountingModeActive);
if (item && item->toBool() != enabled)
{
- item->setValue(enabled);
+ item->setValue(enabled, ResourceItem::SourceDevice);
enqueueEvent(Event(RSensors, RStateMountingModeActive, sensor->id(), item));
configUpdated = true;
}
@@ -970,7 +970,7 @@ void DeRestPluginPrivate::handleThermostatClusterIndication(const deCONZ::ApsDat
item = sensor->item(RConfigMountingMode);
if (item && item->toBool() != enabled)
{
- item->setValue(enabled);
+ item->setValue(enabled, ResourceItem::SourceDevice);
enqueueEvent(Event(RSensors, RConfigMountingMode, sensor->id(), item));
configUpdated = true;
}
@@ -994,7 +994,7 @@ void DeRestPluginPrivate::handleThermostatClusterIndication(const deCONZ::ApsDat
}
if (item->toNumber() != externalMeasurement)
{
- item->setValue(externalMeasurement);
+ item->setValue(externalMeasurement, ResourceItem::SourceDevice);
enqueueEvent(Event(RSensors, RConfigExternalTemperatureSensor, sensor->id(), item));
configUpdated = true;
}
@@ -1011,7 +1011,7 @@ void DeRestPluginPrivate::handleThermostatClusterIndication(const deCONZ::ApsDat
if (item && item->toNumber() != config)
{
- item->setValue(config);
+ item->setValue(config, ResourceItem::SourceDevice);
enqueueEvent(Event(RSensors, RConfigOffset, sensor->id(), item));
configUpdated = true;
}
