Add door sensor

https://api.sciener.com/v3/doorSensor/add

Request this endpoint after you successfully added a door sensor to the lock via APP SDK.

1 Request example

POST, ContentType:application/x-www-form-urlencoded

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdIntYLock ID, generated by Lock init
nameStringNDoor sensor name
electricQuantityIntYDoor sensor battery level
firmwareInfoJSONObjectYDoor sensor firmware verion info
macStringYDoor sensor MAC
numberStringYDoor sensor number
dateLongYCurrent time (timestamp in millisecond)

firmwareInfo:

ParameterTypeDescription
modelNumStringModel number
hardwareRevisionStringhardware revision
firmwareRevisionStringfirmware revision

3 Response and example

ParameterTypeDescription
doorSensorIdIntDoor sensor ID