ESPeasy mqtt "Socket error on client <unknown>, disconnecting." error

When i try to connect my NoceMCU with ESPeasy to HA mos

I have this logs in Hass.io>Add-ons>Mosquitto broker>‘scroll down’ LOG

1552851585: New connection from 192.168.*.* on port 1883. 
1552851585: Socket error on client <unknown>, disconnecting."

1552851637: New connection from 192.168.*.* on port 1883. 
1552851637: Socket error on client <unknown>, disconnecting."

My espeasy Controllers TAB

logs on it looks similarly


I have no idea what i do wrong.

I am not familiar with the ESPeasy or this interface, but …

The Controller IP is set to ‘192.168’. That is not a valid IP address and the error message makes me think that might be the issue.

There is my mqtt broker adress like 192.168.2.100

@edit: Rest is blur

MQTT clients need to know the full IP address or DNS name of the MQTT broker so that they can establish a connection with the broker.

The configuration settings on your Controller tab look like MQTT settings, but they refer to “Controller” not “Broker” which I find confusing. There is a chance that someone on the HA Community will have the knowledge that you need, but I think you might have better luck finding what you need on the OpenHAB forum: https://community.openhab.org/

I try to connect into my HA server by this example
And I have still error…

Mosquitto broker config
image

configuration.yaml {the same in the example}
192.168..** is my raspberry pi adress when i have install hassio server and ofc Mosquitto broker

mqtt:
    broker: 192.168.*.***
    port: 1883
    client_id: home-assistant-1
    keepalive: 60
    username: mqtt_username
    password: mqtt_password
    protocol: 3.1 
      

switch 1:
  - platform: mqtt
    name: "MQTT Switch 1"
    state_topic: "/house/switchConfirm1/"
    command_topic: "/house/switch1/"
    payload_on: "1"
    payload_off: "0"
    qos: 0
    retain: true    

In arduino skatch i change SSID and Password and MQTT_SERVER “192.168..**” Address ip [this is raspberry pi adress]

ERROR LOG

Log into Mosquitto broker

1552923419: New connection from 192.168.#.### on port 1883. 
1552923419: |-- mosquitto_auth_unpwd_check(mqtt_username) 
1552923419: |-- ** checking backend http 
1552923419: |-- url=http://127.0.0.1:8080/login 
1552923419: |-- data=username=mqtt_username&amp;password=mqtt_password&amp;topic=&amp;acc=-1&amp;clientid= 
[ERROR] Auth error with mqtt_username

192.168.#.### is my nodemcu ip adress when i have arduino skatch from example
And this is nodemcu Serial port error

WiFi connected
IP address: 
192.168.#.###
Attempting MQTT connection...	Failed.

Abort called

>>>stack>>>

ctx: cont
sp: 3ffffdb0 end: 3fffffc0 offset: 01b0
3fffff60:  00000000 00000000 00000000 3fff0ab4  
3fffff70:  0000001f 00000019 232de6b4 0000a8c0  
3fffff80:  402015ea 00000064 00000064 3ffeec24  
3fffff90:  3fffdad0 00000000 3ffeea14 402029f2  
3fffffa0:  feefeffe feefeffe 3ffeebf0 4020c004  
3fffffb0:  feefeffe feefeffe 3ffe8600 40100a4d  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v0fd86a07
~ld

Where should I look for the error?

I create a account on api.cloudmqtt.com and I connected without a problem.

Attempting MQTT connection...	MQTT Connected

So the problem is into HA MQTT configuration

I run my Mosquitto broker on Raspbian, and I use the following command to monitor my broker’s log file

 sudo tail -f /var/log/mosquitto/mosquitto.log

There is no need to obfuscate 192.168.x.x or 10.x.x.x IP addresses because 192.168.x.x and 10.x.x.x subnets are non-routable. That means that IP addresses on a 192.168.x.x subnet are meaningless on the internet side of your router.

The above message points to a problem with authentication. My MQTT broker accepts anonymous input, so I have not encountered this issue.

Hi All

I am having the same issues and cannot resolve it. I am not skilled in Home Assistant and still learning and have read lots of forums on this issue.
Now I have these in the log and hope someone can help to resolve it

1556006163: New connection from 192.168.1.84 on port 1883.
1556006163: Socket error on client , disconnecting.
1556006244: |-- mosquitto_auth_acl_check(…, client id not available, brucys, sonoff_Desktele/STATE, MOSQ_ACL_WRITE)
1556006244: |-- Expired [7953E4204FE21567F8DE072238C1C187A58E70A0] for (client id not available,brucys,2)
1556006244: |-- url=http://127.0.0.1:8080/superuser
1556006244: |-- data=username=brucys&password=&topic=&acc=-1&clientid=
1556006244: |-- aclcheck(brucys, sonoff_Desktele/STATE, 2) SUPERUSER=Y by http
1556006244: |-- Cached [7953E4204FE21567F8DE072238C1C187A58E70A0] for (client id not available,brucys,2)

Please help?
Thanks

Try creating a user account within HASSIO for MQTT use rather than playing with the MQTT server/config setting.

  1. Once you installed MQTT, leave the config setting as is
  2. Create a new user within HASSIO (go to Configuration --> select “Users” then click on the (+) sign
  3. For the username and password - create exactly what is your SONOFF (or any MQTT Client) is configured with.