Announcement

Collapse
No announcement yet.

Virtual device type string is filled with old value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Virtual device type string is filled with old value

    I have built a plugin that creates devices and fill in the device type string field using device.Device_Type_String(hs) = "Something"
    If I then create a virtual device in HS this device gets the same device type by itself, if the plugin is running. If I stop the plugin device type will be empty, as it should.

    I seem to remember to have read a post about how to avoid this, but cant find it. Anyone that knows?

    #2
    Found it. I am using MoskusSample sample plugin and it is a function in hspi.vb that does this. Set this to False.

    Public Function SupportsAddDevice() As Boolean Implements HomeSeerAPI.IPlugInAPI.SupportsAddDevice
    Return False 'True
    End Function​

    Comment

    Working...
    X