Solar Assistant and MQTT

Hello everyone.

I would like to add to my solar assistant to Home assistant accross mosquitto brocker.
I have followed the documentation here: Intégration de SolarAssistant avec Home Assistant

But i have a error : “Disconected due to protocol error”:

How can i solve that or where i need to search?

thx for your help.

You have set in the folder
/share/mosquitto/solar_assistant.conf

connection SolarAssistant
address 172.xx.x.xx
topic # in
topic solar_assistant/# out

I put:

connection SolarAssistant
#remote_username solar-assistant
#remote_password solar123
address XXX.XXX.XXX.XXX
topic # in

Without the last line (topic solar_assistant/# out) …

but, after reboot services, it’s the same.

image

Another issue. When i change in Mosquitto Broker the parameter from false to true

I lost all my zigbee device (in MQTT). No connexion :frowning:

Hi, did you create the mosquitto folder that pepe59 is also referring to?
Detailed instructions

Yes, i follow the documentation.

I started by creating the folder in share, then the file and its contents.

But, when i active de mosquitto (preview post), i lost the connexion between MQTT and Zigbee2MQTT.

May can help, i manage log/password in Zigbee2MQTT.

Since you did not configure the user/password in the solar_assistant.conf file, can you double check in solar assistant if you should have supplied it?

So, I tried adding the login/password. It didn’t change anything.

I tried to remove the login/password in Zigbee2MQTT, MQTT, and Mosquitto broker, but I couldn’t get it to work.

As soon as I change the parameter in Mosquitto broker from false to true, nothing works anymore.

So, I still did some research and in several places, they recommend uninstalling the Mosquitto broker and reinstalling it from scratch.
I’m afraid to do that—afraid of losing the 50 Zigbee devices in Zigbee2MQTT.

What do you think?

I don’t have a user and password set in MQTT and therefore it uses the same login details as HA.

logins: []
require_certificate: false
certfile: fullchain.pem
keyfile: privkey.pem
customize:
  active: true
  folder: mosquitto

In Z2M I have the same user and password as the HA login.
Are you sure that the SA IP address (192.168.69.157) is correct?
Try restarting the host after setting it up correctly, not just HA