Mosquito MQTT Is started

Hi Guys! I hope I’m asking this in the right place (100% new to HA and having an issue getting it to work!).

I installed HA on my Pi 3, I’m using a Raspberian OS because I also wanted to flash my tuya lightbulbs.

I’m setting up the Mosquito MQTT, I’ve downloaded it from the add-on store on my home assistant, but it says it’s not starting (dot stays red).

However, when I run systemctl status mosquitto.service on the raspberry Pi it says it’s running.

it’s not creating any logs either. I don’t have the configuration option for the MQTT too.
Does anybody have an idea what I could try?

Thank you in advance guys! Really hope I can figure this out, bit of a linux noob so ye…

This is my status log when I run the systemctl:

● mosquitto.service - Mosquitto MQTT v3.1/v3.1.1 Broker
   Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-11-20 18:29:19 GMT; 22min ago
     Docs: man:mosquitto.conf(5)
           man:mosquitto(8)
 Main PID: 560 (mosquitto)
    Tasks: 1 (limit: 2200)
   Memory: 1.7M
   CGroup: /system.slice/mosquitto.service
           └─560 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf

Since you said that you are running Mosquitto as an add-on, are you using Hass.io? The Hass.io add-on will run in its own container so you won’t be able to see the service in the host OS. When you look at the log at the bottom of the Mosquitto add-on when you start it, what does it show?

Hi! Thank you for your reply!

It doesn’t show a log. I installed HA using this guide

I think what you’re saying is it doesn’t work because I used Raspberian as OS instead of hassio?
I’m not a advanced linux user, if this would be the case do you think it’s best to install the Hass IO
OS? I only used Raspberian cause I wanted to flash my cheap tuya lightbulbs. Perhaps it’s best to flash them all and then reinstall the raspberry with the official hass.io?

Much appreciated!

The way you installed it should be fine. You are still running the Hass.io version, it appears, so it should work in almost the same way. When you say you installed the Mosquitto add-on, I am assuming you are viewing the add-on inside of HA. On the add-on screen where you start the add-on (and do configuration), there should be a Log with a Refresh link at the bottom of that page. If you aren’t seeing that, maybe I have misunderstood how you installed it.

I will also mention, while we are on the subject, that Tuya bulbs are supported natively in HA. It does require them to be connected to the Tuya cloud, but it works well, and you don’t have to go to all of the trouble of putting Tasmota or whatever on the bulb.

Then you shouldn’t be installing and running Mosqutto in Raspbian.

You’re trying to run the same thing twice. This won’t work. Pick one.

I only tried it using the add-on store actually!

The above says otherwise :wink:

1 Like

Maybe we need to clarify what you mean by “Add-On Store”. Are you meaning the Add-On section that you get to by clicking the Hass.io icon on the lower left of the Homeassistant menu?

If you see mosquitto come back as status on systemctl, then it’s running directly on the host, and not in add-ons.

sudo apt remove mosquitto on the host and then try the add-on again

1 Like

I think it might has to do with the Tuya converter I used, since I really didn’t install it with apt install. I used sudo apt remove mosquitto and reinstalled it again in the hass.io add-on and it works now! Thanks for your reply

This fixed it! thank you sir!

Hi, it’s not really a reply, but I want to share my experience. I started setting up Mosquitto MQTT and struggled.

And here is where:

To use the Mosquitto as a broker, go to the integration page and install the configuration with one click:

1. Navigate in your Home Assistant frontend to Configuration -> Integrations .
2. Use the Add button and search for MQTT
3. Configure the Broker, Port, Username, Password and Submit.

At second instruction I clicked on the already new found integration instead of searching it with the “Add Button +”. In this case I wasn´t asked to enter “Broker (IP of rpi), Port, Username, Password”. Hence I wasn´t able to set it up correctly.

After search of MQTT with add button everything went fine.

Just in case somebody has the same problem.

Good Automation!