Zigate and Danalock

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
tjay78
Posts: 1
Joined: Sunday 12 July 2020 9:56
Target OS: Linux
Domoticz version:
Location: Denmark
Contact:

Zigate and Danalock

Post by tjay78 »

Hi

Does anyone know if Danalock works on Zigate
or how to add it to the list of devices???

https://www.zigbee2mqtt.io/devices/V3-BTZB.html

T-J@Y
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Danalock

Post by pipiche »

tjay78 wrote: Sunday 12 July 2020 9:59 Hi

Does anyone know if Danalock works on Zigate
or how to add it to the list of devices???

https://www.zigbee2mqtt.io/devices/V3-BTZB.html

T-J@Y
If it does work with Zigbee2MQTT it means that it is quiet ZigBee Standard, and if doesn't work out of the box with Zigate we would be able to make it.
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
SSteve57
Posts: 6
Joined: Monday 13 May 2019 21:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2 b
Location: France
Contact:

Re: Zigate and Danalock

Post by SSteve57 »

Hi, I get my zigate and Danalock today.

I have install the zigate plugin and the web server, after that I connect a Danalock V3 zigbee. 4 devices were created, but no one of them can control the lock or get the state on lock status change.

Devices in domoticz :
Zigbee - V3-BTZB_Voltage-000b57fffe59cbaf-01 as voltage
Zigbee - V3-BTZB_Alarm-000b57fffe59cbaf-01 as alert
Zigbee - V3-BTZB_Vibration-000b57fffe59cbaf-01 as selector switch
Zigbee - V3-BTZB_-000b57fffe59cbaf-01 as selector too

What can I do for get it work ?
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Danalock

Post by pipiche »

I would suggest 2 things

1/ make sure that you are on the beta branch (plugin) and you have the latest version.
If you were not on beta , then when updated , remove all widget and redo the pairing.

2/ if still not working, please follow https://github.com/pipiche38/Domoticz-Z ... -device.md


Envoyé de mon iPhone en utilisant Tapatalk
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
SSteve57
Posts: 6
Joined: Monday 13 May 2019 21:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2 b
Location: France
Contact:

Re: Zigate and Danalock

Post by SSteve57 »

I have update the plugin to beta v4.10.045, remove all devices and pair it again.
This time I only have 3 devices in Domoticz.

Zigbee - V3-BTZB_Voltage-000b57fffe59cbaf-01
Zigbee - V3-BTZB_Alarm-000b57fffe59cbaf-01
Zigbee - V3-BTZB_Vibration-000b57fffe59cbaf-01
export.json.zip
(1.47 KiB) Downloaded 35 times
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Danalock

Post by pipiche »

Hello,

Can you kindly update the plugin beta branch with a git pull (in order to get the latest changes)

Restart the plugin
Then Remove the 3 widgets .
and redo the pairing
then it should create only One device (Door).
Please try to snap the logs from Domoticz log and share it.

For now :
put the plugin in debuging mode by enabling debugInput and debugCluster from the Web UI Tools->Debug sub-menu (you need to set advanced)

The logs will appear on teh Domoticz logs

Then try to play with the Doorlock and let see if it generates logs or not. Share the logs here.

We will see from there, what to do
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
SSteve57
Posts: 6
Joined: Monday 13 May 2019 21:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2 b
Location: France
Contact:

Re: Zigate and Danalock

Post by SSteve57 »

Thanks for your reply.

After pairing I got only one no clickable door device.
The widget doesn't react to several locks and unlocks moves by hand and by the Danalock app in BT.

For the log I got this in Domoticz :

