I have since a week issues with zwave to mqtt connection.
I had zwavejs2mqtt and mqtt-mosquitto both in their own container running, and then I started to get connection issues. I upgraded to zwave-js-ui in the hope it would resolve the issue.
I’m now running Zwavejs2Mqtt 8.6.0.f033ee8 Z-Wave JS 10.3.1 to a mosquitto broker 2.0.14
I get the following errors:
2022-12-17 04:07:11.742 INFO MQTT: MQTT client reconnecting
2022-12-17 04:07:11.746 ERROR MQTT: Mqtt client error Cannot parse protocolId
Error: Cannot parse protocolId
at Parser._parseConnect (/usr/src/app/node_modules/mqtt-packet/parser.js:149:53)
at Parser._parsePayload (/usr/src/app/node_modules/mqtt-packet/parser.js:91:16)
at Parser.parse (/usr/src/app/node_modules/mqtt-packet/parser.js:43:45)
at Writable.writable._write (/usr/src/app/node_modules/mqtt/lib/client.js:451:12)
at doWrite (/usr/src/app/node_modules/readable-stream/lib/_stream_writable.js:409:139)
at writeOrBuffer (/usr/src/app/node_modules/readable-stream/lib/_stream_writable.js:398:5)
at Writable.write (/usr/src/app/node_modules/readable-stream/lib/_stream_writable.js:307:11)
at Socket.ondata (node:internal/streams/readable:766:22)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
2022-12-17 04:07:11.748 INFO MQTT: MQTT client closed
I first thought maybe openssl is not playing nice, but I get connected:
/usr/src/app # openssl s_client -connect mqtt.klomp.ca:51883
CONNECTED(00000003)
depth=2 C = US, O = Internet Security Research Group, CN = ISRG Root X1
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = R3
verify return:1
depth=0 CN = *.klomp.ca
verify return:1
---
Certificate chain
0 s:CN = *.klomp.ca
i:C = US, O = Let's Encrypt, CN = R3
1 s:C = US, O = Let's Encrypt, CN = R3
i:C = US, O = Internet Security Research Group, CN = ISRG Root X1
2 s:C = US, O = Internet Security Research Group, CN = ISRG Root X1
i:O = Digital Signature Trust Co., CN = DST Root CA X3
---
Server certificate
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
subject=CN = *.klomp.ca
issuer=C = US, O = Let's Encrypt, CN = R3
---
No client certificate CA names sent
Peer signing digest: SHA256
Peer signature type: RSA-PSS
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 4567 bytes and written 395 bytes
Verification: OK
---
New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384
Server public key is 2048 bit
Secure Renegotiation IS NOT supported
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---
closed
Anyone has a clue how to tackle this?