Blinds Safety: Limit Switches, Calibration, Lockout, Wind, Patios, and Children

Module 20 · Lesson 7

Blinds Safety: Limit Switches, Calibration, Lockout, Wind, Patios, and Children

In Lesson 6 you chose a hardware category and diagnosed the drive at the window. Now we're entering the topic that sets a blind apart from a lamp: mechanical and human safety. Home Assistant can lock out and constrain automation, but it doesn't replace a mechanically safe drive, a local STOP, emergency opening, or a household member's own informed decision. Sun-based schedules come in Lessons 12 and 13: not before.

This lesson doesn't replace an installer or an electrician. You're learning what tests to run after mounting, what lockouts to plan in HA, and what not to automate until safety has passed a household member's test. We'll cover cover entities in Lesson 8.

Plan on about 110 to 120 minutes. Further on I'll shorten Home Assistant to HA.

This lesson's rule
Safety and Plan B come before a closing schedule.
The blinds_automation_enabled helper stays off until the logic from Lesson 13 is built and tested: even after passing the mechanical tests in this lesson.

A real-life problem: the blind moves while someone's on the patio

Saturday evening. You scheduled the patio blind to close at 10pm. A household member is sitting on the balcony with the door open. The blind starts coming down, because the automation doesn't know the door is open, and doesn't know someone is outside.

In HA the blind shows 30%, but it's physically almost closed, because it was previously stopped by a remote outside the system. The automation sends the close command again. A correctly configured drive should stop at its own limit switch, but the position reading in HA remains unreliable.

If the motor keeps buzzing after reaching the end, keeps pressing against the mechanism, or the module doesn't recognize that the movement has finished, stop the test immediately. That's a drive, limit-switch, configuration, or controller-compatibility problem, not something an automation should fix.

Or an awning: a schedule wants to extend it in the morning, but the wind is too strong, or the wind sensor isn't responding. The automation can't then assume missing data means safe conditions. Or a child presses a button in the app because "it's fun to watch it move." That's not a fault of HA as a platform. It's the fault of a design that treated a blind like a light switch.

Two dimensions of safety

People and animalsHardware and the drive
A patio, balcony, sole exitThe drive's limit switches
Children, pets, cords and chainsModule calibration and an estimated position
A household member must be able to stop and open itAn interlock and obstacle detection
A deliberate user lockoutThermal protection, icing, wind

A correctly working motor still doesn't mean the automation is safe for household members. A helper in HA doesn't replace a local STOP or emergency opening.

Limit switches, calibration, and position are three different things

Limit switches belong to the drive and mark the safe end of travel. They can be mechanical, electronic, set by hand, or configured through a manufacturer procedure. They have to work correctly independent of Home Assistant.

Module calibration lets it learn travel time, stopping points, or a current-draw signature. That's how it can estimate a percentage position. That isn't the same as setting the drive's limit switches.

If you only use up, down, and STOP commands, percentage calibration isn't always necessary. If you want to use partial positions (set_cover_position, 30%/50%/70% scenes, logic that depends on percentages), calibration and subsequent verification are mandatory.

After a firmware update to the module or drive, a ZHA ↔ Zigbee2MQTT migration, replacing a door sensor, or restoring a backup, redo the tests: limit switches, calibration, STOP, position, Plan B. After replacing a module, treat the setup as a fresh install.

A limit switch doesn't detect an obstacle halfway through

A limit switch stops the drive at the end of the planned travel. It doesn't have to recognize a hand, a toy, an animal, or an object sitting somewhere earlier along the path. Obstacle detection is a separate feature of the drive or the complete system, and it has to be confirmed in its documentation. A PIR motion sensor isn't a certified obstacle sensor: don't build an automation like "if the PIR sees no motion, close it."

A blind's position isn't a safety sensor

A cover entity may show position as an estimate from motor run time, calibration, or power draw. In Home Assistant, a cover's position usually describes how open it is: 100% means open, 0% means closed: check your specific integration's behavior.

A blind's position isn't a safety sensor

The 0-100% value tells you where the controller estimates the blind is. It doesn't confirm the path is clear, that the patio door is closed, or that the drive hasn't encountered an obstacle.

The position can drift after: control by a remote outside the module HA sees, stopping on an obstacle, a power loss, a motor overheating, icing, slower motion in winter, a module reset, a drive replacement, an incomplete cycle, or manually pulling a fabric blind. An automation shouldn't make a risky decision based solely on current_position: 100.

After a power loss and an HA restart

Controller typeWhat to do once power returns
Position from travel timeCheck physically; often a full recalibration
Electronic limit switchesAn up-down test and a comparison against HA
You don't know which you haveTreat it as needing a full calibration before automation