2020-07-14 20:45:09.869 Status: (Zigbee) Device Announcement Addr: ef88, IEEE: 000b57fffe59cbaf Join Flag: 99 LQI: 0 ChangeShortID: False
2020-07-14 20:45:20.458 Status: (Zigbee) [0] NEW OBJECT: ef88 TimeOut in 0045 restarting at 0x004d
2020-07-14 20:45:23.872 Status: (Zigbee) Device Announcement Addr: 4b12, IEEE: 000b57fffe59cbaf Join Flag: 99 LQI: 0 ChangeShortID: True
2020-07-14 20:45:23.873 Status: (Zigbee) DeviceExist - Device 000b57fffe59cbaf changed its ShortId: from ef88 to 4b12 during provisioing. Restarting !
2020-07-14 20:45:28.999 Status: (Zigbee) [-] NEW OBJECT: 4b12 Active Endpoint Response Ep: 01 LQI: 156
2020-07-14 20:45:29.000 Status: (Zigbee) [-] NEW OBJECT: 4b12 Request Simple Descriptor for Ep: 01
2020-07-14 20:45:29.554 Status: (Zigbee) [-] NEW OBJECT: 4b12 Simple Descriptor Response EP: 0x01 LQI: 156
2020-07-14 20:45:29.554 Status: (Zigbee) [-] NEW OBJECT: 4b12 ProfileID 0104
2020-07-14 20:45:29.554 Status: (Zigbee) [-] NEW OBJECT: 4b12 ZDeviceID 000a
2020-07-14 20:45:29.555 Status: (Zigbee) [-] NEW OBJECT: 4b12 Application Version 0000
2020-07-14 20:45:29.555 Status: (Zigbee) [-] NEW OBJECT: 4b12 Cluster IN Count: 07
2020-07-14 20:45:29.555 Status: (Zigbee) [-] NEW OBJECT: 4b12 Cluster In 1: 0000 (Basic)
2020-07-14 20:45:29.555 Status: (Zigbee) [-] NEW OBJECT: 4b12 Cluster In 2: 0001 (Power Configuration)
2020-07-14 20:45:29.555 Status: (Zigbee) [-] NEW OBJECT: 4b12 Cluster In 3: 0003 (Identify)
2020-07-14 20:45:29.555 Status: (Zigbee) [-] NEW OBJECT: 4b12 Cluster In 4: 0009 (Alarms)
2020-07-14 20:45:29.555 Status: (Zigbee) [-] NEW OBJECT: 4b12 Cluster In 5: 0020 (Poll Control)
2020-07-14 20:45:29.555 Status: (Zigbee) [-] NEW OBJECT: 4b12 Cluster In 6: 0101 (Door Lock)
2020-07-14 20:45:29.556 Status: (Zigbee) [-] NEW OBJECT: 4b12 Cluster In 7: 0b05 (Diagnostics)
2020-07-14 20:45:29.556 Status: (Zigbee) [-] NEW OBJECT: 4b12 Cluster OUT Count: 03
2020-07-14 20:45:29.556 Status: (Zigbee) [-] NEW OBJECT: 4b12 Cluster Out 1: 000a (Time)
2020-07-14 20:45:29.556 Status: (Zigbee) [-] NEW OBJECT: 4b12 Cluster Out 2: 0019 (Over-the-Air Upgrade)
2020-07-14 20:45:29.556 Status: (Zigbee) [-] NEW OBJECT: 4b12 Cluster Out 3: 0b05 (Diagnostics)
2020-07-14 20:45:30.460 Status: (Zigbee) [0] NEW OBJECT: 4b12 Request Node Descriptor
2020-07-14 20:45:35.493 Status: (Zigbee) [1] NEW OBJECT: 4b12 Model Name: V3-BTZB
2020-07-14 20:45:35.493 Status: (Zigbee) [1] NEW OBJECT: 4b12 Model Name: V3-BTZB
2020-07-14 20:48:00.805 Status: (Zigbee) Device Announcement: (4b12, 000b57fffe59cbaf) Join Flag: 99 LQI: 0 ChangeShortID: False
2020-07-14 20:48:32.981 Status: (Zigbee) Device Announcement: (4b12, 000b57fffe59cbaf) Join Flag: 99 LQI: 0 ChangeShortID: False
2020-07-14 20:54:08.975 Status: (Zigbee) Request Disabling Accepting new Hardware
2020-07-14 20:54:09.180 Status: (Zigbee) Accepting new Hardware: Disable

and this in errors :

2020-07-14 20:45:31.635 Error: (Zigbee) 'onMessage' failed 'KeyError'.
2020-07-14 20:45:31.635 Error: (Zigbee) ----> Line 999 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onMessage
2020-07-14 20:45:31.635 Error: (Zigbee) ----> Line 507 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onMessage
2020-07-14 20:45:31.635 Error: (Zigbee) ----> Line 61 in '/home/pi/domoticz/plugins/Domoticz-Zigate/WebServer/onMessage.py', function onMessage
2020-07-14 20:45:31.635 Error: (Zigbee) ----> Line 74 in '/home/pi/domoticz/plugins/Domoticz-Zigate/WebServer/dispatcher.py', function do_rest
2020-07-14 20:45:31.635 Error: (Zigbee) ----> Line 135 in '/home/pi/domoticz/plugins/Domoticz-Zigate/WebServer/rest_Provisioning.py', function rest_rcv_nw_hrdwr

for info my USB Zigate is on 031a firmware
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Danalock

Post by pipiche »

I'm not focusing on Domoticz to command the device for now. So for now it does make sense that the Widget do not do anything

As mentioned, please do lock / unlock the device and check if there is any logs happening ( debugCluster and debugInput must be enabled).

You confirmed that you can lock the device manually ? or is that only been done remotely ?
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
SSteve57
Posts: 6
Joined: Monday 13 May 2019 21:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2 b
Location: France
Contact:

Re: Zigate and Danalock

Post by SSteve57 »

I send you a private message.

I make several Lock and Unlock on the device.

I can drive the lock manually inside, by the key outside and by the IOS app in bluetooth.

