Local input boolean¶
A local input boolean is a local on/off value that can be used by the card like an entity state. It is useful for choices that only affect the card, such as showing labels, enabling a grid, or revealing an extra layer, without creating a Home Assistant helper.
A local input boolean is not created in Home Assistant. Its entity ID must start with fhs_input_boolean., which tells the card to create and manage the value locally.
This page shows how to define the boolean, control it, use its on/off state elsewhere in the card, and optionally keep the value after a reload.
Add an on/off value¶
Use a local boolean when the card needs to remember a local true/false choice without a Home Assistant helper.
The state is exposed as on or off.
Change it with a Toggle¶
A Toggle is the direct visual control for changing a local boolean between on and off.
Use the value in the card¶
This example only shows a Text item while the input is on:
Change the value from an action¶
Available actions:
| Action | Result |
|---|---|
fhs_input_boolean.toggle | Toggles on/off |
fhs_input_boolean.turn_on | Sets on |
fhs_input_boolean.turn_off | Sets off |
Share or persist the value¶
Use scope: global to share the value with other cards in this Home Assistant client. Add persist: true to restore a global value after reloading.
Configuration options¶
Required applies to the specific form described by that table: Yes means you need the field for that form; No means you can leave it out. Not set means the card adds no explicit value when the option is omitted.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
entity | string | Yes | — | Unique ID starting with fhs_input_boolean.. |
initial | boolean | No | false / off | Value used when the local input is first created; omit it to start in the off state. |
scope | card, global | No | card | card keeps a separate value per card; global shares the value between cards in this Home Assistant client. |
persist | boolean | No | false | Restores the value after a client reload; it can only be enabled with scope: global. |
name | string | No | Entity ID suffix | Display name exposed by the local entity. |
icon | string | No | mdi:toggle-switch | Icon exposed by the local entity. |
tap_action | action | No | none | Default tap action inherited by a layout item that uses this local entity and does not define its own tap action. |