Skip to content

Hugo0485/DoubleCurtainCard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Double Curtain Card

Buy me a beer Last commit Downloads Version Home Assistant Community

Double curtain

Double Curtain Card is a compact Lovelace card to control two curtain covers (left & right) from a single UI.

Highlights

  • Dual sliders with live position (0–100)
  • Percentage shown below each slider
  • Optional preset per side (hidden when left empty)
  • Open All / Close All buttons
  • Per-side invert
  • Optional blink during movement (toggle)
  • Sends service on release
  • Simple GUI editor (entity pickers, toggles, numbers)

🚀 Installation

Open in HACS (recommended)

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

HACS manual configuration (custom repository)
  1. Open HACS in Home Assistant.
  2. Click Custom repositories.
  3. Add: https://github.com/Hugo0485/DoubleCurtainCard.git — Category: Plugin.
  4. Search for Double Curtain CardInstall.
  5. Ensure the resource URL is /hacsfiles/double-curtain-card/double-curtain-card.js (HACS sets this automatically for frontend plugins).
Manual installation (without HACS)
  1. Download the latest build:
    double-curtain-card.js
  2. Put it in <config>/www/.
  3. Go to Settings → Dashboards → Resources and add:
    • URL: /local/double-curtain-card.js
    • Resource type: JavaScript module
  4. Reload your browser and add the card to your dashboard.

⚡ Quickstart

Add via GUI (recommended)

  1. Open your dashboard → EditAdd card.
  2. Search for Double Curtain Card and select it.
  3. In the visual editor, set:
    • Name (card title)
    • Left entity → your left curtain cover.*
    • Right entity → your right curtain cover.*
    • Left label / Right label
    • (Optional) Left fixed position / Right fixed position (0–100).
      If left empty, the corresponding button is hidden.
    • (Optional) Choose your own MDI for fixed positions ).
    • (Optional) Invert left / Invert right
    • (Optional) Blink while moving(toggles the blink animation during movement)
  4. Click Save.

The GUI editor mirrors the YAML options below. You can switch to YAML at any time.

type: custom:double-curtain-card
name: Living Room Curtains
left_entity: cover.curtain_left
right_entity: cover.curtain_right
left_label: left curtain
right_label: right curtain

# Optional behavior flags
left_fixed_position: 10 # If there's no value buttons will disappear 
right_fixed_position: 10 # If there's no value buttons will disappear 
left_fixed_icon: mdi:crosshairs-gps # choose your own mdi
right_fixed_icon: mdi:crosshairs-gps # choose your own mdi
invert_left: false
invert_right: false
blink_motion: true

Configuration

Name Type Default Description
name string Card title shown at the top
left_label string Optional label shown for the left side
left_entity string required Cover entity for the left curtain
left_fixed_position: number Position (0–100) for the left Fixed poition button; hidden if not provided
left_fixed_icon: MDI Choose MDI icon for the left fixed position button
invert_left boolean false Invert open/close logic for the left slider
right_label string Optional label shown for the right side
right_entity string required Cover entity for the right curtain
right_fixed_position: number Position (0–100) for the right Fixed poition button; hidden if not provided
right_fixed_icon: MDI Choose MDI icon for the right fixed position button
invert_right boolean false Invert open/close logic for the right slider
blink_motion boolean true Turn on/off blink functionality

About

Double curtain card for home assistant

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors