ha-appliance-electromenager-cards

Barrier, sliding gate, swing gate, garage door

custom:appliance-barrier-card · custom:appliance-sliding-gate-card · custom:appliance-swing-gate-card · custom:appliance-garage-door-card

Four cards for motorised access, no background:

States: open, closed, opening, closing, partly open (current_position between 1 and 99) and unavailable. The orange beacon flashes while moving, or as soon as the motor draws more than moving_threshold. Unknown (the cover reports unknown, e.g. a gate or shutter without position feedback, or only entity_open / entity_close / entity_stop configured without entity): the status badge is hidden and the Open / Stop / Close buttons stay usable; only unavailable disables them.

The movement lasts as long as the real motor (travel_time). The buttons act on the illustration immediately: Open / Close start the movement without waiting for the gate to report it, Stop freezes the drawing where it is (shown as partially open), and the real state takes over as soon as it changes. With a cover that reports current_position, the illustration follows the position and the transitions smooth out the updates. Without it, the drawing goes from one end to the other in travel_time when the cover switches to opening or closing.

Buttons: Open / Stop / Close for a cover (Stop is hidden when the cover does not support it), or a single Command button for an impulse entity (entity_control: button, input_button, script, switch…). Tapping the illustration opens the entity’s more-info dialog.

Options

Every value tile can be hidden with its show_… option, and language: fr|en|de|it|es|nb|nl|pl|ro|ru|sr|sr-Latn forces the language.

Examples

type: custom:appliance-garage-door-card
name: Garage
entity: cover.garage_door
entity_power: sensor.garage_plug_power
entity_energy: sensor.garage_plug_energy
price_per_kwh: 0.2516
travel_time: 14
type: custom:appliance-swing-gate-card
name: Front gate
entity: binary_sensor.gate_contact   # on = open
entity_control: button.gate_impulse  # dry contact of the motor
entity_power: sensor.gate_power
leaves: 2
travel_time: 18

← All cards

Double dry contact (separate open and close commands):

type: custom:appliance-sliding-gate-card
entity: binary_sensor.portail_ouvert
entity_open: button.portail_ouverture
entity_close: button.portail_fermeture
entity_pedestrian: script.portail_pieton