Open Cover on Door Open – balcony door raises the shutter, with optional position restore

Opens a cover when a door is opened. My use case: a balcony door with a roller shutter — when I open the door to step outside, the shutter opens automatically. Optionally the shutter’s previous position is restored after the door has been closed again.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

What it does

  • The door goes from closed to open and the cover is not already fully open → the cover opens
  • While the door stays open, the automation never interferes — you can move the cover however you like, including fully down with the door open, and nothing will fight you
  • Optional: the cover’s position at door-open time is memorized and restored after the door has been closed — but only if the cover is still fully open at that moment. If you moved it while the door was open, your manual choice wins and nothing is restored.

No helper entities required — the memory lives inside the automation run itself.

Safety design

  • No feedback loops possible: only the door sensor triggers the automation, never the cover
  • Manual control always wins: inert while the door is open; the restore is skipped if the cover is not exactly where the automation left it
  • Door bouncing is absorbed: a configurable grace period (default 10 s) — briefly stepping inside and back out doesn’t cycle the cover
  • Fail-safe on restarts: the trigger requires a strict closed → open transition, so Home Assistant restarts or a sensor recovering from unavailable never move the cover; if HA restarts while the door is open, the memorized position is simply forgotten and the cover stays open

Note: with the restore option enabled, the automation shows as running while the door is open — that is the run waiting for the door to be closed, and it’s normal.

Requirements

  • A door contact as binary_sensor (on = open), e.g. Shelly Door/Window or any Zigbee/Z-Wave contact
  • The cover as a cover entity; restoring an exact position needs a position-capable (e.g. calibrated Shelly) cover

Inputs

Input Default Description
Door sensor Binary sensor of the door (on = open)
Cover The cover to open when the door opens
Restore the cover when the door is closed again off Memorize and restore the previous position (only if the cover was not touched meanwhile)
Door-closed grace period 10 s How long the door must stay closed before restoring; reopening within this period keeps the cover open

Links & updates

Updates ship as GitHub releases and the import badge above always installs the latest version. To update an already imported blueprint later: Settings → Automations & Scenes → Blueprints → ⋮ → Re-import blueprint.

Works great together with my Sync Two Covers blueprint — opening or restoring the cover simply syncs the partner cover along.

Feedback and issues welcome — here or on GitHub.