From 95eabcb98d41f057683fed86bac6ed69d0fc5402 Mon Sep 17 00:00:00 2001 From: Paul Wieland
Date: Fri, 12 Jul 2024 09:16:59 -0400 Subject: [PATCH] Wall panel detection (#306) * Fix wall panel detection --- components/ratgdo/secplus1.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/ratgdo/secplus1.cpp b/components/ratgdo/secplus1.cpp index 5ada444..0892456 100644 --- a/components/ratgdo/secplus1.cpp +++ b/components/ratgdo/secplus1.cpp @@ -64,7 +64,9 @@ namespace ratgdo { void Secplus1::wall_panel_emulation(size_t index) { - if (this->wall_panel_emulation_state_ == WallPanelEmulationState::WAITING) { + if (this->wall_panel_starting_) { + this->wall_panel_emulation_state_ = WallPanelEmulationState::WAITING; + } else if (this->wall_panel_emulation_state_ == WallPanelEmulationState::WAITING) { ESP_LOGD(TAG, "Looking for security+ 1.0 wall panel..."); if (this->door_state != DoorState::UNKNOWN || this->light_state != LightState::UNKNOWN) {