Skip to content

v1.2.0 - Sec+2.0 stuck-state fixes, Sec+1.0 panel fix, ESP-IDF 6 support

Choose a tag to compare

@heythisisnate heythisisnate released this 15 Oct 13:39
· 16 commits to master since this release

This release fixes two "stuck" states on Security+ 2.0 openers, stops a Security+ 1.0 smart wall panel from resetting, and adds support for ESP-IDF 6.x. It makes no API changes, so you can drop it in place of v1.1.2.

Fixes

Security+ 2.0: wall button and remote changes no longer go missing after the opener sits idle — #36

Symptom: after a few idle hours the device still showed Synced: Yes, but it stopped reflecting doors opened or closed from the wall button or a remote. Sending any command, or a Re-sync, brought it back. Reported on Chamberlain ML700EV/ML1000EV, Merlin MS105MYQ and LiftMaster LM100EVS (also ratgdo/esphome-ratgdo#179).

Cause and fix: the receiver reads fixed 19-byte frames and never realigned on the frame header. One noise burst or dropped UART event left every later read straddling two frames, and the opener sends nothing while idle, so nothing corrected it. Now a framing error or partial read flushes the RX buffer so the next read starts on a frame boundary. It then sends one GET_STATUS to recover whatever the bad frame carried. That only happens once synced, and at most once every 3 s, because each request uses a rolling code. Thanks to @sjwright for the diagnosis and the original fix.

Security+ 2.0: obstruction sensor can no longer stay stuck on "obstructed" — #37

Symptom: with obst_from_status, the obstruction sensor sometimes stayed obstructed after the beam was clear, and only a reboot cleared it (konnected-io/konnected-esphome#139).

Cause and fix: every path back to "clear" waited for a frame the opener sends on its own, and an idle opener sends none. A dropped edge, or a quick wave shorter than the 750 ms debounce, left the state wrong indefinitely. Now, whenever the sensor reports obstructed, gdolib requests STATUS every 6 s until it clears. A false "obstructed" can still show for about 6–7 s, but it can no longer stick. During a real sustained obstruction, expect one GET_STATUS (one rolling code) every 6 s.

Security+ 1.0: smart wall panels no longer reset after door operations — #38

Symptom: with "Security+ 1.0 with smart panel" (e.g. a Chamberlain 245R with a LiftMaster 889LM), the wall panel shut off and rebooted after most door operations.

Cause and fix: the driver sent a Security+ 2.0 GET_STATUS after every button release. On a 1.0 bus that goes out as a raw 0x80 byte, which isn't a valid 1.0 command and confused the panel. GET_STATUS is now only sent on Security+ 2.0. Security+ 1.0 already polls status through the panel or its emulation. Thanks @NTillmann.

Compatibility

Builds on ESP-IDF 6.x — #41

gdolib now requires esp_driver_uart and esp_driver_gpio on ESP-IDF 5.3 and later, and keeps driver on older releases. That fixes driver/uart.h: No such file or directory on IDF 6. It was tested on IDF 6.1.0 (ESP32-C5) and 5.5.5, and builds on earlier IDF versions are unchanged. Thanks @davidcoulson.

Under the hood

  • Host test suite (#36, #37, #39): about 60 tests compile the real gdo.c against a fake ESP-IDF and cover Sec+ v1/v2 decode and commands, the public API, RX resync and the obstruction verify poll. Run them with make -C tests/host. They also run on CI for every push.

Known issue

  • If the door is stopped mid-travel while the open/close duration is being measured, a bogus duration can be recorded. This predates this release and is tracked in #40.

Upgrading

For ESPHome / konnected-esphome, change your gdolib ref: to v1.2.0:

esp32:
  framework:
    components:
      - name: gdolib
        source: https://github.com/konnected-io/gdolib
        ref: v1.2.0

Full Changelog: v1.1.2...v1.2.0