-
I have been using the Belchertown skin on weewx with a MQTT broker in Home Assistant for some time now. All working good. Now the MQTT broker addin in HA has been updated and anonymous logins are no longer supported. I have added a user and password in the broker and into my weewx.conf with mqtt_websockets_username and mqtt_websockets_password fields but connections are refused. "null unpwd" in the broker logs. I am not using SSL Are there different credentials or configurations needed for an updated Mosquitto? Anyone have this working with the Home Assistant broker? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
what versions of the skin and mosquitto are you using? |
Beta Was this translation helpful? Give feedback.
-
Version 1.2 of the skin is the current stable release. If you want to use 1.3b1, you would need to clone the current main branch and then manually set it up in weewx. I know you said that you aren't using SSL, but I did come across a bug in 2.0.11 of Mosquitto that affects SSL, I'm not sure if it also affects unot setting a user/password as well (I don't have them set on my setup). I have noticed that having blank, or null username and password (ie: user = "") set for seems to break the websocket connection. I'm unsure if this is a bug in Mosquitto or in the JS websocket client. |
Beta Was this translation helpful? Give feedback.
Version 1.2 of the skin is the current stable release. If you want to use 1.3b1, you would need to clone the current main branch and then manually set it up in weewx. I know you said that you aren't using SSL, but I did come across a bug in 2.0.11 of Mosquitto that affects SSL, I'm not sure if it also affects unot setting a user/password as well (I don't have them set on my setup). I have noticed that having blank, or null username and password (ie: user = "") set for seems to break the websocket connection. I'm unsure if this is a bug in Mosquitto or in the JS websocket client.