Announcement

Collapse
No announcement yet.

StatusGraphicByRange confusion....

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

    StatusGraphicByRange confusion....

    For a single value the following StatusGraphic code works

    Code:
    if (feat.HasGraphicForValue(value)) {
       hs.DeleteStatusGraphicByValue(dev.RefId, value);
    }
    
    var statusGraphic = new StatusGraphic(img, value, label);
    hs.AddStatusGraphicToFeature(dev.RefId, statusGraphic);
    So I expected this to work but it doesn't are ranges handled in a "special way" DeleteStatusGraphicByRange doesn't exist?

    Code:
    if (feat.HasGraphicForRange(range)) {
       hs.DeleteStatusGraphicByRange(dev.RefId, range)
    }
    
    var statusGraphic = new StatusGraphic(img, range);
    hs.AddStatusGraphicToFeature(dev.RefId, statusGraphic);
    Of course I have similar issue with StatusControlsByRange....Any ideas?
    HS3 Pro Edition 3.0.0.435 (Windows 10 vmware)
    BLOccupied:,UltraNetCam3:,weatherXML:,RFXCOM:,Current Cost 3P:,UltraGCIR3:
    DMMQTT:,Kodi:,Z-Wave:,BLRadar:,EasyTrigger:,MySensors:,BLBackup:

    #2
    What exactly doesn't work?

    Comment


      #3
      DeleteStatusGraphicByRange
      HS3 Pro Edition 3.0.0.435 (Windows 10 vmware)
      BLOccupied:,UltraNetCam3:,weatherXML:,RFXCOM:,Current Cost 3P:,UltraGCIR3:
      DMMQTT:,Kodi:,Z-Wave:,BLRadar:,EasyTrigger:,MySensors:,BLBackup:

      Comment


        #4
        I haven't implemented deleting for ranges (I should). But if it doesn't work - better create a ticket

        Comment


          #5
          More like it doesn’t exist
          HS3 Pro Edition 3.0.0.435 (Windows 10 vmware)
          BLOccupied:,UltraNetCam3:,weatherXML:,RFXCOM:,Current Cost 3P:,UltraGCIR3:
          DMMQTT:,Kodi:,Z-Wave:,BLRadar:,EasyTrigger:,MySensors:,BLBackup:

          Comment

          Working...
          X