2020-07-14 21:50:46.699 (Zigbee) ZigateRead - MsgType: 8102, MsgLength: 000e, MsgCRC: 64, Data: 144b1201010100000030000102, LQI: 150
2020-07-14 21:50:46.699 (Zigbee) Decode8102 - Attribute Reports : [4b12:01] MsgSQN: 14 ClusterID: 0101 AttributeID: 0000 Status: 00 Type: 30 Size: 0001 ClusterData: >02<
2020-07-14 21:50:46.701 (Zigbee) ReadCluster - 0101 - 4b12/01 AttrId: 0000 AttrType: 30 Attsize: 0001 Status: 00 AttrValue: 02
2020-07-14 21:50:46.701 (Zigbee) ReadCluster 0101 - Dev: 4b12, EP:01 AttrID: 0000, AttrType: 30, AttrSize: 0001 Attribute: 02 Len: 2
2020-07-14 21:50:46.702 (Zigbee) ReadCluster 0101 - Dev: Lock state 02
2020-07-14 21:50:57.245 (Zigbee) ZigateRead - MsgType: 8102, MsgLength: 000e, MsgCRC: 6f, Data: 164b1201010100000030000101, LQI: 156
2020-07-14 21:50:57.245 (Zigbee) Decode8102 - Attribute Reports : [4b12:01] MsgSQN: 16 ClusterID: 0101 AttributeID: 0000 Status: 00 Type: 30 Size: 0001 ClusterData: >01<
2020-07-14 21:50:57.247 (Zigbee) ReadCluster - 0101 - 4b12/01 AttrId: 0000 AttrType: 30 Attsize: 0001 Status: 00 AttrValue: 01
2020-07-14 21:50:57.248 (Zigbee) ReadCluster 0101 - Dev: 4b12, EP:01 AttrID: 0000, AttrType: 30, AttrSize: 0001 Attribute: 01 Len: 2
2020-07-14 21:50:57.248 (Zigbee) ReadCluster 0101 - Dev: Lock state 01

2020-07-14 21:52:48.996 (Zigbee) ZigateRead - MsgType: 8102, MsgLength: 000e, MsgCRC: 68, Data: 184b1201010100000030000102, LQI: 150
2020-07-14 21:52:48.996 (Zigbee) Decode8102 - Attribute Reports : [4b12:01] MsgSQN: 18 ClusterID: 0101 AttributeID: 0000 Status: 00 Type: 30 Size: 0001 ClusterData: >02<
2020-07-14 21:52:48.997 (Zigbee) ReadCluster - 0101 - 4b12/01 AttrId: 0000 AttrType: 30 Attsize: 0001 Status: 00 AttrValue: 02
2020-07-14 21:52:48.998 (Zigbee) ReadCluster 0101 - Dev: 4b12, EP:01 AttrID: 0000, AttrType: 30, AttrSize: 0001 Attribute: 02 Len: 2
2020-07-14 21:52:48.998 (Zigbee) ReadCluster 0101 - Dev: Lock state 02
2020-07-14 21:52:55.971 (Zigbee) ZigateRead - MsgType: 8102, MsgLength: 000e, MsgCRC: 5d, Data: 1a4b1201010100000030000101, LQI: 162
2020-07-14 21:52:55.972 (Zigbee) Decode8102 - Attribute Reports : [4b12:01] MsgSQN: 1a ClusterID: 0101 AttributeID: 0000 Status: 00 Type: 30 Size: 0001 ClusterData: >01<
2020-07-14 21:52:55.974 (Zigbee) ReadCluster - 0101 - 4b12/01 AttrId: 0000 AttrType: 30 Attsize: 0001 Status: 00 AttrValue: 01
2020-07-14 21:52:55.974 (Zigbee) ReadCluster 0101 - Dev: 4b12, EP:01 AttrID: 0000, AttrType: 30, AttrSize: 0001 Attribute: 01 Len: 2
2020-07-14 21:52:55.974 (Zigbee) ReadCluster 0101 - Dev: Lock state 01
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Danalock

Post by pipiche »

Could you kindly switch to NewDevices branch

Code: Select all

git pull
git checkout NewDevices
Then you need to :
1/ restart the plugin
2/ Remove the widget created during the last pairing
3/ Redo the pairing

=> A simple Switch will be created as the Door widget is not capable of taking action.

Then:
1/ check that the status is correctly updated
2/ Test if the On/Off has any action to the switch (please do check the Domoticz log at the same time)
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
SSteve57
Posts: 6
Joined: Monday 13 May 2019 21:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2 b
Location: France
Contact:

Re: Zigate and Danalock

Post by SSteve57 »

For information, pipiche is done with Danalock V3 integration in the Zigate plugin.
It works very well now.

Thanks to pipiche for the great job
pfloryann
Posts: 178
Joined: Wednesday 09 January 2019 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.1
Contact:

Re: Zigate and Danalock

Post by pfloryann »

Hi,
That's mean the Danalock V3 zigbee version is compatible with zigate and this thing is great. Please let me to know if you drive the lock manually the domoticz widget status changes.

Thank you!
Domoticz on Raspberry Pi 4 with Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Danalock

Post by pipiche »

From my understanding and I would leave @SSteve57 to confirm/comment, but yes Domoticz -> Danalock works ; Danalock -> Domoticz works
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
pfloryann
Posts: 178
Joined: Wednesday 09 January 2019 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.1
Contact:

Re: Zigate and Danalock

Post by pfloryann »

Ok, Thank you for your zigate support Pipiche
Domoticz on Raspberry Pi 4 with Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest