Skip to content

Commit

Permalink
Wall panel detection (#306)
Browse files Browse the repository at this point in the history
* Fix wall panel detection
  • Loading branch information
PaulWieland authored Jul 12, 2024
1 parent 348e440 commit 95eabcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/ratgdo/secplus1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 95eabcb

Please sign in to comment.