This blueprint adds a configurable 5-240 minute auto-off to the Samotech smart pull cord dimmer (the only smart pull cord dimmer in production for UK Zone 2 bathrooms). The pull cord stays on indefinitely if you want it to, but the blueprint will turn it off automatically after the configured delay.
Import
Or paste this raw URL into Settings → Automations & Scenes → Blueprints → Import Blueprint:
https://raw.githubusercontent.com/samotech-ltd/home-assistant-blueprints/main/samotech-pull-cord-bathroom-auto-off.yaml
What it does
When the pull cord turns the light on, a timer starts. If the light is still on after the configured duration (default 30 minutes), the blueprint turns it off automatically. If someone pulls the cord again to turn it off manually before the timer expires, the timer cancels cleanly - no zombie schedules.
Useful for:
- Bathrooms where children/guests leave the light on accidentally
- Cloakrooms with no occupancy sensor
- Garages or sheds with a single pull cord and no smart sensor budget
Why a pull cord at all (UK Zone 2 context)
UK bathroom electrical Zone 2 (BS 7671) does not permit a switched live, only pull cords. Until the Samotech pull cord dimmer existed, your only options were:
- Dumb pull cord (no smart control, no auto-off)
- Outside the bathroom (defeats the purpose of a bathroom light switch)
- Voice/app only (impractical in showers/bath)
The Samotech pull cord dimmer is the only Zigbee smart product certified for this use case - and this blueprint adds the missing auto-off behaviour.
Requirements
- Home Assistant 2024.6 or newer
- ZHA or Zigbee2MQTT
- Samotech smart pull cord dimmer paired
- BS 7671 Zone 2 compliant installation (consult an electrician if you're not sure)
Configuration
- Pull cord device — the Samotech entity
- Auto-off delay — minutes (default 30, range 5-240)
- Reset on manual off — if true, cancels timer when pull cord is manually toggled off before timer expires (default true)
Source & full guide
- Blueprint repo: samotech-ltd/home-assistant-blueprints
- Full UK wiring guide: Samotech Pull Cord Bathroom Auto-Off guide
Feedback welcome
If you're running a Samotech pull cord in a UK bathroom and want extra features (motion sensor combo, time-of-day variation, etc.), reply here.