Compare commits
3 Commits
7b1f522769
...
bfe20af6c8
Author | SHA1 | Date |
---|---|---|
Beat | bfe20af6c8 | |
Beat | 21d490cb77 | |
Beat | 60881341d8 |
|
@ -460,11 +460,11 @@ namespace ratgdo {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->obstruction_sensor_detected_) {
|
if (!this->obstruction_sensor_detected_ && (*this->door_state == DoorState::OPEN || *this->door_state == DoorState::STOPPED)) {
|
||||||
this->door_action(DoorAction::CLOSE);
|
|
||||||
} else if (*this->door_state == DoorState::OPEN) {
|
|
||||||
ESP_LOGD(TAG, "No obstruction sensors detected. Close using TOGGLE.");
|
ESP_LOGD(TAG, "No obstruction sensors detected. Close using TOGGLE.");
|
||||||
this->door_action(DoorAction::TOGGLE);
|
this->door_action(DoorAction::TOGGLE);
|
||||||
|
} else {
|
||||||
|
this->door_action(DoorAction::CLOSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*this->closing_duration > 0) {
|
if (*this->closing_duration > 0) {
|
||||||
|
|
Loading…
Reference in New Issue