Tasmota/MQTT configuration?

I’m trying to setup a Sonoff Basic relay on Home Assistant.

I’ve flashed the Sonoff with Tasmota and configured it. I’ve also installed and configured Mosquito Broker on HA, but am getting the following message on the Tasmota Console:

“14:38:36 MQT: Attempting connection…
14:38:36 MQT: Connect failed to 192.168.1.39:8123, rc -1. Retry in 10 sec”

I suspect that the Tasmota config is OK, but it’s the Mosquito config that is in error. The Mosquito log doesn’t show any attempt at connection. I’m not sure where to look next.

(I’ve got the user name and passwords setup to be the same on Tasmota and HA.)

I’m very new to HA and totally new to MQTT , and would be very grateful for any help in getting it working.
Jim

@jimford Mosquitto is generally listening on port 1883… not 8123… 8123 is for HA.

Ah, got it - thanks!

I’ll see if I can move forward.

Many thanks!
Jim

Got there in the end, mainly thanks to this excellent video:

Jim