diff --git a/README.md b/README.md index 6f60de4..69d6090 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ The ESPHome firmware will allow you to open the door to any position after calib - [ESPHome config for v2.0 board with ESP32 D1 Mini](https://github.com/RATGDO/esphome-ratgdo/blob/main/static/v2board_esp32_d1_mini.yaml) - [ESPHome config for v2.0 board with ESP32 Lolin D2 Mini](https://github.com/RATGDO/esphome-ratgdo/blob/main/static/v2board_esp32_lolin_s2_mini.yaml) - [ESPHome config for v2.5 board with ESP8266 D1 Mini lite](https://github.com/RATGDO/esphome-ratgdo/blob/main/static/v25board_esp8266_d1_mini_lite.yaml) +- [ESPHome config for v2.5 board with ESP32 D1 Mini](https://github.com/RATGDO/esphome-ratgdo/blob/main/static/v25board_esp32_d1_mini.yaml) - [Web Installer](https://ratgdo.github.io/esphome-ratgdo/) ![Home Assistant Screen Shot](static/hass.png) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index cd48835..b6ad370 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -240,6 +240,9 @@ namespace ratgdo { } } else if (cmd == Command::MOTION) { this->motion_state = MotionState::DETECTED; + this->set_timeout("clear_motion", 3000, [=] { + this->motion_state = MotionState::CLEAR; + }); if (*this->light_state == LightState::OFF) { this->send_command(Command::GET_STATUS); } diff --git a/static/index.html b/static/index.html index e2cd1d0..184e2a4 100644 --- a/static/index.html +++ b/static/index.html @@ -157,23 +157,33 @@

Note: At the moment ESPHome only supports Security + 2.0 door openers (Yellow learn button). Support for other protocols is coming.

+ +

v2.5 Board

- - - + +
+ +

v2.0 Board

+
+ + +

diff --git a/static/v25board_esp32_d1_mini.png b/static/v25board_esp32_d1_mini.png new file mode 100644 index 0000000..4cbeea2 Binary files /dev/null and b/static/v25board_esp32_d1_mini.png differ