From 9f4f20b9efeb225e6a0485306acb9f2b9f9ebf51 Mon Sep 17 00:00:00 2001 From: David Kerr Date: Fri, 13 Dec 2024 20:58:49 -0500 Subject: [PATCH] disable light switch for dry contact mode --- src/homekit.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/homekit.cpp b/src/homekit.cpp index 661596a1..4adb7d5d 100644 --- a/src/homekit.cpp +++ b/src/homekit.cpp @@ -70,6 +70,12 @@ void setup_homekit() RINFO("Motion Sensor not detected. Disabling Service"); config.accessories[0]->services[3] = NULL; } + if (userConfig->gdoSecurityType == 3) + { + RINFO("Dry contact does not support light control. Disabling Service"); + config.accessories[0]->services[2] = NULL; + } + // We can set current lock state to unknown as HomeKit has value for that. // But we can't do the same for door state as HomeKit has no value for that. garage_door.current_lock = CURR_UNKNOWN;