-
Notifications
You must be signed in to change notification settings - Fork 28
Advanced Use Cases Door Open Lockout Suppression
A common safety request: "Don't let the blind close over a terrace or balcony door while that door is open β I don't want to get locked out." This works today with no code changes. The building block is a single Custom Position slot triggered by the door contact, holding the cover fully open for as long as the door is open.
When the door closes, the slot steps aside and the integration resumes normal adaptive tracking, returning the cover to its sun/climate-calculated position.
Open your cover's options and configure one of the ten Custom Position slots:
| Setting | Value |
|---|---|
| Trigger Sensors | your door contact, e.g. binary_sensor.terrace_door
|
| Custom Position | 100 (fully open) |
| Priority | 100 (recommended for a safety use case β see below) |
| Minimum Mode | Off |
Most door contacts report on when the door is open, which is exactly the trigger you want: door open β slot active β cover held at 100% β no close.
If your door entity reports the reverse (
on= closed), invert it with a Template binary sensor or adevice_classhelper, then point the slot's Trigger Sensor at the inverted entity.
The priority decides which other behaviours your anti-lockout rule overrides, and whether it works around the clock. For reference, the relevant slice of the priority chain:
Weather(90) β Manual(80) β Custom(1β100) β Motion(75) β Cloud(60) β Climate(50) β Glare(45) β Solar(40) β Default(0)
| Priority | Beats | Time window | Use when |
|---|---|---|---|
| 77 (default) | solar, climate, cloud, motion | Only inside the schedule window | The door is only relevant during the day and you're fine deferring to the window |
| 95 | also manual override (80) and motion timeout (75) | Only inside the schedule window | You want the held-open position to survive a manual nudge, but still only during scheduled hours |
| 100 (safety) | everything below Weather(90); also fires outside the schedule window, bypasses the delta-position and delta-time send gates, and is retried by the reconciliation loop | Any hour, including at night | Recommended for true anti-lockout β the door can be open at dusk or after the window closes, and you want zero latency |
For a safety-grade lockout guard, priority 100 is the right choice: the original request was specifically about not getting locked out, and that can happen after the tracking window has closed. A slot at priority 77 deliberately does not fire outside the start/end window, so it would leave the door unprotected in the evening. See Safety Priority for the full semantics.
Weather safety and the door slot. A priority-100 custom slot evaluates above the Weather(90) storm-protection handler, so at 100 your door guard wins even during a weather-safety close. If you'd rather let a storm close take precedence over an open door, drop the slot to 85 (below Weather, above Manual) β the door is then held open in normal conditions but a weather-safety event can still close it. For most balcony-door setups, never closing over an open door is the safer default, so 100 is the recommended choice.
The moment the door contact returns to off, the Custom Position handler produces no result and the pipeline falls through to whichever handler is next β normally solar or climate. The cover moves back to its calculated position immediately: on release, a priority-100 slot bypasses the delta gates so there's no throttling delay returning to the tracked position.
The slot also fires regardless of the Automatic Control toggle β a sensor-triggered override is treated as an explicit user intent β so the door guard protects you even while sun tracking is paused.
If you don't want the blind to travel all the way up β say you want it to stop at a height that still clears the door track but keeps some shade β set Custom Position to that value (e.g. 60) instead of 100, and turn on Minimum Mode. In minimum mode the cover won't drop below that height while the door is open, but solar tracking can still raise it further. Without minimum mode the slot pins the exact position.
Check sensor.{your_device}_decision_trace. While the door is open you should see custom_position as the active handler, naming your door sensor. When the door closes, the trace switches to solar, climate, or default. The Panel Card shows the same trace visually.
- Custom Position: full slot configuration reference (trigger sensors, priority, minimum mode, safety priority)
- How It Decides: full priority chain explanation
- Weather Safety: storm-protection handler at priority 90
- Bedroom Sleep Mode: a related Custom Position recipe (hold closed on a schedule)
- Advanced Use Cases: all advanced use case recipes
π Home Β· β¨ Features Β· π° What's New
π Getting Started
- Installation
- Migrating from Custom Repository
- Migrating from Adaptive Cover
- First-Time Setup
- Building Profile β start here if you have multiple covers
- Cover Groups
- Copy Settings to Other Covers
- Cover Types
π§ Core Concepts
π Cover Types
- Vertical
- Horizontal
- Oscillating Awning
- Roof / Skylight Window
- Tilt
- Louvered Roof
- Sliding Curtain
- Day/Night Shade
- Dual Panel
- Venetian (Dual-Axis)
βοΈ Configuration
- Sun Tracking
- Position
- Position Matching
- Travel Time Calibration
- Glare Zones
- Automation
- Manual Override
- Command Queue
- Custom Position
- Force Override
- Weather Safety
- Climate
- Templated Thresholds
- Template Self-References
- Blindspot
- Summary Screen
- Debug & Diagnostics
π Entities & Services
- Entities
- Proxy Cover Entity
- Position Verification
- My Position Support (Somfy RTS)
- Runtime Configuration Services
π οΈ Operations
- Known Limitations
- Hardware Compatibility
- Troubleshooting
- Troubleshooting Findings
- Diagnostic Sensors
- Tips and Tricks
π§ Advanced Use Cases
- Overview
- Dynamic Temperature Thresholds
- Dynamic Tracking Window
- Bedroom Sleep Mode
- Handling Variable Cloud Cover
- Indoor Lux Sensor Behind the Cover
- Venetian Tilt-Only on Overcast Days
- Forecast-Based Shading
- Custom Position When Sun in FOV
- Suppress Closing While a Door Is Open
- Keep a Blind Clear of the Sill
π¨ Dashboard
- Dashboard Cards
- Panel Card
- Tile Card
- Sky Compass Card
- Decision Strip Card
- Solar Chart Card
- History Card
π§ͺ Testing & Simulation
π Reference
π©βπ» For Developers