HTTp comands and variables for door lock

I’m finishing up a Driver for RTI XP processors so they can contol Vera. I’m just about done but I don’t have door locks to test with.

What are the HTTP commands supposed to look like? I know its 0 an 1 to lock and unlock.
Also what are the possible responces/ status?

Thanks

Since the http calls are asynchronous, I think you will really just get “OK” back or not for the lock/unlock calls.

To unlock:

http://veraip:3480/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:DoorLock1&action=SetTarget&newTargetValue=0&DeviceNum=DEVICE_ID

To lock:

http://veraip:3480/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:DoorLock1&action=SetTarget&newTargetValue=1&DeviceNum=DEVICE_ID

Then later, you can query the state.

To get status of lock:

http://veraip:3480/data_request?id=variableget&DeviceNum=DEVICE_ID&serviceId=urn:micasaverde-com:serviceId:DoorLock1&Variable=Status

Change “veraip” and “DEVICE_ID” as appropriate.

Thanks. I have a lock on the way to test with.