Skip to content
Marao 0.41.0

Access

Access point summary with a popup or configurable inline controls.

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

Saved lock popup

Show the lock state in the header and use the same unlock and lock rows as the automatic popup.

Scroll to load this example.

03

Inline unlock slide

Require a completed deliberate slide.

Scroll to load this example.

04

Safe lock action

Present only an explicit lock action.

Scroll to load this example.

05

Garage door

Open the access sheet for a garage.

Scroll to load this example.

06

Open-only entry

A door advertising only Open receives no Close control.

Scroll to load this example.

07

Script opener

Run a native script opener only after a complete slide.

Scroll to load this example.

08

Risky helper action

A helper action requires the full hold.

Scroll to load this example.

09

Jammed lock

A reported fault is visible.

Scroll to load this example.

10

Loading state

Wait for Home Assistant state before showing controls.

Scroll to load this example.

11

Unknown state

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

Scroll to load this example.

12

Unavailable

The entity is unavailable. No device action is dispatched.

Scroll to load this example.

13

Missing entity

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

Scroll to load this example.

14

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-access-card
entity_id: lock.front_door
variables:
access_mode: popup

Compatible entity domains: lock, cover, button, switch, script, input_boolean, alarm_control_panel.

In Popup settings, choose Unlock slider and lock button for a lock, or Opening slider and close button for a door/garage cover. From Empty, use native Add card to select Marao Access opener and Marao Access close / lock; both are independently configurable. The outer Save/Cancel controls all popup changes.

Tap an Activity icon to inspect recorded events with date and type filters. Optional variables.activity_entities adds explicitly related sources. Automatic Updated and last-activation timestamps move into Activity; timestamp-sensor readings remain data.

To open or unlock, start on the handle and drag it to the end. You can lift your finger outside the card as long as the handle is still near the right end when you release. A vertical start or incomplete slide cancels. To close or lock, tap the corresponding action.

Risky button/switch/helper actions use a 1.2-second hold. Changing presentation must not bypass these interaction rules.

Use these picker entries to place an individual control on a page or in a custom popup.

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 lock, cover, button, switch, script, input_boolean, alarm_control_panel 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.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.access_mode Access behavior select auto Access behavior for this card. Choices: auto, popup, slide, close, hold.
variables.popup_hash Popup hash text Not set Optional link to an existing external popup hash. Omit it to use this card’s automatic details.
variables.action_service Action service text Not set Action service for this card. Searchable suggestions are available.
variables.action_color Action color color Not set Optional action background color; does not change the action’s safety rules.
variables.action_label Action label text Not set Optional visible action label.
variables.action_label_key Action translation key text Not set Optional Marao localization key for the action label. Searchable suggestions are available.
variables.activity_entities Related activity entities json Not set Related activity entities for this card. Searchable suggestions are available.
popup_view Custom popup view text Not set Optional existing view path used for a Home Assistant managed popup layout. Omit for automatic details. 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.
Saved lock popup Show the lock state in the header and use the same unlock and lock rows as the automatic popup.
Inline unlock slide Require a completed deliberate slide.
Safe lock action Present only an explicit lock action.
Garage door Open the access sheet for a garage.
Open-only entry A door advertising only Open receives no Close control.
Script opener Run a native script opener only after a complete slide.
Risky helper action A helper action requires the full hold.
Jammed lock A reported fault is visible.
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.