technyon / nuki_hub

Use an ESP32 as a Hub between a NUKI Lock and your smarthome.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stops reacting after some hours

Mikescotland opened this issue · comments

Does anyone have similar problem?
After NH restart works fine, then randomly after a few hours stops communicating with Nuki lock, restart helps.
Nuki lock 3, latest firmware, NH also latest.

Please post the content of the system information page (click on the firmware version)

NUKI Hub version: 8.29
run: true
deviceId: 781432325
deviceIdOp: 3743102218
mqttbroker: 192.168.1.10
mqttport: 1883
mqttuser: ***
mqttpass: ***
mqttlog: false
lockena: true
mqttpath: nuki
openerena: false
mqttoppath:
maxkpad:
opmaxkpad:
mqttca:
mqttcrt:
mqttkey:
hassdiscovery: homeassistant
dhcpena: false
ipaddr: 192.168.1.33
ipsub: 255.255.255.0
ipgtw: 192.168.1.1
dnssrv: 192.168.1.1
nwhw: 1
rssipb: 60
hostname: nuki-hub
nettmout: -1
restdisc: true
rstbcn: -1
lockStInterval: 1800
configInterval: 3600
batInterval: 1800
kpInterval: 1800
kpEnabled: false
accLvl: 0
regAsApp: false
nrRetry: 5
rtryDelay: 100
crdusr:
crdpass:
pubauth: false
pubdbg: false
prdtimeout: 60
hasmac: false
macb0:
macb1:
macb2:
MQTT connected: Yes
Lock firmware version: 3.7.7
Lock hardware version: 6.11
Lock paired: Yes
Lock PIN set: Yes
Lock has door sensor: No
Lock has keypad: No
Network device: Built-in Wifi
Uptime: 659 minutes
Heap: 75792
Stack watermarks: nw: 6008, nuki: 552, pd: 224
Restart reason FW: NotApplicable
Restart reason ESP: ESP_RST_PANIC: Software reset due to exception/panic.

Try to enable "Restart if bluetooth beacons not received", you can set a value like 60 seconds.

Enabled. Will watch

And normally what is the interval lock usually sends the beacon?

It depends on the energy saving settings you can set in the app ... a lot less than 60 seconds :). Maybe something like once per second.

No need to set it to fast. This is setting is more about what happens on ESP side. Unfortunately the bluetooth stack tends to die sometimes, this is unfortunately out of my control. At this point the ESP can't receive beacons anymore, and enabling this setting will cause it to reboot to revive the bluetooth stack.

Does this probably corresponds to my issue: #236
Sounds like the same "behaviour".

@KingSausage Probably yes, it sounds similar.

There no effect in terms of how fast an action is executed. Beacons are only for communicating from lock to ESP. If you choose the fast setting, the ESP may catch a new state (e. g. you unlocked via the smartphone app) a little faster.

@technyon what would you recommend for esp32 with LAN for nuki hub? I'd like to remove wifi from this equation.

The M5Stack Atom PEO or one of the Olimex boards. The WT32-ETH01 and M5Stack PoESP32 Unit work just fine too, but are more difficult to flash since you have to connect a USB-Serial converter to the right PINs, and even then it's tricky to get it to flash.

@Mikescotland Were you able to try one the suggested boards?

@Mikescotland I assume it works fine for now, so I'm closing here. If not please follow up in issue #236