Domoticz update and z2m auto discovery.

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
Phil C
Posts: 19
Joined: Tuesday 29 October 2013 12:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Domoticz update and z2m auto discovery.

Post by Phil C »

Hi guys, I have an RPi 3b+ With rfxcom, tado & a cc2351. Which I’ve had working for sometime with no issues using the plugin.
With the arrival of domoticz 2022, I thought it would be a great time to start afresh with a new sd card, put the latest rpi download on it, added domoticz, made sure the rfx and tado worked ok.
Added mosquitto, zigbee2mqtt changed the configuration.yaml so that homeassistant: true, setup MQTT in settings with “localhost” etc as per documentation.

None of my Aqara stuff is picked up, I’ve tried resetting my pir’s etc, I’ve allowed new hardware for 5 minutes in domoticz, nothing is picked up by MQTT, all my Lightwaverf/tado is fine.

So frustrating, spent a lot of time on it today, so any ideas would be very much appreciated.

Thank you
Phil
User avatar
waltervl
Posts: 5982
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Domoticz update and z2m auto discovery.

Post by waltervl »

Check with mqtt explorer if you see messages from Zigbee2MQTT broadcasted
https://www.domoticz.com/wiki/MQTT#Debugging_MQTT
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
solarboy
Posts: 347
Joined: Thursday 01 November 2018 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.6
Location: Portugal
Contact:

Re: Domoticz update and z2m auto discovery.

Post by solarboy »

All my Aqara stuff is working, albeit with issues probably due to non-compliance. I have 3 wired H1 EU routing switches, 2 wireless H1 remote switches and 3 MiJia door/window contacts. The wireless H1 remote switches only show "off" status's for some reason.

Overall very happy with MQTT AD.
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
Dave21w
Posts: 384
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: Domoticz update and z2m auto discovery.

Post by Dave21w »

Which version of mosquito are you using, if its version 2 did you add the extra two lines of code in the config file - see here.

https://www.domoticz.com/wiki/MQTT#Installing_Mosquitto

scroll down till you get to this bit.
Warning: from Mosquitto v2.0.x you need extra configuration, else no connection is made with Domoticz see also viewtopic.php?f=28&t=35706

To see your installed version:

mosquitto -h | grep version

To fix this edit the /etc/mosquitto/mosquitto.conf file and add:

listener 1883

allow_anonymous true
Phil C
Posts: 19
Joined: Tuesday 29 October 2013 12:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz update and z2m auto discovery.

Post by Phil C »

Must admit, those two lines don’t ring a bell, I’ll swap my SD card over n check it out, thank you.
User avatar
gizmocuz
Posts: 2580
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Domoticz update and z2m auto discovery.

Post by gizmocuz »

Is it working now ? If not, could you use MQTT Explorer, go to your MQTT broker, check the Auto discovery topic, find your device, and post here the JSON payload of the config topic
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest