Envirogreen Posted March 23, 2015 Posted March 23, 2015 I'm creating a lock/unlock command to use in iRules Here is what I created and its not working. Any suggestions? /rest/nodes/ZW011_1/cmd/DON When I use this in my browser I get a response of 404 (I'm assuming that's an error message) Here is what I'm using for unlock. /rest/nodes/ZW011_1/cmd/DOF Thank you
Envirogreen Posted March 26, 2015 Author Posted March 26, 2015 So I forgot that I triggered the lock unlock by sending a message from irule to elk (f3) Then in ISY i have a rule that locks unlocks based on elk f3 being pressed The key item missing is a rest command to the ISY that queries the lock or unlock state of the Yale lock (that will let me determine the correct image in irule when I enter the page) Thank you
PurdueGuy Posted March 26, 2015 Posted March 26, 2015 Commands: http://forum.universal-devices.com/topic/12373-lock-unlock-with-rest-interface/?p=101099 Status: http://<ISYIP>/rest/status/<ZW_NODE> OR http://<ISYIP>/rest/nodes/<ZW_NODE> and look for: Locked <property id="ST" value="100" formatted="Locked" uom="11"/> Unlocked <property id="ST" value="0" formatted="Unlocked" uom="11"/>
Envirogreen Posted March 26, 2015 Author Posted March 26, 2015 Any suggestions to query status (is it locked/unlocked)?
PurdueGuy Posted March 26, 2015 Posted March 26, 2015 Any suggestions to query status (is it locked/unlocked)? I gave that answer previously, via a REST API command.
Envirogreen Posted March 26, 2015 Author Posted March 26, 2015 that's what happens when you read things on a phone. Thank you
Envirogreen Posted March 27, 2015 Author Posted March 27, 2015 I tried the following http://192.168.2.85/rest/status/zw011_1and I get a response of 404...any suggestions of what I'm doing wrong?
PurdueGuy Posted March 27, 2015 Posted March 27, 2015 I tried the following http://192.168.2.85/rest/status/zw011_1and I get a response of 404...any suggestions of what I'm doing wrong? Try: http://192.168.2.85/rest/status/ZW011_1 (ZW vs zw)
Envirogreen Posted March 30, 2015 Author Posted March 30, 2015 I tried that and now I get a blank response....better than an error...any suggestions?
PurdueGuy Posted March 30, 2015 Posted March 30, 2015 The ISY doesn't give blank responses that I know of. Are you using Firefox or Chrome?
PurdueGuy Posted March 30, 2015 Posted March 30, 2015 This command works for me: http://192.168.1.56/rest/status/ZW021_1
Recommended Posts
Archived
This topic is now archived and is closed to further replies.