Sorry Joerge, I should have specified in the instructions that the first time you restart, the sensor is not initialized, so you have to trigger it opening/closing the door, so you have the first callback. I updated the instructions with a quick note about it.
Regarding the recharging state of the batteries, I have code in place that changes the icon of the battery (strike symbol) if the batteryCharging flag reported by Nuki is true. I see your battery like this:
That means batteryCharging is true, and Nuki docs say this about it:
So when that flag is true, I use a battery icon with the strike symbol, otherwise, a plain battery icon with the charging level.
Let me know if the door sensor works when you open it the first time.
Guess its my fault. I assumed I had to open/close it at least once, but I had trouble in the beginning, because I registered two different callback and the second callback two times.
So while testing I opened/closed door severall times, but after figuring out how to remove all callbacks and after starting from scratch, I forgot to do so.
It shows the door status now, thank you.
Regarding the batteries: yes, the api told they were charging, but as said, this are normal, but high capacity and long lasting, non-rechargeable batteries. I have no experience with them in the lock, but in a Blink cam they last one year.
I understand that the battery pack is only charged, when it falls under 75%.
Anyway, I changed the battery recognition settings in the app to Off and On again and now the charging state is false and the icon normal.
Hi,
Thank you for the nice work (and all others who worked on it).
All is running fine, including Battery Level, except door status. It is because I created a callback with a wrong IP, something as http://192.168.0.10:8123 when my HA server is reachable as https://ha.mydomain (redirected by my router to https//192.168.0.10:8123). If I try to create (re-create ?) a callback with this last https address, I get a “HTTP 400 Bad Request”. May be I have to delete (how ?) the existing callback ?
I tried to configure http://192.168.0.10:8123 as an internal URL in HA but I cannot reach my HA server this way.
Did you have the setting “rechargable” forced on? That would explain it. If I’m not mistaken, there’s an Auto setting, so the Nuki detects if the batteries are normal or rechargable.
Anyway, good that is working too. You’re all set now.
Thank for the help !
The first command run fine and shows one entry (id=0) but something is wrong with the second command, I get “HTTP 401 Unauthorized”. By the way, this “%26” seems a little bit strange to me.
The problem is that Nuki Bridge doesn’t support HTTPS, only HTTP. You need to use the INTERNAL IP on HTTP. If you hardened HA’s config to only accept HTTPS, you can’t use callbacks from Nuki Bridge. It only works on HTTP.
If you hardened HA’s config to only accept HTTPS […]
I configured an internal URL (http://192.168.0.10:8123) via the UI but I cannot connect to my HA server this way. What I have to do to “dis-hardened” my config ?
Automatisch (automatically)
Nuki Power Pack / Akkus (<- means rechargeables)
which I read as it will automatically been recognized and distinct between normal batteries and rechargeables.
But it seems its only good when using with rechargeables.
Hm, this is somehow strange. I can’t uncheck either choice. When I have checked Lithium Batteries and enable “Automatically” it chows what I had checked before, even when it was Alkali but Lithium batteries are in.
Seems the detection is not really working.