I would like a plugin device to have a graphic that will be more indicative of the device than the default gear icon. This is straightforward for features, but methods do not appear to exist for devices. I tried the following. It executes, but does not have any effect on the device.
Code:
iRef = hs.CreateDevice(dd) Dim vgp As New HomeSeer.PluginSdk.Devices.StatusGraphic(PLUGIN_NAME & "/" & PLUGIN_NAME & ".png", -2147483648.0, 2147483647.0) Dim vgpList As New HomeSeer.PluginSdk.Devices.StatusGraphicCollection vgpList.Add(vgp) Dim vgpDictionary As New Generic.Dictionary(Of HomeSeer.PluginSdk.Devices.EProperty, Object) vgpDictionary.Add(HomeSeer.PluginSdk.Devices.EProperty.Statu sGraphics, vgpList) hs.UpdateDeviceByRef(iRef, vgpDictionary)
Comment