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.
Thank you. It seems I have the same but the logs for MQTT give me this:
1502922011: Connecting bridge cloudmqtt (m11.cloudmqtt.com:http_port)
1502922011: Socket error on client local.hass, disconnecting.
Can you share your logs for the MQTT add-on? Unless I’m staring at a glaringly obvious typo I can’t see, my config appears to be the same as yours?
P.S Did you add a bridge back to your local HASS instance in the CloudMQTT console as I see some mentioning that?
If I remove the local MQTT instance in my configuration.yaml and add CloudMQTT instead with the same username and password, HASS connects and reports my phones location so something a bit nuts.
@tillmannschatz My BAD!!! I had the @#@#$%^%^ CloudMQTT address wrong! I had m11.cloudmqtt.com instead of m13.cloudmqtt.com even though I’d recorded the correct address in my network database. Argh. That’ll teach me for trying to do home automation at 1130 at night. Thanks for sharing your config and for your patience.