I’m in the process of moving from Hassbian to Hass.io
In my Hassbian setup I use a MQTT bridge connection to sync my Owntracks data with my local MQTT broker (link). Now I was wondering if and how I can accomplish the same with Hass.io.
Hey, I was trying to extend the stock mosquitto addon to include the necessary file.
How can I check the mosquitto.conf file on the raspberry pi? When SSHing into the /etc folder, it’s not there. Is there a “developer” SSH version where I see all the files of the filesystem?
This file would be inside docker which is kind of small virtual machine. You’ll need to
SSH to host
View running containers docker ps
Find Image Id of your container (local/mosquitto something)
docker exec -it <container id> bash
Another option is to change location of your conf file and to serve it from, for example, share folder (refer to hassio documentation describing linking folders)
I’m using a windows machine, so except the boot partition I cannot access anything if I put the sd card into my reader. Do you know any solution to get the public key onto the root partition?
What should the ‘clientid’ be? Can it be anything? I’ve used ‘hassio’ but I get the following error when in MQTT.
starting version 3.2.2
1502536497: mosquitto version 1.4.12 (build date 2017-06-01 13:03:48+0000) starting
1502536497: Config loaded from /etc/mosquitto.conf.
1502536497: Opening ipv4 listen socket on port 1883.
1502536497: Opening ipv6 listen socket on port 1883.
1502536497: Warning: Mosquitto should not be run as root/administrator.
1502536497: Connecting bridge cloudmqtt (m11.cloudmqtt.com:11576)
1502536498: Socket error on client local.hassio, disconnecting.
1502536528: Connecting bridge cloudmqtt (m11.cloudmqtt.com:11576)
1502536528: Socket error on client local.hassio, disconnecting.
I can log on to m11.cloudmqtt.com:11576 using MQTT.fx so I know the connection and account is OK.
Not sure what you mean? I’m getting the local MQTT add-on trying to connect to a remote CloudMQTT instance using the customize option. I have no outbound port firewalls.
I’m not at home right now, but in cloudmqtt you’ve to create a new user with access rights to the topics you want to sync. I used this user as my client id
I then saved it, restarted the addon and rebooted the Pi. How can I tell if it is running properly? I am trying to set it up to get an addressable LED strip working through Hass (from Ben’s video).
Download MQTT.fx, it’s a life saver. Create a connection to your broker using the IP, username and password you set and then subscribe to # (everything). You can then use that to publish commands and to see what is happening at the broker. Great tool if you’re not into the command line stuff.
Wondering if you can confirm your config for me? If I use CloudMQTT as my broker (instead of the local IP) I connect to CloudMQTT and see that my position reported by Owntracks is being updated. If I then revert to the hassio MQTT add-on with a customize option using the same credentials as before (but now in a conf file), I get socket errors and disconnection.