Need help rebuilding home automation raspberry pi

Concerning the switch; has the Mosquitto broker: user name and password been set to match on the switch?

What about the rest of the switch's configuration?

Reference: Setting up the Tasmota MQTT Switch (Sonoff)