HomeSeer A2Z-Link User Manual page 14

Table of Contents

Advertisement

JSON Control Interface . 11
status = the current string that represents the status of the device
such as "on" or "off"
last_change = the date/time the device last changed status
relationship = 2:root device (other devices may be part of this
physical device),3:standalone=this is the only device that represents
this physical device,4:child=this device is part of a group of devices
that represent this physical device
hide_from_view = true/false if true, this device has been set to not
be visible in any user interface
device_type_string = The string the describes this device, set by
plugin authors on their devices.
associated_devices = a list of device reference #'s that are
associated with this device. If the device is a ROOT device, then the list
is child devices, if the device is a child device, then the list will contain
one device that is the root device.
device_type = Detailed information about the capabilities of the
device, used mainly to determine if the device adheres to other API's
such as thermostat, energy, etc. See the Devices section in the Scripting
section in the HomeSeer HS3 user documentation for information about
the properties in this section.
Returns control information for a device in the system, or all devices.
Devices contain "control pairs", one pair for each possible control value.
For example, a light that can be turned on and off would contain 2
control pairs, one for ON and one for OFF. The control pair describes
how to control the device. The most important information is the "Label"
and the "ControlValue", as those will be needed when the device is to
be controlled. The information from this call can be used to build a
user interface that will control the device.
Parameters:
ref=### (where ### is the device reference #, or "all" to return control
information for all devices)
{
"ControlPairs":
[
{
"Do_Update":true,
"SingleRangeEntry":true,
"ControlButtonType":0,
"ControlButtonCustom":"",
"CCIndex":0,
"Range":null,
"Ref":2256,
"Label":"On Last Level",
"ControlType":5,
"ControlLocation":
"Row":1,
"Column":3,
"ColumnSpan":0
},
"ControlLoc_Row":1,
"ControlLoc_Column":3,
"ControlLoc_ColumnSpan":0,
"ControlUse":4,
"ControlValue":255,
"ControlString":"",
"ControlStringList":null,
"ControlStringSelected":null,
"ControlFlag":false
},
{
"Do_Update":true,
{
A2Z­Link

Advertisement

Table of Contents
loading

Related Products for HomeSeer A2Z-Link

Table of Contents