Wall panel detection (#306)

* Fix wall panel detection
This commit is contained in:
Paul Wieland 2024-07-12 09:16:59 -04:00 committed by GitHub
parent 348e4403db
commit 95eabcb98d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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) {