Skip to content
Marao 0.41.0

Room shortcut

Open a page and switch off its explicitly selected lights.

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

Climate only

An enabled climate fills the whole card when lights are off.

Scroll to load this example.

03

Lighting only

Off climate contributes no lingering corner.

Scroll to load this example.

04

All lights off

The room retains its navigation target when every selected light is off.

Scroll to load this example.

05

Navigation only

Explicit empty lights and climate keep a plain room shortcut.

Scroll to load this example.

06

One unavailable light

Usable lights remain represented and unavailable members have a neutral problem cue.

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-room-card
name: Living room
icon: mdi:sofa
page: living-room
variables:
light_entities:
- light.living_room
- light.kitchen
climate_entity: climate.living_room

Optional climate_entity associates one climate with a separate off-only control. Reported HVAC mode sets its hue; idle keeps the mode tint, while actual activity determines the active icon. Lighting and climate form a diagonal gradient, with either active source filling the whole surface when alone.

The room background reflects its lights and optional climate. Normal lighting has no additional visible status row. The accessible name retains lighting status.

Choose Follow room page to use the lights placed on that dashboard page for the lighting state and lights-off button. Save a Marao Light, HA Light or light Tile on the page to include it immediately. Clear the page selection to use your manual lights again.

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
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.custom_label Custom state label text Not set Custom state label for this card.
variables.md_label_prefix State label prefix text Not set State label prefix for this card.
variables.card_color Card color color Not set Optional card background color.
variables.active_color Active color color Not set Active color for this card.
variables.light_entities Room lights json Not set Room lights for this card. Searchable suggestions are available.
variables.climate_entity Room climate entity Not set Room climate for this card. Searchable suggestions are available.
light_source_pages Follow room pages json Not set One named view path in a list, for example [“living-room”].
page Destination page text Not set Path of an existing view in this dashboard. Searchable suggestions are available.

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.
Climate only An enabled climate fills the whole card when lights are off.
Lighting only Off climate contributes no lingering corner.
All lights off The room retains its navigation target when every selected light is off.
Navigation only Explicit empty lights and climate keep a plain room shortcut.
One unavailable light Usable lights remain represented and unavailable members have a neutral problem cue.

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.