Get the open state of a lock

https://api.sciener.com/v3/lock/queryOpenState

Get the open state of a lock via gateway or WiFi lock. If the lock is also bound to a door sensor, this API also returns the door sensor status

1 Request example

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdIntYLock ID, generated by Lock init
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
stateIntOpen state of lock:0-locked,1-unlocked,2-unknown