MQTT Connection Issues with Home Assistant on new Sonoff

382 views
Skip to first unread message

bst3ck

unread,
Dec 28, 2017, 4:59:05 PM12/28/17
to SonoffUsers
Total noob question,

I have a couple of Sonoffs running on my home network using the default firmware but I wanted to try to combine them in to a single management hub using Tasmota. I decided on using home assistant on my raspberry pi using Hass.io. I seem to have it all set up on the home assistant side with MQTT Mosquitto running but after successfully flashing Tasmota on one of my Sonoff's, it can not find my MQTT server. The Sonoff connects to the network just fine, but the MQT console is reporting a failure in connecting the the MQTT server. The message in the console is:

Connect failed to hassio.local:1883, rc -2. Retry in 10 sec

I have attempted to connect to my MQTT broker using a local MQTT client and I can connect with the same user name as password as I have set up in the MQTT configuration page for the Sonoff. So I am assuming that my MQTT service is running correctly.

Any suggestions from the group on next steps?

Thanks


Benji Skool

unread,
Dec 29, 2017, 2:54:28 AM12/29/17
to SonoffUsers
Try using the IP of your Hassio install instead of hostname.

bst3ck

unread,
Dec 29, 2017, 12:28:55 PM12/29/17
to SonoffUsers
Thanks. That worked. I had tried something similar earlier but I had left on the http:// and that caused a failure as well. Once I removed the http:// and used the ip address, it worked like a charm. Thanks for your assistance.
Reply all
Reply to author
Forward
0 new messages