hd-cover
A window with blinds or curtains, or a garage door, that moves: blinds roll up into the top, curtains bunch at the sides, a sectional garage door rolls up with its light blinking. A new position springs into place (a garage door settles with a thud as it closes); while the motor runs the slats travel, the curtains sway, the garage light blinks. Reduced motion: no travel; e-ink snaps.
| Attribute | What it is |
|---|---|
kind | What covers it.One of blinds, curtains, garage. Default blinds. |
position | How far it is open, 0–1, e.g. {{ cap.windowcoverings_set.value }}. Or a live capability of any device, followed and fitted into its own range: {{ cap.measure_battery }} (0–100) just works. |
moving | The motor: up, down or idle.One of up, down, idle. |
size | Its width (CSS), e.g. 64px; or set --size.Default 64px. |
<hd-cover kind="blinds" position="{{ cap.windowcoverings_set }}" size="64px"></hd-cover><hd-cover kind="curtains" position="{{ cap.windowcoverings_set }}" size="64px"></hd-cover>