mirror of
https://github.com/ratgdo/esphome-ratgdo.git
synced 2025-02-09 01:04:30 +00:00
set last obstruction state
This commit is contained in:
parent
0568544ae8
commit
83a284ebb0
@ -221,6 +221,7 @@ namespace ratgdo {
|
||||
if (!this->obstruction_sensor_detected_) {
|
||||
if(obstruction_state != last_state){
|
||||
ESP_LOGD(TAG, "Obstruction: state=%s", ObstructionState_to_string(*this->obstruction_state));
|
||||
last_state = obstruction_state;
|
||||
}
|
||||
|
||||
this->obstruction_state = obstruction_state;
|
||||
|
Loading…
x
Reference in New Issue
Block a user