From 5b4c5b46fd88a211741cc7cba49df8108f165de4 Mon Sep 17 00:00:00 2001 From: Hunsup Jung Date: Tue, 15 Jul 2025 12:51:47 +0900 Subject: [PATCH 1/2] Add default enum value to supportedAlarmvalues Signed-off-by: Hunsup Jung --- drivers/SmartThings/matter-lock/src/new-matter-lock/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/SmartThings/matter-lock/src/new-matter-lock/init.lua b/drivers/SmartThings/matter-lock/src/new-matter-lock/init.lua index 2f33bcdae0..b686495d9c 100644 --- a/drivers/SmartThings/matter-lock/src/new-matter-lock/init.lua +++ b/drivers/SmartThings/matter-lock/src/new-matter-lock/init.lua @@ -204,6 +204,8 @@ local function info_changed(driver, device, event, args) end end device:subscribe() + device:emit_event(capabilities.lockAlarm.alarm.clear({state_change = true})) + device:emit_event(capabilities.lockAlarm.supportedAlarmValues({"unableToLockTheDoor"})) -- lockJammed is madatory end -- This function check busy_state and if busy_state is false, set it to true(current time) From 44055e67734da53e0004e5bb41cc5cfadab8919c Mon Sep 17 00:00:00 2001 From: Hunsup Jung Date: Wed, 16 Jul 2025 21:05:33 +0900 Subject: [PATCH 2/2] Add visibility option Signed-off-by: Hunsup Jung --- drivers/SmartThings/matter-lock/src/new-matter-lock/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/SmartThings/matter-lock/src/new-matter-lock/init.lua b/drivers/SmartThings/matter-lock/src/new-matter-lock/init.lua index b686495d9c..70e72cf61f 100644 --- a/drivers/SmartThings/matter-lock/src/new-matter-lock/init.lua +++ b/drivers/SmartThings/matter-lock/src/new-matter-lock/init.lua @@ -205,7 +205,7 @@ local function info_changed(driver, device, event, args) end device:subscribe() device:emit_event(capabilities.lockAlarm.alarm.clear({state_change = true})) - device:emit_event(capabilities.lockAlarm.supportedAlarmValues({"unableToLockTheDoor"})) -- lockJammed is madatory + device:emit_event(capabilities.lockAlarm.supportedAlarmValues({"unableToLockTheDoor"}, {visibility = {displayed = false}})) -- lockJammed is madatory end -- This function check busy_state and if busy_state is false, set it to true(current time)