After an HA restart, entities can be temporarily unknown, the integration may not know the position yet, and a door contact sensor may not have reported in yet. Blinds automation shouldn't close covers immediately after the system starts up. A blind shouldn't start an unplanned motion on its own once power returns, unless that's a documented and knowingly accepted behavior.

A UPS on HA is not a UPS on the blinds
HA can keep running on a UPS while the drives don't. Plan B is a local button, the manufacturer's remote, or waiting for power to return.

Interlock, STOP, and thermal protection

A controller has to prevent up and down from being switched on at the same time. After mounting: a short up pulse, STOP, a short down pulse, STOP: first locally, then from HA. During travel, press stop from the local button and from the app. HA's stop_cover action sends a command: it doesn't guarantee an immediate mechanical stop without a network, with a hung module, or with stuck contacts.

Blind drives have a limited continuous-duty time. Several full cycles in a row can trigger thermal protection. No response after an intensive test doesn't necessarily mean the integration failed: keep the pauses the drive's instructions require. Don't repeat calibration multiple times without a break.

Cutting power in an emergency stops the motion, but doesn't raise a closed blind or provide an evacuation route. Discuss a safe disconnect point with an electrician: that alone isn't a complete Plan B.

Plan B: a local button and a network-failure test

Safety starts at the physical layer. A household member has to be able to stop and raise the blind without the app: an up/down switch at the window, a manufacturer's remote linked directly to the drive (not only through HA), and a possible emergency crank.

In a controlled test, turn off Wi-Fi or disconnect HA from the router. Does the local button still control the blind? A "without HA" test doesn't cover a hung module, stuck contacts, lost calibration, or a damaged relay: the hardware Plan B has to specify who can replace the module and where the circuit's documentation lives.

A closed door doesn't mean the patio is empty

A door contact sensor detects a door, not a person

A door contact sensor can tell you: the door is open or closed. It can't tell you whether someone stayed outside, whether an animal is on the patio, whether the door swung shut after someone went out, whether the sensor has shifted, or whether its battery is dead.

A household member can step onto the patio and close the door behind them. The sensor will then show closed, even though an automatic blind closure could cut off their way back in. On a sole exit, use a deliberate user lockout, a local STOP, easy opening, and a drive design that guarantees an emergency way out. A door contact sensor is a supplement, not a standalone safeguard.

Helpers: a patio lockout and a window-cleaning mode

In Lesson 1 you added blinds_automation_enabled as a global permission. Now we're adding situational lockouts. Layers of lockout:

  • Global permission: whether blinds automation can run at all.
  • A situational lockout: window cleaning, renovation, servicing.
  • A local lockout: a patio, a specific window, a child's room.
  • A technical lockout: a sensor going unavailable, lost calibration, a drive error.
  • A manual override: STOP or manually setting a position.
input_boolean:
  patio_blinds_lockout:
    name: Lock out automatic patio closing
    icon: mdi:patio-heater

  window_cleaning_mode:
    name: Window cleaning mode
    icon: mdi:spray-bottle

Don't set initial: false here if you want HA to restore the previous state after a restart. If HA restarts during window cleaning and the helper resets to off, the lockout gets switched off without a human decision.

patio_blinds_lockout (user-facing label: "Lock out automatic patio closing") blocks the automatic lowering of the patio blind. It doesn't block STOP, manual raising, or a deliberate cover.open_cover action. Keep the layers separate: opening from the dashboard still depends on HA; a local button and a genuine Plan B (a remote or module working without HA) are separate things: don't call an opening that requires a running Home Assistant "emergency."

window_cleaning_mode blocks automatic movement and scenes, but leaves controlled manual control and STOP available. In a large home, consider local helpers, for instance window_cleaning_mode_living_room. The mode shouldn't turn itself off after a few minutes: a household member turns it off deliberately. Give the helper a clear icon and an active-mode color.

If you have a patio door contact sensor, the door opening should automatically turn on the lockout. Closing the door does not automatically turn it off: a household member could close the door from outside. Turning off the lockout requires a deliberate decision once they're back. After an HA restart: if the door sensor comes back as open (on) and the lockout isn't on: set it once you've confirmed the entity is available. Opening from the dashboard still depends on HA; local buttons and Plan B are separate layers.

- id: patio_enable_lockout_after_door_opens
  alias: Patio - lock out blind closing once the door opens
  description: >
    Opening the patio door sets the lockout on automatic closing.
    Closing the door doesn't automatically turn it off.
  mode: single

  triggers:
    - trigger: state
      entity_id: binary_sensor.patio_door
      to: "on"

  actions:
    - action: input_boolean.turn_on
      target:
        entity_id: input_boolean.patio_blinds_lockout

