I am trying to pull attribute data using Restful API. I am accessing the details of a light via the following address:
http://127.0.0.1:8176/devices/Living%20 ... ights.html
and being provided the data below. Is it possible access the attributes below so I can use curl to send that data to initialstate.com? How would the address look?
Something like this?
http://127.0.0.1:8176/devices/Living%20 ... ights/isOn
name : Living Room Lights
address : 0
addressStr : unknown
brightness : 15
classID : 2
devProtocol : 999
displayInUI : True
displayLongState : 15%
displayRawState : 15
folderID : 276490867
hasStateToDisplay : True
id : 210036752
isOn : True
lastChanged : 524694581
lastChangedDateStr : 2016-08-16
lastChangedRFC3339 : 2016-08-17T01:29:41Z
lastChangedRFC822 : Wed, 17 Aug 2016 01:29:41 GMT
lastChangedTimeStr : 08:29:41 PM
type : Dimmable Power Switch
typeFlags : 1555
typeSupportsDim : True
typeSupportsEnergyMeter : False
typeSupportsHVAC : False
typeSupportsIO : False
typeSupportsOnOff : True
typeSupportsSensorValue : False
typeSupportsSpeedControl : False
typeSupportsSprinkler : False
versByte : 0
Edit Attributes