API states tables

Hi,

Where can I get the states tables for all the params of the state object in the http smartlock API ?

I found the state table for the params state (lock/unlock/unlatch/motor…) and actions, but where are the tables for the doorState, trigger, mode etc… ?

    "state": {
    "mode": 2,
    "state": 1,
    "trigger": 1,
    "lastAction": 0,
    "batteryCritical": false,
    "doorState": 0

Thanks you!
Anthony

It seems you are mixing up the Web API (#apis:web-api) and the (local Bridge) HTTP API (#apis:http-api).

The HTTP API has no doorState yet. And there is also no mode or trigger.

All other states can be found here:

https://developer.nuki.io/page/nuki-bridge-http-api-170/4/#heading--lock-states

The Web API model can be found at our Swagger instance at

https://api.nuki.io/#!/Smartlock/get

by switching from “Example Value” to “Model”.

Ok, great, the “Model” panel in the swagger is what I was searching for !
Sorry for the misunderstood and thanks you for your answer !
Anthony

1 Like