Match the on state to how your own door sensor actually behaves. In Developer Tools, check which state means the door is open. After replacing the sensor's battery, run a test: open it, check on, close it, check off, check unavailable, test the lockout.

unknown and unavailable: no permission for automatic closing

Missing data means no automatic motion

An automation can only close the patio blind when a sensor unambiguously confirms a safe state. unknown, unavailable, and a lack of a fresh update don't mean the door is closed.

A dangerous pattern is a condition like "the door isn't open" (not: on), which passes for unknown or unavailable. It's safer to require an explicit closed-door state. Monitor the sensor's battery, alert on unavailable, and run a periodic physical test before each season.

What takes priority

  1. The drive's mechanical and electronic safeguards.
  2. Local STOP and local opening via a button (Plan B). Opening from the dashboard isn't independent of HA.
  3. Device protection, for example retracting an awning in wind.
  4. Cleaning, servicing, or renovation mode.
  5. The patio lockout and local lockouts.
  6. A household member's manual command.
  7. A deliberately triggered scene.
  8. Automation by time, sun, or temperature.

STOP also means "don't try again"

When a household member manually stops a blind, the automation shouldn't repeat the same move a moment later. A manual STOP has to trigger a temporary override: for instance, a patio_blind_manual_override timer for 30 to 60 minutes, during which automatic closing doesn't run, while emergency opening still does.

An automation can't retry closing every minute when the blind is frozen, overloaded, the drive is overheating, or the position isn't updating. One failed attempt shouldn't trigger endless further attempts: what's needed is manual intervention and a diagnostic notification.

YAML: safety conditions (the action: format)

Below is a skeleton of conditions for a closing automation: don't turn on the schedule before running the tests from this lesson. Place safety conditions directly before the movement action, and again after every delay. In 2026 HA automations, you write actions as action:, not the older service:.

# Draft: conditions before cover.close_cover (Lesson 13)
conditions:
  - condition: state
    entity_id: input_boolean.blinds_automation_enabled
    state: "on"

  - condition: state
    entity_id: input_boolean.patio_blinds_lockout
    state: "off"

  - condition: state
    entity_id: input_boolean.window_cleaning_mode
    state: "off"

  - condition: state
    entity_id: binary_sensor.patio_door
    state: "off"

  - condition: template
    value_template: >
      {{ states('cover.patio_blind')
         in ['open', 'opening', 'closed', 'closing'] }}

actions:
  - action: cover.close_cover
    target:
      entity_id: cover.patio_blind

Simply sending cover.close_cover doesn't mean the blind actually closed. You can check the entity's state and any error afterward: but don't build protection for people solely on HA's confirmed state.

A demonstration STOP script: run it manually after mounting, under direct observation, with the path of travel clear:

test_stop_patio_blind:
  alias: Patio blind STOP test
  description: >
    Run only after confirming directions, limit switches, and a clear
    path of travel. The user stays by the local STOP button.
  mode: single

  sequence:
    - condition: state
      entity_id: input_boolean.window_cleaning_mode
      state: "off"

    - condition: state
      entity_id: binary_sensor.patio_door
      state: "off"

    - action: cover.close_cover
      target:
        entity_id: cover.patio_blind

    - delay: "00:00:02"

    - action: cover.stop_cover
      target:
        entity_id: cover.patio_blind

The script only tests the STOP command sent through Home Assistant. Separately, test the local button with HA turned off, and test the limit switches. There's no universal safe delay: two seconds could be too long for a small blind. Don't run these tests from a production automation.

Awnings, wind, and weather

An awning presents a much larger surface to the wind than a window blind. Some drives have a factory wind sensor: respect the manufacturer's documentation. Home Assistant and a random weather sensor don't replace the safeguards the awning's manufacturer requires.

An awning follows different logic than a window blind

A plain comfort-automation lockout shouldn't prevent an awning from protectively retracting in dangerous wind. For an awning: wind below the threshold and current data → extending can be considered; wind above the threshold → don't extend; the wind sensor's unknown/unavailable → don't extend automatically.

An internet forecast isn't a lockout. For icing: a temperature below 0°C doesn't prove freezing, and above 0°C doesn't prove there's no ice. Weather automation can only add caution. If you suspect icing, disable the automation and check manually. Don't create a blanket rule like "never move below 0°C": it could block a needed emergency opening. Repeating motion on a frozen slat pack can damage the hangers.

Children, pets, and access to controls

A blind in the app looks like a toy. Hiding the technical entity from a child protects the interface, not the mechanics. A child can use the local button, walk under the blind, put a hand into the guide rail, play with a cord, or trigger a remote.

