In the GUI client, if I change either the device or variable, they work as expected, so I'm pretty sure I have the VD setup correctly.
Using REST commands, I can't get the toggle command to work with either the variable or the device. Output below:
- Code: Select all
deck_rpi ~ # curl -s --digest --user user:password http://maggie:8969/devices/Dk%20Wall%20Lights%20Link.txt
name : Dk Wall Lights Link
address : 0
addressStr : unknown
classID : 1
desc : Deck Wall Lights linked to set on/off/brightness the same
devProtocol : 999
displayInUI : True
displayLongState : off
displayRawState : off
folderID : 0
hasStateToDisplay : True
id : 565309260
isOn : False
lastChanged : 462536507
lastChangedDateStr : 2014-08-28
lastChangedRFC3339 : 2014-08-28T14:21:47Z
lastChangedRFC822 : Thu, 28 Aug 2014 14:21:47 GMT
lastChangedTimeStr : 10:21:47 AM
type : Virtual On/Off Device
typeFlags : 17
typeSupportsDim : False
typeSupportsEnergyMeter : False
typeSupportsHVAC : False
typeSupportsIO : False
typeSupportsOnOff : True
typeSupportsSensorValue : False
typeSupportsSpeedControl : False
typeSupportsSprinkler : False
versByte : 0
deck_rpi ~ # curl -s --digest --user user:password http://maggie:8969/variables/DkWallLightsLink.txt
name : DkWallLightsLink
displayInUI : True
id : 1856621191
isFalse : True
readOnly : False
value : false
deck_rpi ~ # curl -s --digest --user user:password -X PUT -d toggle=1 http://maggie:8969/devices/Dk%20Wall%20Lights%20Link
This resource can be found at <a href='http://maggie:8969/devices/Dk Wall Lights Link'>http://maggie:8969/devices/Dk Wall Lights Link</a>.
deck_rpi ~ # curl -s --digest --user user:password http://maggie:8969/devices/Dk%20Wall%20Lights%20Link.txt
name : Dk Wall Lights Link
address : 0
addressStr : unknown
classID : 1
desc : Deck Wall Lights linked to set on/off/brightness the same
devProtocol : 999
displayInUI : True
displayLongState : off
displayRawState : off
folderID : 0
hasStateToDisplay : True
id : 565309260
isOn : False
lastChanged : 462536507
lastChangedDateStr : 2014-08-28
lastChangedRFC3339 : 2014-08-28T14:21:47Z
lastChangedRFC822 : Thu, 28 Aug 2014 14:21:47 GMT
lastChangedTimeStr : 10:21:47 AM
type : Virtual On/Off Device
typeFlags : 17
typeSupportsDim : False
typeSupportsEnergyMeter : False
typeSupportsHVAC : False
typeSupportsIO : False
typeSupportsOnOff : True
typeSupportsSensorValue : False
typeSupportsSpeedControl : False
typeSupportsSprinkler : False
versByte : 0
deck_rpi ~ # curl -s --digest --user user:password http://maggie:8969/variables/DkWallLightsLink.txt
name : DkWallLightsLink
displayInUI : True
id : 1856621191
isFalse : True
readOnly : False
value : false
I have the same results if I try to toggle the variable instead of the VD.
Any ideas?
Thanks,
Frank