# Helpers Numbers, selects, texts, booleans and dates as their own controls. `custom:fluvy-helpers-card` · [Try it live](https://acosta290.github.io/fluvy/?card=helpers) · [All cards](../cards.md#scenes-actions-and-helpers) The Helpers card, drawn from the example below ## Example ```yaml type: custom:fluvy-helpers-card title: Helpers subtitle: Living room · 4 inputs tap_action: action: navigate navigation_path: /config/helpers rows: - entity: input_number.brightness secondary: Living room lights - entity: input_select.house_mode secondary: '' - entity: input_text.welcome secondary: Shown on arrival - entity: input_boolean.guest icon: moon secondary: Since Monday ``` The picture above, on the demo house: put your own entities in place of its. ## All options ```yaml type: custom:fluvy-helpers-card title: Helpers subtitle: Living room · 4 inputs # icon: options_style: full show_icon: auto name_lines: 1 slider_style: house # tone: # color: # card_color: # card_opacity: 100 # card_border: true # unavailable: dashed rows: - entity: input_number.brightness secondary: Living room lights - entity: input_select.house_mode secondary: '' - entity: input_text.welcome secondary: Shown on arrival - entity: input_boolean.guest icon: moon secondary: Since Monday names: full # empty_text: hide_empty: false tap_action: action: navigate navigation_path: /config/helpers # hold_action: # action: none # 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 | | --- | --- | --- | | `title` | | The title at the top of the card. | | `subtitle` | | The line under the title: your own words, an entity’s state or a template. | | `icon` | | The card’s icon, in place of the entity’s own. | | `options_style` | `full` | Draws a select’s options as chips that fill the row, or as content-sized chips. `full` · `chips`. | | `slider_style` | `house` | The slider’s style; left out, the style set for every slider. `house` · `ruler` · `bar` · `liquid`. | | `slider_words` | `ends` | Writes the words at the slider’s ends, or none. `ends` · `none`. | | `names` | `full` | How a row is named where it has no name of its own: the entity’s full name, its own, or its device’s. `full` · `entity` · `device`. | | `empty_text` | | What the card says while it has nothing to show. | | `hide_empty` | `false` | Hides the whole card while it has nothing to show. | | [`rows`](#rows) | | The helpers the card sets, a row each. 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`. | | `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` | `none` | What a tap on the card does. | | `hold_action` | `none` | 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. | | `since` | Where the time of the last change is read from. | | `presets` | Times offered as chips to set the helper with. A list. | | `options` | The select’s options offered, in this order. A list. | | `display` | Draws a select’s options as chips, or as a dropdown. `auto` · `chips` · `dropdown`. | | `labels` | Names of your own for the options. | ## Guide ![A select of thirty oven modes opened as a dropdown, and selects of a few options as chips](../images/1.13/dropdown.webp) Each helper is drawn as its own control: a number with its −, + and ruler, a text as its field, a switch, a date or a time, a button as a row, and a select as chips. A select of more than six options opens a dropdown instead. ```yaml type: custom:fluvy-helpers-card rows: - entity: select.oven_cooking_mode name: Upper zone options: [conventional, fan_conventional, grill, pizza] # four of thirty, in this order: chips - entity: select.tv_picture_mode display: dropdown # auto (chips up to six), chips or dropdown labels: gen_589828: AI Mode # words of your own for a raw option ``` - `options` offers a part of the select's options, in your order. Options the select does not list are left out. - In the dropdown, the arrow keys and Enter choose, a letter jumps to the next name, Escape closes it unchanged. A select's row on the Entities card, and among the lock, alarm and camera cards' rows, opens the same dropdown and takes the same `options` and `labels`: ```yaml type: custom:fluvy-entities-card rows: - entity: select.oven_cooking_mode options: [conventional, fan_conventional, grill, pizza] labels: fan_conventional: Fan oven ``` A row with a `tap_action` of its own keeps it, and still shows its value in its `labels`.
Older names the card still reads | Older name | Read as | | --- | --- | | `entities` | `rows` | | `rows[].label` | `rows[].name` | | `rows[].sub` | `rows[].secondary` | | `rows[].meta` | `rows[].subtitle` | | `sub` | `subtitle` | | `meta` | `subtitle` | | `accent` | `color` |