The layers you need: a drive meeting the manufacturer's requirements, obstacle protection where available, no accessible cord loops, correctly anchored chains, slower automations in a child's room, no automatic movement during playtime, and a local STOP an adult can reach.

For pets, account for a cat in the guide rail, a dog by the patio door, an animal under the awning, a crate near a moving cover, and chains within an animal's reach.

When to deliberately turn automation off

SituationTurn automation off?
Window cleaningYes: window_cleaning_mode
Time spent on the patioYes: patio_blinds_lockout
Servicing or renovation near a windowYes: globally or per blind
Testing after mounting or replacing a moduleYes
A sensor is unavailable / a drive errorYes: a technical lockout
A normal day, tests passed, Lesson 13 doneYou can consider turning automation on

A household member's test

A household member with no knowledge of HA has to be able to: stop the movement locally (with HA off), raise the blind, turn on the patio lockout, recognize an active cleaning mode, and know the app isn't the only STOP. The test includes simulating "I'm sitting on the patio" and "I'm washing a window": without the word "helper" and without pointing to the right tile.

A blinds safety log

Date Blind Limit switches Local STOP STOP from HA Without HA Door sensor Lockout Position Notes
____ Patio OK / fix OK / fix OK / fix OK / fix OK / unavailable OK / fix 0/50/100 ________

What to test after an update or a replacement

Run the same test package after: a module firmware update, an integration change, a coordinator migration, restoring a backup, changing an entity_id, replacing a door sensor, or replacing the module. An update can change direction, calibration, available actions, how position gets reported, and local input behavior.

No movement: what to check first

No movement doesn't automatically mean an HA failure. Don't retry the command in a loop. First check for a mechanical hazard (buzzing, friction, a tilted slat pack). Then: active lockouts, the device state (unavailable), thermal protection, icing, and the guide rails. Only use local control when the path of travel is visible and clear. If you hear buzzing or heavy motion, call for service.

Mechanical upkeep: beyond HA

Once or twice a year, clean the guide rails per the manufacturer's recommendations and check that the slat pack moves freely. If a blind jams mechanically, don't add delays in YAML: fix the guide rails or call for service. Automation masks a poor installation, it doesn't fix it.

Don't turn on automation for every blind at once. Order: one test blind → one floor → the whole house. Once you've finished the tests from this lesson, turning on blinds_automation_enabled alone isn't enough: make sure Lessons 12 and 13 aren't already starting a schedule, turn the helper on while you're watching the blinds, and check the logbook for unexpected calls.

Common mistakes and what not to do

A closing schedule from day one of the install.

Closed door equals empty patio: a door sensor as the sole safeguard.

A patio lockout that also blocks emergency opening.

Treating an HA STOP script as a test of the local Plan B.

Don't turn on blinds_automation_enabled before the checklist and Lesson 13.

Hands-on exercise

☐ I added the patio lockout and window-cleaning-mode helpers.
☐ The helpers don't have a setting that unconditionally turns them off after an HA restart.
☐ The patio door opening automatically turns on the closing lockout.
☐ Closing the door doesn't turn off the lockout without a household member's decision.
☐ I confirmed unknown and unavailable block automatic closing.
☐ The patio lockout doesn't block STOP or manual raising.
☐ Limit switches were checked before calibration.
☐ I verified the 0%, 50%, and 100% positions, if the device supports them.
☐ I tested local STOP with HA turned off.
☐ I tested operation without Wi-Fi or without the coordinator.
☐ A household member can stop and open the blind without help.
☐ I checked behavior after an HA restart and after a power loss.
☐ I flagged patio blinds, awnings, children's rooms, and spots accessible to pets.
☐ Blinds automation is still turned off.

Key takeaways

  • A drive's limit switches, module calibration, and an estimated position are three different things.
  • A door contact sensor doesn't detect a person or an animal on the patio.
  • A door opening can automatically turn on a lockout, but closing it shouldn't turn it off on its own.
  • unknown and unavailable mean there's no permission for automatic closing.
  • A patio lockout must never block STOP or emergency opening.
  • Window-cleaning mode blocks automatic movement but keeps controlled manual control available.
  • A manual STOP has to take priority and temporarily disable further automation attempts.
  • An interlock and limit switches don't replace obstacle detection.
  • A wind sensor in HA doesn't replace the protective system an awning's manufacturer requires.
  • No movement doesn't automatically mean an HA bug. Don't retry commands without checking the mechanics, lockouts, and thermal protection.
  • Blinds automation stays off until the logic from Lesson 13 is built and tested.

In Lesson 8 you'll see cover entities in HA. We build blind schedules using this lesson's conditions in Lesson 13. Record the date of your first full safety test in a notebook: it's your reference point after every major hardware change.

Finished this lesson?