Page 1 of 1

Danalock through Zigbee2MQTT and MQTT Auto Discovery

Posted: Friday 14 April 2023 8:34
by ChrisVH1982
Hello community,

I've been running Zigbee2MQTT with Domoticz version 2022.2 and would like to control my newly installed Danalock v3.

Danalock has successfully been detected by Zigbee2MQTT. I can also perform lock/unlock operations through the Zigbee2MQTT web interface and also status locked/unlocked/battery are displayed correctly. So, from ZigbeeqMQTT perspective, there does not seem to be an issue!
When I search for the device's "IEEE Address" in Domoticz, I find the following devices, which have been registered to Domoticz using MQTT Auto Discovery. Unfortunately, most won't work. Has anyone experience and can advise how to get at least lock and unlock to work?

action_source_name_zigbee2mqtt
=> Works! Logs events

action_user_zigbee2mqtt
=> Does not work. Not sure what it does

action_zigbee2mqtt
=> "action_lock". NOT WORKING. Shows error "Error sending switch command, check device/hardware (idx=xxxxx)" when pressed.

action_zigbee2mqtt
=> "action_unlock". NOT WORKING. Shows error "Error sending switch command, check device/hardware (idx=xxxxx)" when pressed.

lock_zigbee2mqtt
=> locked/unlocked sensor. NOT WORKING

Battery status seem to work!

Re: Danalock through Zigbee2MQTT and MQTT Auto Discovery

Posted: Friday 14 April 2023 9:33
by waltervl
Zigbee2MQTT with MQTT AD issues are useless without the corresponding MQTT config and state topics. There is probably something here that is not supported yet in Domoticz.
Also please upgrade to 2023.1 as there are MQTT AD changes that possibly already fixed your issue.

Re: Danalock through Zigbee2MQTT and MQTT Auto Discovery

Posted: Friday 14 April 2023 10:55
by ChrisVH1982
Thank you very much for your reply. I will upgrade Domoticz, but I am quite reserved about upgrades because sometimes depencendies like the underlying OS or for example also Zigbee2MQTT can cause problems. I usually upgrade everything and make backups and images before.

I was hoping that somebody has experiences with Danalock and Domotiz already.

Re: Danalock through Zigbee2MQTT and MQTT Auto Discovery

Posted: Friday 14 April 2023 12:13
by ChrisVH1982
So, the update to 2023.1 did NOT do the trick. So as a workaround I will switch remotely using the Zigbee2MQTT Web If.

Re: Danalock through Zigbee2MQTT and MQTT Auto Discovery

Posted: Friday 14 April 2023 13:20
by waltervl
Did you remove the related Domoticz devices from Domoticz and have them rediscovered?

Re: Danalock through Zigbee2MQTT and MQTT Auto Discovery

Posted: Friday 14 April 2023 15:13
by ChrisVH1982
Yes, I removed Danalog from both Zigbee and Domoticz and re-registered everything. The only light improvement is that locked and unlocked state works. Maybe I can find a way to send a http command to Zigbee2MQTT Web If as a workaround and use a button in Domoticz.

Re: Danalock through Zigbee2MQTT and MQTT Auto Discovery

Posted: Friday 14 April 2023 16:12
by waltervl
Did you get other errors when pushing the buttons?
It seems to be an issue in the config and state messages that are not yet compatible with Domoticz MQTT AD, without that information nothing can be changed.

Re: Danalock through Zigbee2MQTT and MQTT Auto Discovery

Posted: Saturday 15 April 2023 8:04
by ChrisVH1982
The error message is generic: "Error sending switch command, check device/hardware (idx=xxxxx)"