mirror of
https://github.com/ratgdo/esphome-ratgdo.git
synced 2025-02-07 22:03:20 +00:00
Compare commits
3 Commits
997379e36b
...
7b1f522769
Author | SHA1 | Date | |
---|---|---|---|
|
7b1f522769 | ||
|
21d490cb77 | ||
|
60881341d8 |
@ -460,11 +460,11 @@ namespace ratgdo {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this->obstruction_sensor_detected_) {
|
||||
this->door_action(DoorAction::CLOSE);
|
||||
} else if (*this->door_state == DoorState::OPEN) {
|
||||
if (!this->obstruction_sensor_detected_ && (*this->door_state == DoorState::OPEN || *this->door_state == DoorState::STOPPED)) {
|
||||
ESP_LOGD(TAG, "No obstruction sensors detected. Close using TOGGLE.");
|
||||
this->door_action(DoorAction::TOGGLE);
|
||||
} else {
|
||||
this->door_action(DoorAction::CLOSE);
|
||||
}
|
||||
|
||||
if (*this->closing_duration > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user