Hi,
Is it possible to tell via API whether my smart lock or opener are online or offline? I am trying to find a way to be notified when my devices go offline and android app does not seem to offer that. So I have tried API and here’s the response I’m currently getting with both devices being offline. Does any of these values indicate this state?
[
{
“smartlockId”: XXX,
“accountId”: XXX,
“type”: 0,
“authId”: XXX,
“name”: “Door”,
“favorite”: false,
“config”: {
“name”: “Door”,
“latitude”: XXX,
“longitude”: XXX,
“autoUnlatch”: false,
“pairingEnabled”: false,
“buttonEnabled”: true,
“ledEnabled”: true,
“ledBrightness”: 2,
“timezoneOffset”: 0,
“daylightSavingMode”: 0,
“fobPaired”: false,
“fobAction1”: 4,
“fobAction2”: 1,
“fobAction3”: 2,
“singleLock”: false,
“advertisingMode”: 0,
“keypadPaired”: true,
“homekitState”: 2,
“timezoneId”: 40
},
“advancedConfig”: {
“totalDegrees”: 586,
“singleLockedPositionOffsetDegrees”: 0,
“unlockedToLockedTransitionOffsetDegrees”: 0,
“unlockedPositionOffsetDegrees”: 0,
“lockedPositionOffsetDegrees”: 0,
“detachedCylinder”: false,
“batteryType”: 0,
“autoLock”: false,
“autoLockTimeout”: 300,
“autoUpdateEnabled”: true,
“lngTimeout”: 15,
“singleButtonPressAction”: 1,
“doubleButtonPressAction”: 1,
“automaticBatteryTypeDetection”: true,
“unlatchDuration”: 3
},
“state”: {
“mode”: 2,
“state”: 3,
“trigger”: 0,
“lastAction”: 1,
“batteryCritical”: false,
“batteryCharging”: false,
“batteryCharge”: 56,
“doorState”: 2,
“ringToOpenTimer”: 0,
“nightMode”: false
},
“firmwareVersion”: 133640,
“hardwareVersion”: 3074,
“serverState”: 4,
“adminPinState”: 0,
“virtualDevice”: false,
“creationDate”: “2021-02-17T14:22:16.372Z”,
“updateDate”: “2021-05-18T07:35:10.096Z”
},
{
“smartlockId”: XXX,
“accountId”: XXX,
“type”: 2,
“authId”: XXX,
“name”: “Opener”,
“favorite”: false,
“config”: {
“name”: “Opener”,
“latitude”: XXX,
“longitude”: XXX,
“capabilities”: 1,
“pairingEnabled”: false,
“buttonEnabled”: true,
“ledEnabled”: false,
“timezoneOffset”: 0,
“daylightSavingMode”: 0,
“fobPaired”: false,
“fobAction1”: 7,
“fobAction2”: 0,
“fobAction3”: 0,
“operatingMode”: 1,
“advertisingMode”: 0,
“keypadPaired”: true,
“homekitState”: 0,
“timezoneId”: 40
},
“openerAdvancedConfig”: {
“intercomId”: 0,
“busModeSwitch”: 0,
“shortCircuitDuration”: 0,
“electricStrikeDelay”: 0,
“randomElectricStrikeDelay”: false,
“electricStrikeDuration”: 10000,
“disableRtoAfterRing”: true,
“rtoTimeout”: 20,
“doorbellSuppression”: 0,
“doorbellSuppressionDuration”: 500,
“soundRing”: 0,
“soundOpen”: 0,
“soundRto”: 0,
“soundCm”: 0,
“soundConfirmation”: 1,
“soundLevel”: 128,
“singleButtonPressAction”: 0,
“doubleButtonPressAction”: 0,
“batteryType”: 0,
“automaticBatteryTypeDetection”: false,
“autoUpdateEnabled”: true
},
“state”: {
“mode”: 2,
“state”: 1,
“trigger”: 0,
“lastAction”: 3,
“batteryCritical”: false,
“doorState”: 0,
“ringToOpenTimer”: 0,
“nightMode”: false
},
“firmwareVersion”: 67076,
“hardwareVersion”: 1041,
“serverState”: 4,
“adminPinState”: 0,
“virtualDevice”: false,
“creationDate”: “2021-02-17T14:43:48.376Z”,
“updateDate”: “2021-05-20T12:15:32.561Z”
}
]