Zigbee2mqtt pairs ok, but no devices on HA

Hi! i’ve been reading a lot, and learning a lot, but i’m stuck right now, and a little desperate!

I have home assistant installed on my rpi3b, official mosquitto broker add-on and official zigbee2mqtt add-on. Everything looks fine, log of both add-ons looks ok, pairing zigbee devices seems to be ok (got 3 devices paired already), but i can’t see them on home assistant. I think it’s something related with discovery, but i’ve tried several configurations with no success.

My HA configuration.yaml

Configure a default setup of Home Assistant (frontend, api, etc)

default_config:

Uncomment this if you are using SSL/TLS, running in Docker container, etc.

http:

base_url: example.duckdns.org:8123

Text to speech

tts:

  • platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

My zigbee2mqtt configuration.yaml

{ “devices”: “devices.yaml”,
“groups”: “groups.yaml”,
“homeassistant”: true,
“permit_join”: false,
“mqtt”: {
“base_topic”: “zigbee2mqtt”,
“server”: “mqtt://core-mosquitto”,
“user”: “HEREIHAVEMYUSER”,
“password”: “HEREIHAVEMYPASSWORD”
},
“serial”: {
“port”: “/dev/ttyACM0”
},
“advanced”: {
“pan_id”: 6754,
“channel”: 11,
“network_key”: [
1,
3,
5,
7,
9,
11,
13,
15,
0, 2,
4,
6,
8,
10,
12,
13
],
“availability_blacklist”: []
},
“ban”: [],
“whitelist”: [],
“queue”: {}
}

My MQTT broker config.

logins:

  • username: HEREIHAVEMYUSER
    password: HEREIHAVEMYPASSWORD
    anonymous: true
    customize:
    active: true
    folder: mosquitto
    certfile: fullchain.pem
    keyfile: privkey.pem
    require_certificate: false

What am i missing?

Is this switch on ?

image

Yes, it is. With that switch being on, if i add a device, i see it on zigbee2mqtt log, but anywhere else.

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?