Mqtt addon didn't start after Hardware change

Hi guys,

I changed my HA Green to Nuc and run Solar assistant over mqtt. In file editor solar assistant was in homeassistant/share/mosquitto/solar_assitant.conf

The Mqtt only Starts and Work when i Change in the mosquitto.conig from true into false.

but when is change

customize:
  active: false
  folder: mosquitto

to this

customize:
  active: true
  folder: mosquitto

the Addon does start but gives me some errors

here is my log:

Error: Unable to open include_dir '/share/mosquitto'.
Error found at line /etc/mosquitto/mosquitto.conf:33. 
[09:12:35] INFO: Successfully send discovery information to Home Assistant.
[09:12:35] INFO: Successfully send service information to the Supervisor

Thanks for the fast advice. Its running but only with config. False and not true. I need this option tu running Home assistant. I postet a log, this was my error.

So, did you create /share/mosquitto ?

Yes, didn’t worked.

Isn’t solar_assistant that thing with it’s own broker internally and you have to do some funky bridging maneuver thing? I remember some solar integration that did that I think…

It’s not exactly clear to me what your setup is, but I do use Solar Assistant. I’m also not very familiar with HAOS.

Is the add-on you’re running a mosquitto add-on?

First make sure your add-on is correctly configured and running without anything related to Solar Assistant.

Then configure the bridge which will bind Solar Assistant’s MQTT broker with yours (the add-on’s one).

AFAIK, you cannot connect Solar Assistant’s broker directly to HA.

Does your Solar Assistant MQTT config look like this?

What config is this?

address needs to be 192.168.68.69:1883

This is config in the mosquitto broker. The “false” should be a “true”, but when its true, its gives me the 2 erros.


My solar_assistant looks Like this.

Your HAOS runs in an NUC or a other PC ? Can your send me a picture, in which folder structure your Solar Assistant is created?
Like this …

I tried that, but didn’t work

I don’t run HAOS, unfortunately (HA Core user here). So, I have a structure, but it’s completely different and I don’t think it will help you (it’s in the typical /etc location.

The reason for asking about that config is that I was unable to find it in the mosquitto docs to understand what it does. I don’t have that in mine, so I thought it might be specific to the add-on (which I don’t use either).

I have an idea though: create a conf.d directory in the mosquitto one and move the bridge config there.

Thanks for the advice, but can you please explain your idea. I’m not a pro in HAOS . :wink:

I’ve said twice that I’m not an HAOS user. You’ll need to do some digging or wait for another reply. All I know is that on a standard Debian system with mosquitto, the additional broker configs will be in a subdirectory called conf.d.