Comments (12)
Hi,
Yes the arduino core can cause such issues. It's the code from Espressif that everything else is built upon, including drivers for wifi, bluetooth, TCP/IP stack. If anything is broken in there, it can cause any issue. We did test it before release 8.24, but couldn't observe the issue, only now with longer testing we could see it.
from nuki_hub.
Can you confirm this is related to 8.24 by going back to 8.23 and logging the connection state?
Updating the arduino core for esp32 could make wifi less reliable, although I don't think so, updates usually improved stability. Also there's nothing regarding wifi in the changelog:
https://github.com/espressif/arduino-esp32/releases/tag/2.0.9
from nuki_hub.
I downgraded to 8.23 now (only the affected ESP) and will report back in a few days.
from nuki_hub.
Short update:
SL 3 with Nuki Hub 8.23:
(no recent incidents, last one 3 days ago)
So looking at MQTT connection entites and Nuki Hub only I tend to say "things got worse from 8.23 to 8.24". Comparing the uptime sensors it looks like it's more a general (WiFi?) connection/stability thing.
from nuki_hub.
I have no issues regarding MQTT connection, I'm using EMQX.
from nuki_hub.
@mcutter what broker are you using? can you produce serial debug logs so we can see exactly what happens when NH does the MQTT connect?
from nuki_hub.
Also please post the system information page, best case of both ESPs so we can compare.
from nuki_hub.
- I use the default addon in Home Assistant as MQTT broker (Mosquitto).
- Logs sounds like hard work as the logging possibilities are quite limited, for usable (long-term) logs I'd probably first do a deep-dive into it. The web only shows limited number of log entries.
- System information pages
- SL 3 Pro with NH 8.24
System Information
NUKI Hub version: 8.24
run: true
deviceId: XXXXXXXXXX
deviceIdOp: XXXXXXXXXX
mqttbroker: xxx.xxx.xxx.xxx
mqttport: 1883
mqttuser: ***
mqttpass: ***
mqttlog: false
lockena: true
mqttpath: nuki_door_a
openerena: false
mqttoppath:
maxkpad: 4
opmaxkpad:
mqttca:
mqttcrt:
mqttkey:
hassdiscovery: homeassistant
dhcpena: true
ipaddr: xxx.xxx.xxx.xxx
ipsub: 255.255.255.0
ipgtw: xxx.xxx.xxx.xxx
dnssrv: xxx.xxx.xxx.xxx
nwhw: 1
rssipb: -1
hostname: ESP-Nuki-Hub-Door-A
nettmout: -1
restdisc: true
rstbcn: 60
lockStInterval: 3600
configInterval: 3600
batInterval: 7200
kpInterval: 1800
kpEnabled: true
accLvl:
regAsApp: false
nrRetry: 5
rtryDelay: 100
crdusr: ***
crdpass: ***
pubauth: true
pubdbg: false
prdtimeout: 60
hasmac: false
macb0:
macb1:
macb2:
MQTT connected: Yes
Lock firmware version: 3.6.9
Lock hardware version: 5.11
Lock paired: Yes
Lock PIN set: Yes
Lock has door sensor: No
Lock has keypad: Yes
Network device: Built-in Wifi
Uptime: 1456 minutes
Heap: 84840
Stack watermarks: nw: 6104, nuki: 312, pd: 248
Restart reason FW: RestartOnDisconnectWatchdog
Restart reason ESP: ESP_RST_SW: Software reset via esp_restart.
- SL 3 with NH 8.23
System Information
NUKI Hub version: 8.23
run: true
deviceId: YYYYYYYYYY
deviceIdOp: YYYYYYYYYY
mqttbroker: xxx.xxx.xxx.xxx
mqttport: 1883
mqttuser: ***
mqttpass: ***
mqttlog: false
lockena: true
mqttpath: nuki_door_b
openerena: false
mqttoppath:
maxkpad:
opmaxkpad:
mqttca:
mqttcrt:
mqttkey:
hassdiscovery: homeassistant
dhcpena: true
ipaddr: xxx.xxx.xxx.xxx
ipsub: 255.255.255.0
ipgtw: xxx.xxx.xxx.xxx
dnssrv: xxx.xxx.xxx.xxx
nwhw: 1
rssipb: -1
hostname: ESP-Nuki-Hub-Door-B
nettmout: -1
restdisc: true
rstbcn: 60
lockStInterval: 3600
configInterval: 3600
batInterval: 7200
kpInterval: 1800
kpEnabled: false
accLvl:
regAsApp: false
nrRetry: 5
rtryDelay: 100
crdusr: ***
crdpass: ***
pubauth: true
pubdbg: false
prdtimeout: 60
hasmac: true
macb0: -XX
macb1: YY
macb2: ZZZ
MQTT connected: Yes
Lock firmware version: 3.6.9
Lock hardware version: 4.10
Lock paired: Yes
Lock PIN set: Yes
Lock has door sensor: No
Lock has keypad: No
Network device: Built-in Wifi
Uptime: 232 minutes
Heap: 90124
Stack watermarks: nw: 6104, nuki: 600, pd: 248
Restart reason FW: RestartOnDisconnectWatchdog
Restart reason ESP: ESP_RST_SW: Software reset via esp_restart.
The last MQTT connection issue for door B has been many days ago meanwhile running 8.23.
I updated NH once again to 8.24 on that ESP now, let's see if things change.
from nuki_hub.
screen -L /dev/<your-usb-tty> 115200
and then send us screenlog.0
(ESP32 connected via USB to the computer of course, UNIXish OS).
from nuki_hub.
I agree that getting serial logs would help to get some insight into what's going on. They would especially tell if the MQTT connection is really interrupted.
from nuki_hub.
You could the binary from this issue, maybe it's related:
from nuki_hub.
Updated to 8.25 now, will monitor it for a few days. With 8.24 it seems like the ESP itself had more MQTT/connection issues when connected to a certain WiFi AP while others were working better/fine. That behaviour is/was definitely new and did not exist in the past.
Not sure if that makes sense (can Arduino Core cause such WiFi and in the end MQTT connection issues?), just a pre-summary form my current point of view.
from nuki_hub.
Related Issues (20)
- problem update at 8.35 HOT 1
- Nuki Hub gets unavailable for a couple of hours a day - also tries to reconnect every minute afterwards HOT 22
- Battery "level" is missing in version 8.35 HOT 2
- Ethernet support broken for core 3 builds HOT 1
- Nuki hub status does not change HOT 7
- Presence HOT 7
- No info in the logbook HOT 1
- [Feature request] Add support for DM9051NP Ethernet adapter (ETH01-Evo) HOT 16
- Nuki Lock freezes(goes offline) after a while when connected to Nuki Hub HOT 15
- 8.35: battery voltage not provided to Home Assistant anymore HOT 8
- 8.35: config changes triggered in Home Assistant triggers complete MQTT reload for that device (renders all entities unavailable) HOT 26
- [9.0-beta/master] No valid Opener config received HOT 21
- status lock does not update HOT 2
- Remove Unlatch to Home Assistant ? HOT 1
- [Feature Request] Disable the "Unlatch" discovery HOT 4
- /src/updater/release/esp32/updater.bin: No such file or directory HOT 2
- Keypad 2.0 Keypad status does not show activity HOT 4
- 9.0 boot loop HOT 4
- Nuki Hub "Nuki Lock state" updates in web front end, but does not propagate to Home Assistant HOT 4
- Updating from 8.33 error when download from ESP ota interface HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuki_hub.