nuki_hub icon indicating copy to clipboard operation
nuki_hub copied to clipboard

Keypad Control: when enabled Nuki Hub doesn't work anymore

Open alexdelprete opened this issue 1 year ago • 6 comments

Hi,

I just configured Nuki Hub: flashed fw, configured wifi, set mqtt parameters and paired the Lock. Automagically HA had all the entities available, they were refreshing quickly. Everything worked out beautifully.

While checking the other features, I enabled Keypad Control: the device rebooter, and NOTHING was working anymore. Ping timeouts on the network, ping timings were huge, and then it stopped responding to pings. I cyvled power a couple of times but the behaviour was consistent, after the boot, things weren't working anymore, the device was not reachable. Luckily, I managed to open the web interface for 10 secs one time and I could disable the Keypad Control, the device rebooted and everything was perfect again.

While it wasn't working, I noticed a LOT of MQTT msgs on the nuki/keypad topic. I think the CPU of the device was in a loop, that's why nothing was working anymore (that was the impression at least).

Hope you'll find the issue. Meanwhile, thanks a lot for this project.

alexdelprete avatar Oct 18 '22 12:10 alexdelprete

Hi,

It sounds like your ESP was stuck in a reboot-loop. I can only guess from here, since it's working for me, Keypad is enabled on my ESP and it' running no issues. The keypad is configured and has some codes set? Which MQTT broker are you using?

technyon avatar Oct 20 '22 03:10 technyon

It sounds like your ESP was stuck in a reboot-loop

If it is a reboot loop, it's due to the enablement of that Keypad option. As soon as I turned it off, everything was good again. If I turn it on again, I'm back at square one. And also, the quantity of messages received by the broker was definitely abnormal, but that also tells me the network connection was ok.

From what I experienced, I think it's a sw issue (maybe specific to my configuration?) that causes the device to fire a lot of messages, and probably the CPU goes crazy and the device gets unresponsive. But I'm just speculating.

The keypad is configured and has some codes set?

Yes it is. We don't use it often, but it is configured.

Which MQTT broker are you using?

I use EMQX v5.0.8.

alexdelprete avatar Oct 20 '22 03:10 alexdelprete

What is set as "Query interval keypad" in your ESP?

technyon avatar Oct 20 '22 07:10 technyon

image

alexdelprete avatar Oct 20 '22 10:10 alexdelprete

I have the same problem after enabling the Keypad from the Dashboard.

MQTT is still working, and I can use the lock from Home Assistant. How can I disable the keypad without access to the dashboard?

thanks

polysa avatar Oct 27 '22 12:10 polysa

Try to call the config portal with "?KPENA=0". If that doesn't get through, factory reset I guess.

Very strange though, not sure how to investigate the issue. Maybe I'll try with a fresh ESP. Can't look into it at the moment though, I'm on vacation.

technyon avatar Oct 27 '22 13:10 technyon