diff --git a/bridge-api/spec.json b/bridge-api/spec.json index 471ed60..b598adc 100644 --- a/bridge-api/spec.json +++ b/bridge-api/spec.json @@ -1006,6 +1006,20 @@ 0 ] }, + "doorState": { + "type": "integer", + "description": "0-NotPaired, 1-Disconnected, 2-Opened, 3-Closed, 4-Uncalibrated", + "enum": [ + 0, + 1, + 2, + 3, + 4 + ], + "examples": [ + 2 + ] + }, "batteryLevel": { "type": "integer", "format": "int32", diff --git a/bridge-api/webhooks/events.md b/bridge-api/webhooks/events.md index 6a34a86..09207c0 100644 --- a/bridge-api/webhooks/events.md +++ b/bridge-api/webhooks/events.md @@ -113,17 +113,18 @@ Occures when Tedee Lock status has changed "deviceId": 33819, "serialNumber": "19420103-000006", "state": 6, - "jammed": 0 + "jammed": 0, + "doorState": 2 } } **Request for GET method** - <>?event=lock-status-changed×tamp=2023-07-25T14:41:48.825Z&deviceType=2&deviceId=33819&serialNumber=19420103-000006&state=6&jammed=0 + <>?event=lock-status-changed×tamp=2023-07-25T14:41:48.825Z&deviceType=2&deviceId=33819&serialNumber=19420103-000006&state=6&jammed=0&doorState=2 **Request for GET+NO_PARAMS method** - <>/event=lock-status-changed/timestamp=2023-07-25T14:41:48.825Z/deviceType=2/deviceId=33819/serialNumber=19420103-000006/state=6/jammed=0 + <>/event=lock-status-changed/timestamp=2023-07-25T14:41:48.825Z/deviceType=2/deviceId=33819/serialNumber=19420103-000006/state=6/jammed=0/doorState=2 The ``deviceType`` field may have the following values: - 2 for Lock PRO @@ -146,6 +147,13 @@ The ``jammed`` field may have the following values: - 0 - not jammed - 1 - jammed +The ``doorState`` field may have the following values: +- 0 - NotPaired +- 1 - Disconnected +- 2 - Opened +- 3 - Closed +- 4 - Uncalibrated + ## Device battery level changed Occures when Tedee Lock battery level changes