Use caution when working with the DeviceClass properties directly. Internally, HomeSeer will compare, for example, a house code from the device class to the house code provided in a script command by making both lowercase or both uppercase. When you access the DeviceClass directly, you are getting the house code exactly as it was entered by the user, so one device could have a house code of "h" while another has a house code of "H". If you are using Visual Basic, use Trim(), UCase(), or LCase() when comparing values of string properties.
|
Property |
Type |
Description |
|
can_dim |
boolean |
This will be TRUE if the device is dimmable. |
|
dc |
string |
The device code as a string (i.e., "1"). |
|
hc |
string |
The house code as string (i.e., "A"). |
|
location |
string |
This property describes the location of the device. |
|
location2 |
string |
This is an additional device location descriptor property. |
|
dev_type_string |
string |
This property is the name of the last device type chosen for this device. |
|
name |
string |
This is the name of the device. |
|
ref |
long |
This is a device reference used internally and is unique for every device. Events hold this as a reference to the device. If the device is deleted, all events that reference the device will no longer control it. |
|
status_support |
boolean |
This will be TRUE if the device supports the X10 status request command. |
|
misc |
long |
This is a bit field that holds various properties for the device. The field is a long value. Set the appropriate bits to 1 to enable the feature. The bits are defined as:
|
|
values |
string |
This property holds the name/value pairs
as added with the hs.DeviceValueAdd
function. See
the plug-in SDK for more information. |
|
buttons |
string |
This property holds information about buttons
added with hs.DeviceButtonAdd.
See the
plug-in SDK for more information. |
|
graphics |
string |
This property holds information about graphics associated with device values. See the plug-in SDK for more information. |
|
UserNote |
string |
This property holds information that the user wishes to associate with this device. |