HomeSeer A2Z-Link User Manual page 18

Table of Contents

Advertisement

/JSON?request=speak&phrase=text&host=HOST:NAME
/JSON?request=getlocations
/JSON?request=getcounter&counter=NAME
/JSON?request=getsetting&setting=SETTING_NAME
POST requests
JSON post requests can be used to control devices. The following request will turn a device on using the device value. In this example, a value of 255
will turn this device on:
Post data: {'action' : 'controlbyvalue', 'deviceref' : '3570', 'value' : '255'}
Url: ip_address/JSON
To control a device by label. In this case the label "On" will turn the device on:
Post data: {'action' : 'controlbylabel', 'deviceref' : '3570', 'label' : 'on'}
To run the actions of an event:
Post data: {'action' : 'runevent', 'group' : 'GROUPNAME', 'name' : 'EVENTNAME'}
See also
JSON Control Interface . 15
Speaks the given phrase using text-to-speech.
phrase = the phrase to speak
host = the speaker host to speak out of. HomeSeer supports multiple
hosts, like PC's and mobile devices. Each device is assgined a unique
host:name ID. For example, a host on the PC named "hometroller" with
the name "Android" would have the host name: HomeTroller:Android. If
this is added to the host parameter, then the phrase will be spoken out
that host only. Many hosts can be added and are separated by a
comma, IE: host=HomeTroller:Android,iPhone:bill
N o t e : Only available if A2Z-Link is enabled for automation.
Returns all the location names for location 1 and location 2
Returns the value for the given named counter
Returns the value for a specific settting. For example, the setting for
name of location 1 is called "gLocLabel". To get the name of this
use:
/JSON?request=getsetting&setting=gLocLabel
The return might be:
   {
  "Value":"Room"
}
A2Z­Link

Advertisement

Table of Contents
loading

Related Products for HomeSeer A2Z-Link

Table of Contents