Page 1 of 1

MQTT integration with Home Assistant

Posted: Sun Oct 10, 2021 10:23 pm
by wolfpack
I'm trying to bring my systems under the Home Assistant umbrella. First, let me say I am really new at this still.

I was messing around with the MQTT feed from cloud.reefangel.com using port 1883 and my username/password for the forum. It connected (success!) but even in MQTT Explorer it shows no activity, so I am not sure how I'm supposed to find the topics. Any help is appreciated.

Re: MQTT integration with Home Assistant

Posted: Mon Oct 11, 2021 2:11 pm
by rimai
On our cloud server, you are authorized to publish and subscribe to topics that start with your forum username.
RA publishes and subscribes to topics username/in and username/out

Re: MQTT integration with Home Assistant

Posted: Mon Oct 11, 2021 3:40 pm
by wolfpack
thanks for the reply Roberto. Any idea why even when listening to topic "wolfpack" or "wolfpack" or "wolfpack/out" or "wolfpack/in" I see nothing coming through? I also checked MQTT Explorer and see no topic structure after connecting.

I am definitely new at this, but seems to me no data is flowing... though it must be as I am sending commands from the app and seeing the data regarding temperature and outlets.

Re: MQTT integration with Home Assistant

Posted: Tue Oct 12, 2021 9:52 am
by rimai
You have to make sure that when you connect, you send the username and password. Unauthenticated users don't have authorization to publish/subscribe to any channels.

Re: MQTT integration with Home Assistant

Posted: Wed Oct 13, 2021 12:01 am
by wolfpack
I setup the connection with username and password already. I assume that's what you mean by login? Or am I supposed to send a command after establishing the initial connect?

Re: MQTT integration with Home Assistant

Posted: Wed Oct 13, 2021 10:55 pm
by rimai
Have you tried using mosquitto?
https://mosquitto.org/
mosquitto_sub -v -t "username/in" -h cloud.reefangel.com -u username -P password
Replace username and passwprd with your own.