Skip to content
Marao 0.41.0

Fan / exhaust valve

Control fan speed or cover-backed exhaust opening with native commands.

REAL MARAO CARDS

Card behaviors

Scroll through the real card’s behaviors using fictional data. Open its details to inspect the real popup. Offscreen examples reset when reloaded.

The documentation theme applies to every example. Use the playground below to edit configuration.

01

Default

Try the configured card with fictional devices.

Scroll to load this example.

02

Fan off

The control can turn the fan on.

Scroll to load this example.

03

On/off fan

A fan without percentage control has no speed slider.

Scroll to load this example.

04

Slider hidden

Explicitly hide the speed control.

Scroll to load this example.

05

Positionable exhaust valve

A damper exposes Open/Close and its supported position slider.

Scroll to load this example.

06

Binary exhaust valve

Open/Close remain visible without a position slider.

Scroll to load this example.

07

Open-only exhaust

A device advertising only Open receives only that action.

Scroll to load this example.

08

Loading state

Wait for Home Assistant state before showing controls.

Scroll to load this example.

09

Unknown state

The entity exists but has no known state. Controls remain neutral and disabled.

Scroll to load this example.

10

Unavailable

The entity is unavailable. No device action is dispatched.

Scroll to load this example.

11

Missing entity

A removed entity produces an explicit neutral missing-state result.

Scroll to load this example.

12

Disconnected

Controls refuse actions when Home Assistant is disconnected.

Scroll to load this example.

Try the card below. Select Open playground to choose a behavior or edit settings and YAML. Everything in the preview uses fictional devices. Copy YAML exports the card configuration, without demonstration states or service responses.

Loading preview…

In Home Assistant, choose Edit dashboard → Add card → Manual, then paste the YAML below. Replace fictional entity IDs with your own. You can also find the card in Home Assistant’s card picker and use its native editor.

type: custom:marao-fan-card
entity_id: fan.bedroom
variables:
enable_slider: true

Compatible entity domains: fan, cover.

Cover-backed ventilation shares confirmed-only position smoothing; ordinary fan speed and light brightness remain immediate.

Fan supports percentage speed when advertised by the entity. Ordinary cover dampers can use the same card as an exhaust valve.

Exhaust Open and Close use distinct expand/collapse icons. Access covers such as garages remain Access cards.

The table lists the shared catalog fields and this card’s structured options. Not set means the example does not impose a value; Home Assistant and Marao use the entity’s capabilities and the card’s normal behavior. Structured values remain editable as YAML.

YAML path Setting Value type Catalog default Behavior
entity_id Entity entity Not set A fan, cover entity from your Home Assistant. Searchable suggestions are available.
name Name text Not set Optional display name; otherwise use the entity’s friendly name.
icon Icon icon Not set Optional icon name such as mdi:lightbulb-outline. Searchable suggestions are available.
show_name Show name boolean Not set Optional native card appearance setting. Normal availability warnings remain visible.
show_icon Show icon boolean Not set Optional native card appearance setting. Normal availability warnings remain visible.
show_state Show state boolean Not set Optional native card appearance setting. Normal availability warnings remain visible.
show_label Show label boolean Not set Optional native card appearance setting. Normal availability warnings remain visible.
tap_action tap action json Not set Configure through Home Assistant’s native action selector. Role and access safety checks still apply.
hold_action hold action json Not set Configure through Home Assistant’s native action selector. Role and access safety checks still apply.
double_tap_action double tap action json Not set Configure through Home Assistant’s native action selector. Role and access safety checks still apply.
variables.md_label_prefix State label prefix text Not set State label prefix for this card.
variables.active_color Active color color Not set Active color for this card.
variables.enable_slider Speed slider boolean true Speed slider for this card.
variables.card_color Card color color Not set Optional card background color.
variables.custom_label Label prefix text Not set Binary state is shown by the card and icon. Prefix-only labels are omitted; useful labels and readings remain.

Select Open playground, then choose a scenario to inspect its configuration and reported device state. Similar numeric or color values do not need separate examples.

Scenario What it demonstrates
Default Try the configured card with fictional devices.
Fan off The control can turn the fan on.
On/off fan A fan without percentage control has no speed slider.
Slider hidden Explicitly hide the speed control.
Positionable exhaust valve A damper exposes Open/Close and its supported position slider.
Binary exhaust valve Open/Close remain visible without a position slider.
Open-only exhaust A device advertising only Open receives only that action.
Loading state Wait for Home Assistant state before showing controls.
Unknown state The entity exists but has no known state. Controls remain neutral and disabled.
Unavailable The entity is unavailable. No device action is dispatched.
Missing entity A removed entity produces an explicit neutral missing-state result.
Disconnected Controls refuse actions when Home Assistant is disconnected.

Home Assistant owns card sizing, sections and visibility. Marao controls retain their touch targets and capability checks. Unknown, unavailable or disconnected entities use neutral presentation and disable unsafe actions. See layouts and popups and shared interactions.