No announcement yet.

Is Light Property

  • Filter
  • Time
  • Show
Clear All
new posts

  • Is Light Property

    I am trying to retrieve "Is Light:" property and I can't seem to find any information about how to do this. I was expecting something similar to how I check if the device is dimmable.


    Does anyone have an idea on how to check this flag?

  • #2
    jon00 gets it in his device viewer, my guess its one of the MISC bits. I'd get the MISC setting from a device and try toggling the setting to see which bit it is until the SDK is updated with an actual define for it.


    • #3
      It's part of the dvMISC enum. It's not documented in the Help file yet (, but using Visual Studio to browse it, it shows as IS_LIGHT with a decimal value of 8192 (&H2000).

      It can be checked using the same syntax as other dvMISC enums:

      If dv.MISC_Check(hs, Enums.dvMISC.IS_LIGHT) Then

      Click image for larger version  Name:	Untitled.png Views:	1 Size:	30.7 KB ID:	1261219
      HS 1990 Devices 1172 Events
      Z-Wave 126 Nodes on one Z-Net


      • #4
        thanks sparkman, this was exactly what I was looking for.

        I loaded HSPI extension for Visual Sudio and searched for IS_LIGHT , then browsed to the Enums.dvMISC but I could not see it. Is there a good post you can recommend on how to get SDK properly loaded into Visual Studio?

        Click image for larger version

Name:	Capture.PNG
Views:	25
Size:	15.2 KB
ID:	1261252
        Last edited by BattleDroid; November 22nd, 2018, 01:09 AM. Reason: +picture


        • #5
          If you click on Enums.dvMisc, rather than drilling down, the details I show should appear in a window. Can't remember the name of the window and I'm away from my dev computer for a few days.
          HS 1990 Devices 1172 Events
          Z-Wave 126 Nodes on one Z-Net