I often send web request to my nuki devices remotely.
If for some reason they go offline (power outage, or network down), my requests for status or commands don’t show any issue so I can’t recognise my commands didn’t go through. GET status always returns a code 200, and POST commands always returns a 204 code.
How do I recognise if my devices are offline?
I found out it’s the serverstate variable to check.
0 is online, 4 is offline. It’s not in the WEB API documentation, but in the swagger all the variables are listed.
After the device goes offline I noticed it takes a while to receive the real offline value. Do you know if it’s a fixed delay update? Is it variable or can we change it to be updated more frequently?