zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Danalock Pin codes not working

Open dhadanalock opened this issue 1 year ago • 16 comments

What happened?

When trying to save a new pin code to the Danapad it writes "Publish "set' pin_code to 'Lockname' failed: 'Error: user must be numbers'" It happens when I change the User type. And what's worse - it also deletes the first pin code already stored on the lock.

What did you expect to happen?

That it would accept the number that I write in "User" and save, change, delete the pin code position.

How to reproduce it (minimal and precise)

Enroll a Danalock Zigbee - try saving a pin Write '5' in 'User" Then chose 'Unrestricted' in 'User type'. Then the error will happen.

Zigbee2MQTT version

1.33.0-1

Adapter firmware version

20220219

Adapter

Sonoff_Zigbee_3.0_USB_Dongle_Plus - Model id: ea60

Debug log

log.txt

dhadanalock avatar Oct 02 '23 12:10 dhadanalock

@dhadanalock

Since updating my zigbee2mqtt docker to latest version (1.33.1) i cant control my lock anymore. State reporting (locked/unlocked) is fine Do you have the same problem?

Getting this in the logs: image

BrianKarlsen avatar Oct 28 '23 08:10 BrianKarlsen

@dhadanalock I guess this happens when setting it from the z2m frontend, can you check with the latest dev branch? It has some fixes regarding the composite types under the exposes tab (of which the pincode is one) (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

Koenkk avatar Oct 28 '23 08:10 Koenkk

@Koenkk Do you have any idea why I cant control the lock after 1.33.1? I tried to delete the device from z2m and now I can't even pair it again..

image

BrianKarlsen avatar Oct 28 '23 09:10 BrianKarlsen

Hi Brian. Did you try giving the lock 9 clicks in the pin hole. This tells the lock to clear all information about the enrollment on the hub.

Could be that this would help you ebroll it again.

I have updated my HA just now also and have no issues with my 2 locks at home or the test lock that I have in my home office.

/Dan, Danalock


From: BrianKarlsen @.> Sent: Saturday, October 28, 2023 11:47:09 AM To: Koenkk/zigbee2mqtt @.> Cc: Dan Hansen @.>; Mention @.> Subject: Re: [Koenkk/zigbee2mqtt] Danalock Pin codes not working (Issue #19138)

@Koenkkhttps://github.com/Koenkk Do you have any idea why I cant control the lock after 1.33.1? I tried to delete the device from z2m and now I can't even pair it again..

[image]https://user-images.githubusercontent.com/24981461/278804069-f1d9c664-aa21-45e8-a778-29a3944a15fe.png

— Reply to this email directly, view it on GitHubhttps://github.com/Koenkk/zigbee2mqtt/issues/19138#issuecomment-1783763057, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVIRJBMV2OCR63J57H4SF2TYBTIB3AVCNFSM6AAAAAA5PLUDMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBTG43DGMBVG4. You are receiving this because you were mentioned.Message ID: @.***>

dhadanalock avatar Oct 28 '23 15:10 dhadanalock

Hi Dan.

I tried that before starting the pairing proces, but without luck. It flashes green around 10 times but never goes to white. No reaktion in Z2M...

BrianKarlsen avatar Oct 28 '23 15:10 BrianKarlsen

Hi Brian.

Do a full reset, 9 clicks (Again to clear any data from the latest attempt), then10 clicks. Pull a battery to reboot. Try enrollment again. Remember to recalibrate, set any settings, and load pin codes again - it is all cleared with the 10 clicks.

Could you scan the qr code to see the production date, that will let me know if it the 1.3 Zigbee hardware or the 3.0 Zigbee hardware.

Br. Dan

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: BrianKarlsen @.> Sent: Saturday, October 28, 2023 5:47:13 PM To: Koenkk/zigbee2mqtt @.> Cc: Dan Hansen @.>; Mention @.> Subject: Re: [Koenkk/zigbee2mqtt] Danalock Pin codes not working (Issue #19138)

Hi Dan.

I tried that before starting the pairing proces, but without luck. It flashes green around 10 times but never goes to white. No reaktion in Z2M...

— Reply to this email directly, view it on GitHubhttps://github.com/Koenkk/zigbee2mqtt/issues/19138#issuecomment-1783853854, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVIRJBLHM7WC64NOQ4FO3YLYBUSIDAVCNFSM6AAAAAA5PLUDMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBTHA2TGOBVGQ. You are receiving this because you were mentioned.Message ID: @.***>

dhadanalock avatar Oct 28 '23 16:10 dhadanalock

Did not help. still 10 green and no white. No reaction in Z2M.. Date: 05.20.2021

BrianKarlsen avatar Oct 28 '23 16:10 BrianKarlsen

Have you updated the lock according to https://danalock.com/zigbee

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: BrianKarlsen @.> Sent: Saturday, October 28, 2023 6:54:47 PM To: Koenkk/zigbee2mqtt @.> Cc: Dan Hansen @.>; Mention @.> Subject: Re: [Koenkk/zigbee2mqtt] Danalock Pin codes not working (Issue #19138)

Did not help. still 10 green and no white. No reaction in Z2M.. Date: 05.20.2021

— Reply to this email directly, view it on GitHubhttps://github.com/Koenkk/zigbee2mqtt/issues/19138#issuecomment-1783869310, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVIRJBJOFH5FIQ5MS3QSYRTYBU2FPAVCNFSM6AAAAAA5PLUDMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBTHA3DSMZRGA. You are receiving this because you were mentioned.Message ID: @.***>

dhadanalock avatar Oct 28 '23 17:10 dhadanalock

I've had mail contact with you in danish back in april :) I did a update then... Shall i do it again?

(we can continue in danish again)

BrianKarlsen avatar Oct 28 '23 17:10 BrianKarlsen

Let's keep it in English if others experience the same and we figure out why this is happening.

I am trying right now to see if I can force mine to do the same.

Normally one click (inclusion mode) will make it flash one time (if the lock already thinks it is enrolled on the hub) or 4-5 times (when not enrolled).

It shouldn't flash 10 times.

Can't seem to force mine to fail like that.

I am actually not sure what it will do if the enrollment isn't doing what we except. Maybe if you have another Zigbee hub to test on we could figure that part out. If the lock enrolls on another hub we can start looking at the hub.

I assume you have tried restarting the hub right?

/Dan

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: BrianKarlsen @.> Sent: Saturday, October 28, 2023 7:54:50 PM To: Koenkk/zigbee2mqtt @.> Cc: Dan Hansen @.>; Mention @.> Subject: Re: [Koenkk/zigbee2mqtt] Danalock Pin codes not working (Issue #19138)

I've had mail contact with you in danish back in april :) I did a update then... Shall i do it again?

(we can continue in danish again)

— Reply to this email directly, view it on GitHubhttps://github.com/Koenkk/zigbee2mqtt/issues/19138#issuecomment-1783884011, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVIRJBPJ64IFXJEP3UOTHGDYBVBGVAVCNFSM6AAAAAA5PLUDMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBTHA4DIMBRGE. You are receiving this because you were mentioned.Message ID: @.***>

dhadanalock avatar Oct 28 '23 18:10 dhadanalock

Restarted the hub for the 4. time Ran the cycle again an suddently it only flashed 5 times and BOOM!Back i Z2M and I can control it again :)

Really weird... Thanks

BrianKarlsen avatar Oct 28 '23 19:10 BrianKarlsen

Perfect!

But yes, weird.

But glad you got it back in again. And pin codes sounds like from Koen K to be resolved when dev fixes gets out live.

I will be testing the den branch at a later time. Don't have the time this weekend.

/Dan

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: BrianKarlsen @.> Sent: Saturday, October 28, 2023 9:02:00 PM To: Koenkk/zigbee2mqtt @.> Cc: Dan Hansen @.>; Mention @.> Subject: Re: [Koenkk/zigbee2mqtt] Danalock Pin codes not working (Issue #19138)

Restarted the hub for the 4. time Ran the cycle again an suddently it only flashed 5 times and BOOM!Back i Z2M and I can control it again :)

Really weird... Thanks

— Reply to this email directly, view it on GitHubhttps://github.com/Koenkk/zigbee2mqtt/issues/19138#issuecomment-1783898601, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVIRJBOU2A7X2CTFC7ZKMMDYBVJCRAVCNFSM6AAAAAA5PLUDMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBTHA4TQNRQGE. You are receiving this because you were mentioned.Message ID: @.***>

dhadanalock avatar Oct 28 '23 19:10 dhadanalock

I dont use pincodes :)

I updated Z2M because I installed new Sonoff radiator thermostats and they needed it to work.

BrianKarlsen avatar Oct 28 '23 19:10 BrianKarlsen

Hi again. Unfortuatly I lost the connection again yesterday. Cant control the lock from Z2M. Redid the process but the lock is back to flashing 10 times and not pairing.

BrianKarlsen avatar Oct 31 '23 17:10 BrianKarlsen

Hi Brian. Could you write me an email on @.*** and we could see if we can get your lock back here for some testing on our home assistant setup.

My locks both at home and in the office are still online.

I believe that sending the lock to us for testing is easier than starting over or perhaps bug searching on HA and Z2M.

It could be the lock, but I am most leaving towards an issue that happened when updating the platform. But I can test the lock for you.

Breast regards Dan, Danalock

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: BrianKarlsen @.> Sent: Tuesday, October 31, 2023 6:32:50 PM To: Koenkk/zigbee2mqtt @.> Cc: Dan Hansen @.>; Mention @.> Subject: Re: [Koenkk/zigbee2mqtt] Danalock Pin codes not working (Issue #19138)

Hi again. Unfortuatly I lost the connection again yesterday. Cant control the lock from Z2M. Redid the process but the lock is back to flashing 10 times and not pairing.

— Reply to this email directly, view it on GitHubhttps://github.com/Koenkk/zigbee2mqtt/issues/19138#issuecomment-1787672353, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVIRJBJNMPAO3W67W6SUEGTYCEY4FAVCNFSM6AAAAAA5PLUDMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBXGY3TEMZVGM. You are receiving this because you were mentioned.Message ID: @.***>

dhadanalock avatar Oct 31 '23 20:10 dhadanalock

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Apr 29 '24 00:04 github-actions[bot]