# Alarm Arm modes as tiles and the keypad sheet for codes. `custom:fluvy-alarm-card` · [Try it live](https://acosta290.github.io/fluvy/?card=alarm) · [All cards](../cards.md#everyday) The Alarm card, drawn from the example below ## Example ```yaml type: custom:fluvy-alarm-card entity: alarm_control_panel.house rows: - binary_sensor.living_motion - binary_sensor.back_door ``` The picture above, on the demo house: put your own entities in place of its. ## Layouts `variant` chooses the layout. The picture above is `tiles`, the default; each of the others is the example plus the line over it, and opens in the live demo.
variant: compact
The Alarm card in its compact layout
## All options ```yaml type: custom:fluvy-alarm-card entity: alarm_control_panel.house # name: # icon: show_icon: auto show_badge: true name_lines: 1 # subtitle: variant: tiles # modes: show_rows: true rows: - binary_sensor.living_motion - binary_sensor.back_door # tone: # color: # card_color: # card_opacity: 100 # card_border: true # unavailable: dashed # tint: 'off' # state_colors: # tap_action: # action: more-info # hold_action: # action: more-info # double_tap_action: # action: none # icon_tap_action: # action: none # icon_hold_action: # action: none # icon_double_tap_action: # action: none ``` ## Options | Option | Default | What it does | | --- | --- | --- | | `entity` | **required** | The entity the card is about: what it shows, and what its controls act on. An `alarm_control_panel`. | | `name` | | The name the card shows, in place of the entity’s own. | | `icon` | | The card’s icon, in place of the entity’s own. | | `subtitle` | | The line under the title: your own words, an entity’s state or a template. | | `variant` | `tiles` | The card’s layout. `tiles` · `compact`. | | `modes` | what the device offers | The modes the card offers, in this order; left out, every mode the device has. Any of `disarm` · `arm_home` (Home) · `arm_away` (Away) · `arm_night` (Night) · `arm_vacation` (Vacation) · `arm_custom_bypass` (Custom). | | `show_rows` | `true` | Shows the rows under the main control. | | `tint` | `off` | When the card shows its colour beyond its circle: never, while it is on or active, or at rest too. `off` (Never) · `on` (When active) · `always`. | | `tint_style` | `wash` | How the colour is shown: a wash over the card, the card’s edge, or the control alone. `wash` · `edge` · `control`. | | `state_colors` | | A colour for each of the device’s states, held under this key: a tone, none, or a colour of your own. Its keys: `disarmed` · `armed_home` · `armed_away` · `armed_night` · `armed_vacation` · `armed_custom_bypass` · `arming` · `pending` · `triggered`. | | [`rows`](#rows) | | Rows of other entities under the alarm’s modes, such as its sensors. A list: [its items](#rows). |
Its look and its actions, as on every card | Option | Default | What it does | | --- | --- | --- | | `show_icon` | `auto` | Shows the icon, hides it, or lets the card decide. `auto` · `always` · `never`. | | `show_badge` | `true` | Shows the badge at the end of the head, such as the card’s state or a count. | | `name_lines` | `1` | Lets the name in the card’s head take two balanced lines where one would cut it; the head is a line taller whatever the name. `1` · `2`. | | `tone` | the card’s own | The card’s colour from the palette’s tones; left out, the tone of what it shows. `accent` · `light` · `heat` · `cool` · `dry` · `fan` · `water` · `solar` · `grid` · `media` · `presence` · `armed` · `battery` · `house` · `gas` · `vehicle` (Car) · `neutral` · `ok` (Good) · `warning` · `danger`. | | `color` | | The card’s colour: its circle, its accents and its tints wear it. Left out, the colour of what it shows. | | `card_color` | | Paints the card’s surface in a colour of your own. | | `card_opacity` | `100` | How solid the card’s surface is, in percent: under 100 the view’s background shows through. Left out, the house’s. 0 % to 100 %, in steps of 5. | | `card_border` | `true` | Whether the card draws its hairline border. Left out, the house’s. | | `unavailable` | `dashed` | How the card looks while its entity is unavailable: dashed, or quiet as when it is off. Left out, the house’s. `dashed` · `quiet` (As when off). | | **Interactions** | | | | `tap_action` | `more-info` | What a tap on the card does. | | `hold_action` | `more-info` | What a long press on the card does. | | `double_tap_action` | `none` | What two taps on the card do. | | `icon_tap_action` | `none` | What a tap on the icon does. | | `icon_hold_action` | `none` | What a long press on the icon does. | | `icon_double_tap_action` | `none` | What two taps on the icon do. | More about them in [Options every card takes](../customising.md#options-every-card-takes).
## Lists ### `rows` An item is an entity id, or a map with `entity` and any of these fields. | Field | What it does | | --- | --- | | `entity` | The entity the item shows. | | `name` | The item’s own name, in place of the one the card would give it. | | `icon` | The item’s own icon, in place of the one the card would give it. | | `secondary` | The line under the item’s name. `area` · `last-changed` · `state` · `none`, or your own. | | `since` | Where the time of the last change is read from. | | `options` | The select’s options offered, in this order. A list. | | `labels` | Names of your own for the options. | | `tone` | The item’s colour from the palette’s tones. `accent` · `light` · `heat` · `cool` · `dry` · `fan` · `water` · `solar` · `grid` · `media` · `presence` · `armed` · `battery` · `house` · `gas` · `vehicle` (Car) · `neutral` · `ok` (Good) · `warning` · `danger`. | | `color` | The item’s colour, in place of the one the card gives it. | | **Interactions** | | | `tap_action` | What a tap on the item does. | | `hold_action` | What a long press on the item does. | | `double_tap_action` | What two taps on the item do. |
Older names the card still reads | Older name | Read as | | --- | --- | | `rows[].label` | `rows[].name` | | `rows[].sub` | `rows[].secondary` | | `rows[].meta` | `rows[].subtitle` | | `sub` | `subtitle` | | `meta` | `subtitle` | | `layout` | `variant` | | `view` | `variant` | | `accent` | `color` |