Whether I use this code:
I get this error : Invalid type for property Service Version: NO_VERSION
If I do this:
It also gives me an error : Do not set StatusControls directly Service Version: NO_VERSION
Setting status does work:
Anyone has this working or has some idea what I do wrong?
Code:
Dim df As Devices.HsFeature = myHomeSeerSystem.GetFeatureByRef(FeatureRef) Dim status As Dictionary(Of HomeSeer.PluginSdk.Devices.EProperty, Object) = New Dictionary(Of HomeSeer.PluginSdk.Devices.EProperty, Object)() status.Add(HomeSeer.PluginSdk.Devices.EProperty.Value, NewValue) myHomeSeerSystem.UpdateFeatureByRef(FeatureRef, status)
If I do this:
Code:
Dim df As Devices.HsFeature = myHomeSeerSystem.GetFeatureByRef(FeatureRef) df.Value = NewValue myHomeSeerSystem.UpdateFeatureByRef(FeatureRef, df.Changes)
Setting status does work:
Code:
Dim df As Devices.HsFeature = myHomeSeerSystem.GetFeatureByRef(FeatureRef) Dim status As Dictionary(Of HomeSeer.PluginSdk.Devices.EProperty, Object) = New Dictionary(Of HomeSeer.PluginSdk.Devices.EProperty, Object)() status.Add(HomeSeer.PluginSdk.Devices.EProperty.Status, NewValue) myHomeSeerSystem.UpdateFeatureByRef(FeatureRef, status)
Comment