From 6a1a79589ef18ca2e2b4fac758c86b4d201bdc30 Mon Sep 17 00:00:00 2001 From: Dominic Griesel Date: Thu, 30 Nov 2023 13:52:05 +0100 Subject: [PATCH 1/2] fix(config): override user code count for Yale ZW2 locks --- .../devices/0x0129/yrc_yrd_226_246_256_446-zw2.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/config/config/devices/0x0129/yrc_yrd_226_246_256_446-zw2.json b/packages/config/config/devices/0x0129/yrc_yrd_226_246_256_446-zw2.json index df2be59cde3e..956138bcd801 100644 --- a/packages/config/config/devices/0x0129/yrc_yrd_226_246_256_446-zw2.json +++ b/packages/config/config/devices/0x0129/yrc_yrd_226_246_256_446-zw2.json @@ -108,7 +108,17 @@ { "$import": "templates/yale_template.json#alarm_map_auto_relock" } - ] + ], + "overrideQueries": { + // The lock reports support for 250 lock codes, but slot 251 is + // the master code which isn't available otherwise in CC version 1. + "User Code": [ + { + "method": "getUsersCount", + "result": 251 + } + ] + } }, "metadata": { "inclusion": "Enter the 4-8 master Pin code followed by the gear key.\nPress the 7 key followed by the gear key\nPress the 1 key followed by the gear key", From 3f2574504a85f801fef54f06e33fe1ab4325e065 Mon Sep 17 00:00:00 2001 From: Dominic Griesel Date: Wed, 10 Jul 2024 10:18:59 +0200 Subject: [PATCH 2/2] fix: rename master to admin --- .../config/devices/0x0129/yrc_yrd_226_246_256_446-zw2.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/config/config/devices/0x0129/yrc_yrd_226_246_256_446-zw2.json b/packages/config/config/devices/0x0129/yrc_yrd_226_246_256_446-zw2.json index 956138bcd801..0c0e64e88887 100644 --- a/packages/config/config/devices/0x0129/yrc_yrd_226_246_256_446-zw2.json +++ b/packages/config/config/devices/0x0129/yrc_yrd_226_246_256_446-zw2.json @@ -111,7 +111,7 @@ ], "overrideQueries": { // The lock reports support for 250 lock codes, but slot 251 is - // the master code which isn't available otherwise in CC version 1. + // the admin code which isn't available otherwise in CC version 1. "User Code": [ { "method": "getUsersCount",