Skip to content

v1.2.0 — Best-effort set position

Choose a tag to compare

@dgaust dgaust released this 25 Jul 23:56
· 1 commit to main since this release

New

  • Set position (best-effort). The cover now advertises SET_POSITION, so the Home Assistant frontend shows and controls the door's open percentage (the device_class: garage cover is kept). Because the opener has a single button, the target is reached by timing: the door is started in the right direction and the button is pressed again to stop it once the door's interpolated position — derived from the learned travel time — reaches the target. On a door that takes 14 s to open, asking for 50 % from closed stops it about 7 s in.

Notes

  • The stop is judged from the moment the sensors confirm the door actually moved, so the press-to-move delay doesn't skew it — but it's intentionally not perfectly accurate (overshoot is bounded by the 0.5 s tick).
  • Needs a learned open/close duration to be meaningful; until the door has done a clean full run each way it uses a default estimate.
  • Full open (100 %) and full close (0 %) skip the timing and let the opener's own limit switch stop the door.
  • Timed partial moves are excluded from duration learning (they're interrupted runs).

Update via HACS, then reload the integration (or restart Home Assistant).