homebridge-nukiio icon indicating copy to clipboard operation
homebridge-nukiio copied to clipboard

Confused - slowing down home bridge and 503 error

Open hajfly opened this issue 1 year ago • 10 comments

Installed the plugin successfully and it seemed to work, changed nothing but now only get following errors:

[18/01/2024, 17:18:38] [NukiBridge] Request to Nuki bridge 'http://XXX' finished with status code '503' and body 'HTTP 503 Unavailable'. null [18/01/2024, 17:18:38] [NukiBridge] Request for lock state aborted. This is no problem and might happen due to canceled request or due to long response time of the Nuki bridge. Using cached value isLocked = 'true'. [18/01/2024, 17:18:38] [NukiBridge] Request for lock state aborted. This is no problem and might happen due to canceled request or due to long response time of the Nuki bridge. Using cached value isLocked = 'true'.

Anything I can do here from my side?

hajfly avatar Jan 18 '24 17:01 hajfly

How many locks are connected to the bridge and what lock_state_mode are you using?

benzman81 avatar Jan 18 '24 20:01 benzman81

one lock and one opener - always request lock states

hajfly avatar Jan 18 '24 20:01 hajfly

Try lock_state_mode = 1. Multiple device might cause this as the bridge can only handle one request at a time.

benzman81 avatar Jan 18 '24 20:01 benzman81

As I use the settings I guess 1 is plugin cache?

hajfly avatar Jan 18 '24 20:01 hajfly

Yea

benzman81 avatar Jan 18 '24 21:01 benzman81

Thanks, that works so far, no further error messages, what still doesn't work is, that I don't get a message on my phone as soon as the door is opened or closed, had this with the plugin I used before. Any further adjustments to make to get that ?

hajfly avatar Jan 19 '24 15:01 hajfly

This has nothing to do with the plugin as Homekit is responsible for the notifications. Maxbe you turned them off in home app.

benzman81 avatar Jan 19 '24 15:01 benzman81

Thanks for the quick reply - strange I didn't and they are turned on. Well - thanks so far

hajfly avatar Jan 19 '24 16:01 hajfly

If you lock nuki while having the home app open, does it change to locked in the app? Or the other was around?

benzman81 avatar Jan 19 '24 16:01 benzman81

yes it does but with quite a delay. When using the switches in the home app it also posts messages, but it doesn't when the lock is e.g. closed manually. The update in the app if done so takes up to two minutes.

hajfly avatar Jan 19 '24 16:01 hajfly