Zigbee2mqtt pairs ok, but no devices on HA

Have you tried to reboot everything?
Plugin the usb sitck off an on again sometimes works for me.

Ok, normal troubleshooting.

Go to developer tools -> MQTT

image

On listen to a topic, enter # en hit ‘start listening’

On Publish a topic, enter the text from the screenshot, and hit ‘Publish’

Do you see a message received under ‘start listening’ ?

Thank you for replies… yes, i see this when i hit start listening:

Message 1 received on zigbee2mqtt/bridge/config at 12:45 AM:
{
“version”: “1.12.0”,
“commit”: “unknown”,
“coordinator”: {
“type”: “zStack12”,
“meta”: {
“transportrev”: 2,
“product”: 0,
“majorrel”: 2,
“minorrel”: 6,
“maintrel”: 3,
“revision”: 20190608
}
},
“log_level”: “info”,
“permit_join”: true
}
QoS: 0 - Retain: true
Message 0 received on zigbee2mqtt/bridge/state at 12:45 AM:
online

And still no discovered entities ? If not, try restarting zigbee2mqtt. Zigbee2mqtt sends the messages when starting up, so repeat this while still listening, so you see the discovery messages passing.

i already tried to reset everything, every change i do then i do a full reset of every add-on and eaven the server itself, same result always. i was going to try to listen to that topic while resetting zigbee2mqtt add-on but now if i do what you tell me before it doesn’t show anything, without making any changes!! it’s getting imposible… i’m going to look for somebody to send mi hardware, getting i t configured and give it back working.

Did you try that ? It might just be some problem with your mqtt broker.

i did yesterday, and it returned a message like it was correct, but today it doesnt work, i hit publish, and then i write # and hit start listening, but nothing happens.

Then you have a problem with your broker. Do you see anything in the log file ?

What are you running ? Home Assistant (= on HassOs) or Home Assistant Supervised (= on generic linux)

The mosquitto add-on is very picky about its configuration.

You have to do it the other way around. First ‘start listening’, then publish.

i’ve tried both ways, and nothing happens… it’s just not listening.

This is the log… looks ok i think.

[18:17:24] INFO: Setup mosquitto configuration
[18:17:24] WARNING: SSL not enabled - No valid certs found!
[18:17:25] INFO: Found local users inside config
[18:17:26] INFO: Initialize Hass.io Add-on services
[18:17:27] INFO: Initialize Home Assistant discovery
[18:17:27] INFO: Start Mosquitto daemon
1586362647: Loading config file /share/mosquitto/acl.conf
1586362647: mosquitto version 1.6.3 starting
1586362647: Config loaded from /etc/mosquitto.conf.
1586362647: Loading plugin: /usr/share/mosquitto/auth-plug.so
1586362647: ├── Username/password checking enabled.
1586362647: ├── TLS-PSK checking enabled.
1586362647: └── Extended authentication not enabled.
1586362647: |-- *** auth-plug: startup
1586362647: Opening ipv4 listen socket on port 1883.
1586362647: Opening ipv6 listen socket on port 1883.
1586362647: Opening websockets listen socket on port 1884.
1586362647: Warning: Mosquitto should not be run as root/administrator.
1586362648: New connection from 172.30.33.2 on port 1883.
[INFO] found mqttuser on local database
1586362652: New client connected from 172.30.33.2 as mqttjs_6464a977 (p2, c1, k60, u’mqttuser’).
1586362653: New connection from 172.30.32.1 on port 1883.
1586362654: Socket error on client , disconnecting.
1586362654: New connection from 172.30.32.1 on port 1883.
1586362654: New client connected from 172.30.32.1 as auto-DF1150EF-2D25-CC52-4E6B-EF8EB5760878 (p2, c1, k60, u’mqttuser’).

I use home assistant installed following this guide:

anonymous: true

Try with false

it’s already on false.

logins:

  • username: ‘my user’
    password: ‘my password’
    anonymous: false
    customize:
    active: true
    folder: mosquitto
    certfile: fullchain.pem
    keyfile: privkey.pem
    require_certificate: false

Update: i installed mqtt explorer to test mqtt broker, and nothing happened, so i decided to try with other configuration of mqtt add-on, just did a reset of all config, and started add-on with default configuration, now i’ve got all the messages in mqtt explorer, if i turn on/off devices i see it,

Now if i do what you said (developer tools > mqtt > start listening > publish, i see the messages i publish, so i think now the mqtt broker it’s working, still don’t see any device or entity appear on home assistant, but this is a start.

After doing a full reset, i still in the same… no entities or devices on home assistant. If i go to developer tools > logs i see this message:

Log Details (ERROR)

Logger: frontend.js.latest.202004071
Source: components/system_log/init.py:209
First occurred: 10:24:16 AM (1 occurrences)
Last logged: 10:24:16 AM

http://192.168.1.13:8123/config/entities:0:0 ResizeObserver loop limit exceeded

this explains something?

Is there a way to configure devices manually? just forgetting about discovery… i give up, it doesn’t work, maybe manual? i didn’t find many info on the web.

The manual configuration you can find here :

ok!!! i’ve got it, i really don’t know what is the problem but doing manual configuration it works, i’ve paired now 7 devices without any problem, well i do have some problems, but will open a thread because it’s way different to this.

Thank you guys for your help! maybe you can help me with new problems?
opened this topic:

:wink: