From 6a1a79589ef18ca2e2b4fac758c86b4d201bdc30 Mon Sep 17 00:00:00 2001 From: Dominic Griesel Date: Thu, 30 Nov 2023 13:52:05 +0100 Subject: [PATCH] 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",