Trying to configure mqtt broker on Hassio errors!

I am trying to use andrewjfreyers monitor bluetooth script, but i can’t seem to connect,
1546361073: New connection from 192.168.1.223 on port 1883. 1546361073: Socket error on client <unknown>, disconnecting. 1546361074: New connection from 192.168.1.223 on port 1883. 1546361074: Socket error on client <unknown>, disconnecting. 1546361081: New connection from 192.168.1.223 on port 1883. 1546361081: Socket error on client <unknown>, disconnecting.

Can anyone tell me why?
I have the mqtt preference file sent to my hassio ip address and this is the config in hassio

{
“logins”: ,
“anonymous”: true,
“customize”: {
“active”: false,
“folder”: “mosquitto”
},
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}

i tried anonymous: false and that didn’t work either

Did you install Mqtt broker? If so, uninstall it because it is already built into HA.

For the configuraiton.yaml file,

mqtt:
password: something
discovery: true

Don’t put in a username, the username is homeassistant which you will use with the client side.

The built in broker is crap. Using a different broker is recommended.

You can also use the embedded MQTT broker. A separate broker is advised for more stability.

I’ve had zero issues with it.

I was able to add my username and password, but now i am getting this error

1546361844: New connection from 192.168.1.223 on port 1883.
[INFO] found david on local database
1546361845: New client connected from 192.168.1.223 as mosqpub|14145-raspberry (c1, k60, u’david’).
1546361845: Client mosqpub|14145-raspberry disconnected.

{
“logins”: [
{
“username”: “david”,
“password”: “mypassword!”
}
],
“anonymous”: true,
“customize”: {
“active”: false,
“folder”: “mosquitto”
},
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}

Is there really a ! in your password? Get rid of it.

no, no its not why would i get rid of the “!”?

I got rid of it, now my password doesn’t have, the !
but i am still getting an error
1546379032: New client connected from 192.168.1.223 as mosqsub|693-raspberrypi (c1, k60, u’david’).
1546379033: New connection from 192.168.1.223 on port 1883.
[INFO] found david on local database
1546379033: New client connected from 192.168.1.223 as mosqpub|754-raspberrypi (c1, k60, u’david’).
1546379033: Client mosqpub|754-raspberrypi disconnected.

And is the correct username/password set in configuration.yaml.

(Sometimes special characters create problems)

 mqtt:
   broker: 192.168.1.214
   username: david
   password: password

I am confused, what is 192.168.1.223

hmmm, not sure.

Then 192.168.1.214 is a broker on another machine?

214 is home assistant which has the broker add on for hassio, 223 is the rasberry w that is trying to connect to hassio

Then what’s the error?

Lol. It’s connecting and then disconnecting?

1546379033: New client connected from 192.168.1.223 as mosqpub|754-raspberrypi (c1, k60, u’david’).
1546379033: Client mosqpub|754-raspberrypi disconnected.

yes, thats appears so, no idea why?

Then the password is set wrong on the rasp w

I’m confused on what the problem is.

Are you having a CLIENT connectivity issue or just seeing these messages in the logs?

It sounds like the problem is on the client, and not the broker. Stop futzing with the broker and fix the client

It appears to be a client issue i think, i tried to follow his guide to the tea, but no messages are going across and not connecting, same password and username (i’ll remove this once i get it figured out)

What are you trying to do?

What file are you editing there?