mirror of
https://github.com/ratgdo/esphome-ratgdo.git
synced 2025-02-09 01:04:30 +00:00
Merge 21d490cb77ebf5f52f084a43fa47119438101caa into 98df9e7f9af097588cf228db1821e2eba3e9259b
This commit is contained in:
commit
7b1f522769
@ -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