What are debug attributes used for (the little house icon)?


#1

I’m pretty new to CoRE and webCore and I keep seeing this little house icon next to the properties of some devices. I searched around and I believe that they are called debug attributes. Can anyone tell me what they are used for? How do they fit into pistons or are they used for very specific situations?

Here is one that I have for a switch:

Thanks and have a great weekend!


#2

Those are actually custom commands / custom attributes that are coded into the top of many device handlers.

If you post a link to the device handler used on your Driveway Lights I’ll try to tell you what your examples do.


#3

@Robin,

The switch is a GE toggle made by Jasco. In the IDE it is using what it defaulted to: TYPE: Z-Wave Switch. So I don’t have any custom DH for this particular device.

I also have a virtual presence sensor that shows a similar setting. I have no clue what the little house icon is called but the VPS has one for “$status.”

I was just curious how I could find out what they do and if people typically use them in their pistons.

Thanks.


#4

I think those ones are system commands / values as they are not listed specifically in the device handlers… why not write a piston such as:

in events from Driverway Lights $status
Log $currentEventValue

Then you’ll start seeing what they mean.

Other custom attributes are added by developers and are more obvious.

For example, the Fibaro Dimmer 2 handler adds a custom attribute called scene… I can subscribe to scene x and when someone presses the correct switches that scene is sent to the hub and can webCoRE respond.