feat: add tilt-on-closed cover entity for types 18 and 44
Some checks failed
Validate with hassfest / validate-hassfest (pull_request) Failing after 28s
Lint the code / Lint the code (pull_request) Successful in 12m0s

This commit is contained in:
Richard Mann
2026-04-11 17:57:17 +10:00
parent 354d06b468
commit deee1baad5
2 changed files with 34 additions and 2 deletions

View File

@@ -79,6 +79,7 @@ class ShadeCapability(NamedTuple):
has_tilt: bool = False
tilt_only: bool = False
is_tilt_on_closed: bool = False # tilt only available when fully closed
is_top_down: bool = False # position logic is inverted (SkyLift style)
is_tdbu: bool = False # dual-rail Top Down Bottom Up (needs two entities)
is_duolite: bool = False # dual-fabric sheer+opaque (needs three entities)
@@ -95,8 +96,8 @@ SHADE_CAPABILITIES: Final[dict[int, ShadeCapability]] = {
39: ShadeCapability(has_tilt=True, tilt_only=True),
40: ShadeCapability(has_tilt=True, tilt_only=True),
# tilt on closed (tilt only available at fully closed position)
18: ShadeCapability(has_tilt=True),
44: ShadeCapability(has_tilt=True),
18: ShadeCapability(has_tilt=True, is_tilt_on_closed=True),
44: ShadeCapability(has_tilt=True, is_tilt_on_closed=True),
# top-down only (single rail, inverted position)
7: ShadeCapability(is_top_down=True),
10: ShadeCapability(is_top_down=True),