I tried both the internal host name of my hassio VM (hassio.local) and it’s IP address. I did not use the external fqdn (homeassistant.mydomain.com) because this resolves to my external ip and I don’t expose my mqtt broker externally.
Hello everyone, I run my Hassio on a raspberry pi zero w and after this update I have encountered problems with this addon, I always have this error log:
[s6-init] making available files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms … exited 0.
[fix-attrs.d] applying ownership & permissions fixes …
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts …
[cont-init.d] 00-banner.sh: executing …
[cont-init.d] 00-banner.sh: exited 267.
[cont-finish.d] executing container finish scripts …
[cont-finish.d] 99-message.sh: executing …
s6-maximumtime: warning: child process crashed
[cont-finish.d] 99-message.sh: exited 111.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
would the addon incompatibility with my Pi zero w?
I’m looking for some guidance on how to connect to the built-in server with the web client. I’m using Nginx Proxy Manager and I’ve set up a proxy host for MQTT. The MQTT addon logs show that it starts without errors. The NPM config is below, I’m forcing SSL, and there is a cert for mqtt.mydomain.duckdns.org:
When I try to connect to either mydomain.duckdns.org or mqtt.mydomain.duckdns.org over 4884, with the MQTT username and password from the MQTT addon and “Use SSL checked” (as below), I get the “Connect timed out” error:
Update: tried some things and made some progress. Thinking that my issue was SSL-related, I changed the addon to run on port 5713 and I disabled SSL (since I use Nginx Proxy Manager to manager my certs). At this point, I can access the web client at 192.168.xx.xxx:5713, the MQTT server is running, and HA and my one MQTT device can connect and publish messages. I can access the addon at mqtt.mydomain.duckdns.org but since I’m accessing the addon via HTTPS, I’m not surprised that I can’t connect to my MQTT server through the web UI, per post #200. Ultimately, my goal is to be able to use the addon to connect to the MQTT server over the internet (i.e. not only within my home network).
Reading the addon documentation, it says the cert/keyfile “MUST be stored in /ssl/” but since I use Nginx Proxy Manager, mine are not stored at /ssl/ but in a subfolder /ssl/nginxproxymanager. Setting the path to the fullchain.pem and privkey.pem returns this error: sed: bad option in substitution expression
which appears to be due to the “/” in the “/nginxproxymanager/…/…/fullchain.pem” and privkey.pem paths listed in the addon config. @ludeeus Is there a way to set the cert paths in the addon to reference the NPM certs?
On the add-on log I see a mqtt device connect. But I am not seeing the sensor data on home assistant. Not sure if this is a mosquito broker issue or a device issue. Anyway I can check and see if Hassio is getting the sensor data? just weird how it can connect, and I can see the sensor data in the Arduino serial monitor.
Use mqttspy, the weclient that ships with this or any other mqtt toll to see if the messages are received on the broker, if they are the issue is with your connection between the broker and HA.
I tried using your config and am unable to save it as the new config. I receive this error:
not a valid value for dictionary value @ data[‘options’]. Got {‘logins’: , ‘anonymous’: False, ‘customize’: {‘active’: True, ‘folder’: ‘mosquitto’}, ‘certfile’: ‘fullchain.pem’, ‘keyfile’: ‘privkey.pem’, ‘quiet_logs’: True}