Built a Lovelace card for driveway gates, designed around a setup I think is pretty common: the command channel and the state channel are two different things. My gate is driven by an RF impulse (AirSend relay) exposed as a cover, but the cover’s own state is unreliable — the real position comes from separate open/closed sensors consolidated into an input_select. This card sends commands to the cover but displays the trustworthy consolidated state, so you’re never guessing.
Features:
- Two gate types: sliding (single leaf on a rail) or swing (two leaves on hinges), with an animated illustration following the state
- State normalization — maps whatever wording your state entity reports (closed/fermé/ouverture/opening…) to a common vocabulary, accent-insensitive, with an optional explicit override
- Safe contextual buttons: only the command that makes sense is shown, and nothing while moving (an extra impulse on an RF gate stops or reverses it)
- Built-in two-tap confirmation
- Multilingual: English, French, German, Spanish, Italian, Dutch
GitHub: GitHub - ADNPolymerase/ha-gate-card: Home Assistant Lovelace card for gates: consolidated real state, per-state colors, animated illustration (sliding or swing) and safe contextual commands · GitHub
HACS custom repo, store submission pending.
Feedback welcome, especially on other gate/portal setups I haven’t accounted for.
More of my Home Assistant projects: ADNPolymerase — Home Assistant Projects
