SL4P MQTT Problems since Nuki FW Update 4.1.8

Installed 4.2.1 Beta today and after the Update it first didnt connected to my Broker until I have removed the Battery. Since then no new malformed package errors in the Mosquitto Log:

2024-03-08T16:06:58: New client connected from 192.168.1.103:51951 as Nuki_39C748EC (p2, c1, k300, u'loxberry').
2024-03-08T16:06:59: Client Nuki_39C748EC disconnected due to malformed packet.
2024-03-08T16:07:51: New client connected from 192.168.1.103:49867 as Nuki_39C748EC (p2, c1, k300, u'loxberry').
2024-03-08T16:08:26: Client Nuki_39C748EC already connected, closing old connection.
2024-03-08T16:08:26: New client connected from 192.168.1.103:51601 as Nuki_39C748EC (p2, c1, k300, u'loxberry').
root@loxberry:/opt/loxberry

I don’t have new 4.2.1 firmware! The check report the 4.2.0 beta Is the last firmware. Any suggestioni?

Thanks

I forst had to update to 4.2.0 and then the 4.2.1 showed up.

I already have 4.2.0

Luca metti la 4.20 e dopo ti trova la 4.2.1, da me ha funzionato…

Paolo ho già la 4.2.0 ma non mi propone la 4.2.1.
Se vedi lo screen sopra ho la 4.2.0 e mi dice che è l’ultima disponibile.

We discovered another issue which can lead to the malformed packages problem. It only occurs if “Home Assistant auto discovery” is turned off. We therefore advise you to turn it on if you are using 4.2.1 beta. Issue will be fixed in the next beta.

1 Like

Today my SL4P - running with Beta Firmware 4.2.1 - doesnt responded again to MQTT commands, although according to the Nuki App it was connected to my Broker:

I reconnected it manually (this time with “Home Assistant auto discovery” is turned on, even when I dont need this) and this time this immediately worked and MQTT commands worked again.


1 Like

Update:
1 of the 2 locks with the new firmware (4.2.1) was unavailable starting 11-03-2024 01:35:59.
I needed to disconnect the power around 07:18:05 to get it working again.
Timestamps are from Home Assistant.

Best regards,
Jacob

In my case the reason for this where the malformed packages, which was fixed/workarounded with Firmware 4.2.1.

Now the Connection is way more stable and when the problem of not accepting MQTT commands is occuring again, an manuell reconnect or battery pull/push will resut in an immediately successfull reconnect.

Long Story short, for me (as an Thread opener) the core / “nightmare” problem is fixed, thanks!

@Juergen Hi, good morning. Bad news: after about 60 hours i got again disconnection.

Mosquitto logs:

1710148006: Client Nuki_xxxxx closed its connection

So in my case 4.2.1 does not solve the issue :frowning:

Before to buy nuki 4 pro i had nuki 3 pro for 12 months and i never never never got any disconnection

@Juergen, MQTT Commands are not handled again from the Nuki even with 4.2.1 beta:

Again Confirmed: MQTT Reconnecting via App triggered (although Nuki App and my Tracking/Monitoring said MQTT is still connected [1] ) and the SL4P is immediately accepting MQTT commands again:

[1]

According to our logs, the message arrived at the Smart Lock and was denied because of

lockAction = 30

was sent. Your screenshot also says 3.000. Maybe there is a problem with the “.” and how the numbers are sent in general and/or interpreted by the Smart Lock. Can you please DM me the pcap from your screen shot?

Great that we have a confirmation that the TCP MQTT Package was received from the Nuki and that we have a Logfile entry with the reason. I didnt have updated the MQTT Broker|Mosquitto recently so I dont know, why it is sending sometimes an i.e. 30 instead of 3.

Update: According to the Payload the Broker has sent an 3 and not an 30:

The 3.00 is just the Number from the Loxone Output I am Monitoring, and not the MQTT Command.

I tried it but I get…:

Sorry, the file you are trying to upload is not authorized (authorized extensions: jpg, jpeg, png, gif, heic, heif, webp, avif).

…thus I have sent you an Google Drive Link.

1 Like

Yes, looks like that. We think we found the problem and are currently testing it. Will be included in the next beta. There is no workaround for the time beeing.

1 Like

Hi Jürgen,

my nuki don’t show the beta update! I still in hang on 4.2.0.
I try to reset completly my app and lock but nothing works.

can you give me a suggestion? what can I check?

Thanks
Luca

Installed beta 4.2.1, but after 24h or so the lock doesn’t respond to the MQTT orders from Home Assistant. The auto discovery is on. The only difference with new fw is, I can open the MQTT settings, enter the password and it works again for 24h. So fw 4.2.1 doesn’t fix the issue for me.

Update:
The second lock is not available in HA anymore.
Also in the Nuki app offline.

Best regards,
Jacob

Same procedure, now it lastet arround ten hours until I noticed, that MQTT Commands are not working and I had to manually reconnect my Broker again.

I’m note sure but…i have to report this.
I assigned into my router settings a static ip to my Nuki smart lock and It Is 3 days that i havent issue…
I Will update you if i get a disconnection or not in next hours/days