I’ve just installed HA OS (v5.9) along with the MQTT add-on (amongst others) on a RPi. I’m planning to use another RPi as a sensor and send MQTT messages to HA.
I’ve got HA MQTT accepting publications, as described in the MQTT Discovery page; and the example ‘garden’ sensor successfully appears in HA.
I’ve since ran the mosquitto client externally to the HA RPi (on a Mac) and that also works with the same ‘garden’ publication.
However, I can’t subscribe to any topic other than $SYS
. This is both locally on HA and remotely on the Mac.
I initially tried with the mosquitto client and I get a long list for $SYS
:
$ mosquitto_sub -h 192.168.10.30 -u remote_pi -P p@ssw0rd -t '$SYS/#' -v
$SYS/broker/version mosquitto version 1.6.3
$SYS/broker/uptime 36872 seconds
$SYS/broker/load/messages/received/1min 4.50
$SYS/broker/load/messages/received/5min 3.40
$SYS/broker/load/messages/received/15min 3.43
$SYS/broker/load/messages/sent/1min 117.35
remote_pi
is the user I’ve created in the HA GUI.
However, if I try with homeassistant
or #
, it just hangs.
mosquitto_sub -h 192.168.10.30 -u remote_pi -P p@ssw0rd -t '#' -v
Only Ctl-C
gets the prompt back.
I can see the login in the mosquitto log on HA. On the Mac I’ve also tried third party MQTT clients (MQTTX and MQTT Explorer) and get the same results.
What am I doing wrong?