HomeSeer / Plugin-SDK

Plugin development kit for the 4th major edition of the HomeSeer platform.
https://www.nuget.org/packages/HomeSeer-PluginSDK/
GNU Affero General Public License v3.0
20 stars 4 forks source link

AddStatusGraphicToFeature isn't working as expected #307

Open mnsandler opened 2 years ago

mnsandler commented 2 years ago

I'm trying to add status/graphics to a feature device.

I'm using my normally working code to try and add status/graphics but nothing is being added to the status/graphics section

i can walk through my code and all the values look they are getting setup correctly before the finally call to AddStatusGraphicToFeature

I do not see any errors in the hs log.

  1. Do I have to define Controls as well if i only need status/graphics?

  2. Has something changed in the latest versions related to AddStatusGraphicToFeature

Running Hs.4.2.14.0

mnsandler commented 2 years ago

Turns out you must supply a graphics URI otherwise the routine doesn’t work. might be a good hs log entry

jldubz commented 2 years ago

@mnsandler, Can you provide some sample code and clear steps for us to reproduce this issue?

mnsandler commented 2 years ago

the following should replicate the issue

Dim StatusGraphicSet As StatusGraphic

StatusGraphicSet = New StatusGraphic(1, "", "Normal")

hs4.AddStatusGraphicToFeature(ref, StatusGraphicSet)

the result is the status (1) is not added

spudwebb commented 2 years ago

Logged as HS-1369

It is also related to #211