Using Hass.io with Mosquito and Zigbee2mqtt addons and a CC2531, I can see my Sengled bulb, Ikea bulb, and Ikea remote/switch have paired and I can see the results of the interviews in the z2m log. But the 3 devices do not appear anywhere in Home Assistant. It seems odd that I would have to edit some json file to add these things manually (as I’ve seen suggested) when the exact information on the devices has been garnered through z2m. I’m at a complete loss. Can anyone tell me how to get these devices into HA? It seems like I am SO close…
Two things to check :
1/ in the zigbee2mqtt configuration, did you set homeassistant: true
2/ check if the mosquitto add-on connects successfully with HA. This is often the problem.
Definitely #1 is true.
#2, The log from Mosquito seems to indicate that it is connecting to Home Assistant:
[17:09:56] INFO: Setup mosquitto configuration
[17:09:56] WARNING: SSL not enabled - No valid certs found!
[17:09:56] INFO: Found local users inside config
[17:09:56] INFO: Initialize Hass.io Add-on services
[17:09:56] INFO: Initialize Home Assistant discovery
[17:09:56] INFO: Start Mosquitto daemon
1592082596: mosquitto version 1.6.3 starting
1592082596: Config loaded from /etc/mosquitto.conf.
1592082596: Loading plugin: /usr/share/mosquitto/auth-plug.so
1592082596: |-- *** auth-plug: startup
1592082596: ├── Username/password checking enabled.
1592082596: ├── TLS-PSK checking enabled.
1592082596: └── Extended authentication not enabled.
1592082596: Opening ipv4 listen socket on port 1883.
1592082596: Opening ipv6 listen socket on port 1883.
1592082596: Opening websockets listen socket on port 1884.
1592082596: Warning: Mosquitto should not be run as root/administrator.
1592082631: New connection from 172.30.32.1 on port 1883.
[INFO] found mikey on local database
1592082633: New client connected from 172.30.32.1 as mqttjs_a82dde2f (p2, c1, k60, u’mikey’).
1592084397: Saving in-memory database to /data/mosquitto.db.
I tried configuring a Sengled bulb in the main hass.io configuration.yaml file, but it did not recognize the bulb from the info that is clearly in the zigbee2mqtt log.