Hello,
I’m trying to get HassIO and mosquito running on a Raspberry Pi 3B+ with a wired Ethernet connection.
I have the latest of all packages installed.
Everything was installed via HassIO.
Hass.io 181
hassOS 2.12
Mosquitto broker 5.0
Node-RED 4.0.7
I’ve been coding MQTT devices for about a year and connecting to Adafruit IO.
Mosquito appears to be running.
Connections appear to be made.
I’ve set the wrong password or user and had ‘connection refused’ errors.
I can connect from Node-RED, Stand alone ESP8266 devices, Tasmota-Sonoff devices, and Mosquito-Clients on a Linux computer for both subscribe and publish. And sending from Developer tools MQTT and Services tabs.
I can’t tell if anything is getting into the broker.
I have yet to see anything come out of the broker on HassIO.
I’ve subscribed to several $SYS/ topics and seen nothing.
I have Node-RED flows directing explicit topics and even # to debug and see nothing
The same flow can send and receive with Adafruit IO.
I have tried configuration changes suggested for others in forum posts here.
Since I’m new to HassIO, I’m a bit confused by configuration.yaml. There seem to be contradictions in the documentation about what’s needed in the config.
After the install, the config/configuration.yaml was empty
I added MQTT to Configuration → Integrations
If instead, I add it to the configuration.yaml it seems to be added to → Integrations automatically. (alternate ways to do the same thing?)
I wondered if I need to define the topics somewhere…
I have tried defining a topic in /config/configuration.yaml and all that seems to get me is a sensor in the history with unknown status.
Somewhere else?
Shouldn’t need to define anything for $SYS topics…
I don’t know if activity beyond connections should show up in the mosquito log.
The only thing I see in the logs that seems suspicious is
“Warning: Mosquito should not be run as root/administrator.”
I’ve seen this in the
Also here, I see another thread MQTT - why 172.30.32.1 gets connected?
I see that IP in my logs too. I don’t know if it is related to my problem.
but I don’t understand their solution:
My wifi seemed to quit working on my raspberry pi, so I switched over to an Ethernet connection. However, I forgot that the hassio/resin os requires you to configure the type of connection you are using.
I’ve started over, re-flashing the SD from scratch, 4 times. It’s getting old.
At a loss.
The current Mosquito broker config is:
{
“logins”: [
{
“username”: “mike”,
“password”: “XXXXXXXXXXXXXX”
}
],
“anonymous”: true,
“customize”: {
“active”: true,
“folder”: “mosquitto”
},
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}
(anonymous was changed to true while following some instructions from another thread on this forum.)
The mosquitto log:
[16:53:37] INFO: Setup mosquitto configuration
[16:53:38] INFO: Found local users inside config
[16:53:38] INFO: Initialize Hass.io Add-on services
[16:53:38] INFO: Initialize Home Assistant discovery
[16:53:39] INFO: Start Mosquitto daemon
1566334421: Loading config file /share/mosquitto/acl.conf
1566334421: mosquitto version 1.6.3 starting
1566334421: Config loaded from /etc/mosquitto.conf.
1566334421: Loading plugin: /usr/share/mosquitto/auth-plug.so
1566334421: |-- *** auth-plug: startup
1566334421: ├── Username/password checking enabled.
1566334421: ├── TLS-PSK checking enabled.
1566334421: └── Extended authentication not enabled.
1566334421: Opening ipv4 listen socket on port 1883.
1566334421: Opening ipv6 listen socket on port 1883.
1566334421: Opening websockets listen socket on port 1884.
1566334421: Opening ipv4 listen socket on port 8883.
1566334421: Opening ipv6 listen socket on port 8883.
1566334422: Opening websockets listen socket on port 8884.
1566334422: Warning: Mosquitto should not be run as root/administrator.
1566334481: New connection from 172.30.32.1 on port 1883.
[INFO] found mike on local database
1566334482: New client connected from 172.30.32.1 as auto-FB98AA87-E939-5D42-70A3-7179BF6A55FC (p2, c1, k60, u’mike’).
1566334562: New connection from 172.30.32.1 on port 1883.
1566334562: New client connected from 172.30.32.1 as mqtt_72aa79f7.3491a8 (p1, c1, k60, u’mike’).
1566336222: Saving in-memory database to /data/mosquitto.db.
The System log:
19-08-20 20:52:50 INFO (MainThread) [main] Initialize Hass.io setup
19-08-20 20:52:50 INFO (SyncWorker_0) [hassio.docker.supervisor] Attach to Supervisor homeassistant/armv7-hassio-supervisor with version 181
19-08-20 20:52:51 INFO (MainThread) [main] Setup HassIO
19-08-20 20:52:51 INFO (SyncWorker_1) [hassio.docker.interface] Attach to homeassistant/armv7-hassio-dns with version 1
19-08-20 20:52:51 INFO (MainThread) [hassio.dns] Update resolv from Supervisor
19-08-20 20:52:51 INFO (MainThread) [hassio.dns] Start CoreDNS plugin
19-08-20 20:52:51 INFO (MainThread) [hassio.misc.forwarder] Start DNS port forwarding to 172.30.32.3
19-08-20 20:52:51 INFO (SyncWorker_1) [hassio.docker.interface] Clean hassio_dns application
19-08-20 20:52:54 INFO (SyncWorker_1) [hassio.docker.dns] Start DNS homeassistant/armv7-hassio-dns with version 1
19-08-20 20:52:54 INFO (MainThread) [hassio.utils.gdbus] Introspect org.freedesktop.systemd1 on /org/freedesktop/systemd1
19-08-20 20:52:54 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.systemd1 - /org/freedesktop/systemd1
19-08-20 20:52:54 INFO (MainThread) [hassio.utils.gdbus] Introspect org.freedesktop.hostname1 on /org/freedesktop/hostname1
19-08-20 20:52:54 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.hostname1 - /org/freedesktop/hostname1
19-08-20 20:52:54 INFO (MainThread) [hassio.utils.gdbus] Introspect de.pengutronix.rauc on /
19-08-20 20:52:54 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: de.pengutronix.rauc - /
19-08-20 20:52:54 INFO (MainThread) [hassio.host.info] Update local host information
19-08-20 20:52:54 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
19-08-20 20:52:54 INFO (MainThread) [hassio.host.services] Update service information
19-08-20 20:52:54 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
19-08-20 20:52:54 INFO (MainThread) [hassio.host.apparmor] Load AppArmor Profiles: {‘hassio-supervisor’}
19-08-20 20:52:54 INFO (MainThread) [hassio.host.services] Reload local service hassos-apparmor.service
19-08-20 20:52:54 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ReloadOrRestartUnit on /org/freedesktop/systemd1
19-08-20 20:53:28 INFO (SyncWorker_0) [hassio.docker.interface] Attach to homeassistant/raspberrypi3-homeassistant with version 0.97.2
19-08-20 20:53:28 INFO (MainThread) [hassio.hassos] Detect HassOS 2.12 on host system
19-08-20 20:53:28 INFO (SyncWorker_4) [hassio.docker.hassos_cli] Found HassOS CLI homeassistant/armv7-hassio-cli with version 14
19-08-20 20:53:29 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/git/a0d7b954 repository
19-08-20 20:53:29 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/core repository
19-08-20 20:53:29 INFO (MainThread) [hassio.store] Load add-ons from store: 59 all - 59 new - 0 remove
19-08-20 20:53:29 INFO (MainThread) [hassio.addons] Found 11 installed add-ons
19-08-20 20:53:29 INFO (SyncWorker_8) [hassio.docker.interface] Attach to homeassistant/armv7-addon-letsencrypt with version 3.0
19-08-20 20:53:29 INFO (SyncWorker_6) [hassio.docker.interface] Attach to homeassistant/armv7-addon-duckdns with version 1.9
19-08-20 20:53:29 INFO (SyncWorker_4) [hassio.docker.interface] Attach to hassioaddons/sonweb-armv7 with version v0.8.1
19-08-20 20:53:29 INFO (SyncWorker_2) [hassio.docker.interface] Attach to hassioaddons/node-red-armv7 with version v4.0.7
19-08-20 20:53:29 INFO (SyncWorker_9) [hassio.docker.interface] Attach to homeassistant/armv7-addon-check_config with version 2.2
19-08-20 20:53:29 INFO (SyncWorker_13) [hassio.docker.interface] Attach to homeassistant/armv7-addon-configurator with version 3.4
19-08-20 20:53:29 INFO (SyncWorker_3) [hassio.docker.interface] Attach to homeassistant/armv7-addon-ssh with version 6.3
19-08-20 20:53:29 INFO (SyncWorker_18) [hassio.docker.interface] Attach to hassioaddons/motioneye with version v0.5.3
19-08-20 20:53:29 INFO (SyncWorker_8) [hassio.docker.interface] Attach to homeassistant/armv7-addon-mosquitto with version 5.0
19-08-20 20:53:29 INFO (SyncWorker_17) [hassio.docker.interface] Attach to homeassistant/armv7-addon-samba with version 8.1
19-08-20 20:53:29 INFO (SyncWorker_11) [hassio.docker.interface] Attach to homeassistant/armv7-addon-nginx_proxy with version 2.2
19-08-20 20:53:29 INFO (MainThread) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json
19-08-20 20:53:30 INFO (MainThread) [hassio.snapshots] Found 6 snapshot files
19-08-20 20:53:30 INFO (MainThread) [hassio.discovery] Load 1 messages
19-08-20 20:53:30 INFO (MainThread) [hassio.ingress] Load 14 ingress session
19-08-20 20:53:30 INFO (MainThread) [main] Run Hass.io
19-08-20 20:53:30 INFO (MainThread) [hassio.api] Start API on 172.30.32.2
19-08-20 20:53:30 INFO (MainThread) [hassio.addons] Phase ‘initialize’ start 0 add-ons
19-08-20 20:53:30 INFO (MainThread) [hassio.addons] Phase ‘system’ start 2 add-ons
19-08-20 20:53:35 INFO (SyncWorker_18) [hassio.docker.addon] Start Docker add-on hassioaddons/sonweb-armv7 with version v0.8.1
19-08-20 20:53:35 INFO (SyncWorker_13) [hassio.docker.addon] Start Docker add-on homeassistant/armv7-addon-mosquitto with version 5.0
19-08-20 20:53:38 INFO (MainThread) [hassio.services.modules.mqtt] Set core_mosquitto as service provider for mqtt
19-08-20 20:53:40 INFO (MainThread) [hassio.addons] Phase ‘services’ start 3 add-ons
19-08-20 20:53:59 INFO (SyncWorker_1) [hassio.docker.addon] Start Docker add-on homeassistant/armv7-addon-samba with version 8.1
19-08-20 20:54:03 INFO (SyncWorker_16) [hassio.docker.addon] Start Docker add-on homeassistant/armv7-addon-duckdns with version 1.9
19-08-20 20:54:12 INFO (SyncWorker_6) [hassio.docker.addon] Start Docker add-on homeassistant/armv7-addon-ssh with version 6.3
19-08-20 20:54:17 INFO (SyncWorker_8) [hassio.docker.interface] Clean homeassistant application
19-08-20 20:54:20 INFO (SyncWorker_8) [hassio.docker.homeassistant] Start homeassistant homeassistant/raspberrypi3-homeassistant with version 0.97.2
19-08-20 20:54:32 INFO (MainThread) [hassio.api.security] /host/info access from a0d7b954_sonweb
19-08-20 20:55:15 INFO (MainThread) [hassio.homeassistant] Detect a running Home Assistant instance
19-08-20 20:55:15 INFO (MainThread) [hassio.addons] Phase ‘application’ start 4 add-ons
19-08-20 20:55:19 INFO (SyncWorker_14) [hassio.docker.addon] Start Docker add-on hassioaddons/motioneye with version v0.5.3
19-08-20 20:55:21 INFO (SyncWorker_8) [hassio.docker.addon] Start Docker add-on hassioaddons/node-red-armv7 with version v4.0.7
19-08-20 20:55:22 INFO (SyncWorker_2) [hassio.docker.addon] Start Docker add-on homeassistant/armv7-addon-nginx_proxy with version 2.2
19-08-20 20:55:23 INFO (SyncWorker_19) [hassio.docker.addon] Start Docker add-on homeassistant/armv7-addon-configurator with version 3.4
19-08-20 20:55:26 INFO (MainThread) [hassio.api.security] /host/info access from a0d7b954_nodered
19-08-20 20:55:26 INFO (MainThread) [hassio.api.security] /host/info access from a0d7b954_motioneye
19-08-20 20:55:28 INFO (MainThread) [hassio.tasks] All core tasks are scheduled
19-08-20 20:55:28 INFO (MainThread) [hassio.core] Hass.io is up and running
19-08-20 20:56:02 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-08-20 20:56:02 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-08-20 20:56:02 INFO (MainThread) [hassio.homeassistant] Updated Home Assistant API token
19-08-20 20:56:02 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request running
19-08-20 21:35:09 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API error: Received message 8:0 is not WSMsgType.TEXT
19-08-20 21:35:09 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API connection is closed
19-08-20 21:35:09 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-08-20 21:35:09 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-08-20 21:35:09 INFO (MainThread) [hassio.homeassistant] Updated Home Assistant API token
19-08-20 21:35:09 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request running