Skip to content

Commit

Permalink
disable light switch for dry contact mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dkerr64 committed Dec 14, 2024
1 parent 2dc8131 commit 9f4f20b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/homekit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9f4f20b

Please sign in to comment.