Lights, Energy and Activity
Toggle the living room light to see its confirmation ring. Tap Energy in the navbar, open its chart and drag across the bars. Activity also has a line chart.
Scroll to load this example.
Floating dashboard navigation, compact overflow and an optional current-room shortcut powered by Bermuda.
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.
Toggle the living room light to see its confirmation ring. Tap Energy in the navbar, open its chart and drag across the bars. Activity also has a line chart.
Scroll to load this example.
Legacy preview: Alex is home in the Living room.
Scroll to load this example.
The fixed first slot follows a configured area.
Scroll to load this example.
Legacy person tracking uses Away even if its room sensor is stale.
Scroll to load this example.
Keep a neutral placeholder when the room is unknown.
Scroll to load this example.
Do not guess a destination for an unmapped area.
Scroll to load this example.
Keep every entry available through More.
Scroll to load this example.
Omit the current-room slot when the feature is disabled.
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…
For an ordinary Home Assistant dashboard, put the routes and current_room options under marao.navbar in dashboard configuration. Do not add a navbar card to every view. The playground previews the standalone runtime and its Copy YAML button exports the dashboard settings block. The runtime example below explains the same options.
type: custom:marao-navbar-carddashboard_root: marao-dashboardroutes: - path: /marao-dashboard/home label: Home icon: mdi:home - path: /marao-dashboard/living-room label: Living room icon: mdi:sofa - path: /marao-dashboard/kitchen label: Kitchen icon: mdi:silverware-fork-knifecurrent_room: enabled: true people: person.alex: area_sensor: sensor.alex_area person.sam: area_sensor: sensor.sam_area rooms: living_room: path: /marao-dashboard/living-room kitchen: path: /marao-dashboard/kitchen away_path: /marao-dashboard/awayOrdinary dashboards configure navigation once in the top-level marao.navbar block. The standalone card shown here exposes the same runtime for the demonstration; do not add one per view.
Choose Marao settings → Current room → This browser → Area sensor for this browser to follow a sensor directly without a person. Different browsers/devices sharing one HA account can select different sensors. The choice is browser-local, separate from the YAML below; see navigation setup for persistence and reset behavior. Existing person mappings and Automatic remain available as explicitly labelled legacy tracking.
Bermuda room resolution uses the configured area sensor’s area_id. It does not infer rooms from display names or last_seen.
A missing, unknown, unmapped or unavailable room retains a disabled away-style slot so navigation does not move. Only legacy person tracking uses presence and the optional configured Away page; direct sensor mode stays neutral when its own reading is missing.
All configured entries remain reachable. A rightmost More control opens vertical overflow when the row is full.
An invisible touch barrier covers the full screen width from the navbar’s top edge to the bottom. Only navbar controls respond in that strip; cards behind it cannot be tapped or scrolled. Open popups remain interactive above it.
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 |
|---|---|---|---|---|
routes |
Navigation entries | json | Not set | Ordered routes with path, label and icon. |
current_room |
Current room settings | json | Not set | Optional enabled flag, person-to-area-sensor mapping, area-to-view mapping and away_path. |
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 |
|---|---|
| Lights, Energy and Activity | Toggle the living room light to see its confirmation ring. Tap Energy in the navbar, open its chart and drag across the bars. Activity also has a line chart. |
| Current room | Legacy preview: Alex is home in the Living room. |
| Another room | The fixed first slot follows a configured area. |
| Away page | Legacy person tracking uses Away even if its room sensor is stale. |
| Unknown room | Keep a neutral placeholder when the room is unknown. |
| Unmapped room | Do not guess a destination for an unmapped area. |
| Many entries | Keep every entry available through More. |
| Navigation only | Omit the current-room slot when the feature is disabled. |
The signed-in account and browser-local identity choice are fictional in this isolated preview. Copy the routes/current_room fields into marao.navbar in your dashboard settings.
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.