I'm on a beginners level using Node RED to monitor and control Shelly devices.
My setup at the moment is a Shelly Plus 1 which is connected to my network and I was setting up Node RED on my MacBook.
Now I'm a bit overwhelmed with all steps to do in order to control the Shelly (switching on and off)
Here's what I can say for sure.
Mosquitto v2.0.20 is installed with homebrew and the broker is running.
The IP's of MacBook ({MacBook-IP}.9) and Shelly device ({ShellyDevice-IP}.9) indicate that it's connected to the same network.
Seems your not able to connect to the mqtt broker
mqtt2 has some security settings that are enabled by default, or your user and password are incorrect
have a look here for settings for mqtt config file.
Is this your Mac?
Does it have a static / reserved IP address? What address?
What is it's hostname and can you specify a hostname in the Shelly?
What is the IP address of the Shelly (which doesn't have to be static)?
According to your shelly setting the server is 192.168.10.13
but your notebook is 172.20.10.9
The IP of the notebook(where mosquitto is installed) should match the IP of the server in the shelly settings. Which should be a local lan IP not your internet wan IP
You should be able to set static IP's in your router using the mac address of the device. The broker will need a static IP.
A computer can be referred to on a network using either it's IP address or a hostname.
I don't know Macs but on my Linux computers the hostname is specified in /etc/hostname and can be shown with the hostname command.
For example:
pi@GlassPi:~ $ hostname
GlassPi
While the IP address may be set by the network DHCP server and might vary, the hostname is specified by the comouter itself and is thus fixed.
I asked about this because you may be able to specify the hostname rather than the IP address as the MQTT server (I have no idea if this will work for your Shelly).
It's more usual though for the MQTT broker to have a static IP address, or at least a reserved address in the router.
Screenshots can sometimes help us understand how a system is set up.
Not if they are a random photo from the internet though.