Skip to content
Marao 0.41.0

Plex library

Browse Continue Watching, Movies and TV Series, then play a title on your selected Apple TV through Plex or Rivulet.

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

Compact library and popup

A compact poster-stack card opens the complete library in a popup.

Scroll to load this example.

02

Full library on dashboard

All three shelves stay visible directly on the dashboard.

Scroll to load this example.

03

Compact card with one shelf failing

Open the popup to inspect and retry the failing Movies shelf.

Scroll to load this example.

04

Compact card with all shelves failing

The opening card remains neutral; its popup shows each shelf’s error separately.

Scroll to load this example.

05

Rivulet playback

Use the same library with Rivulet as the selected Apple TV playback app.

Scroll to load this example.

06

Choose a television

Switch between the named Living room and Bedroom Apple TV mappings.

Scroll to load this example.

07

Empty library

The three shelves explain when there are no titles to show.

Scroll to load this example.

08

One shelf fails

Movies show a readable error while Continue Watching and TV Series remain usable.

Scroll to load this example.

09

Library request fails

A failed fictional request retains an explicit Retry action.

Scroll to load this example.

10

Loading library

Keep loading feedback visible while the fictional request is pending.

Scroll to load this example.

11

Unavailable television

Library browsing remains read-only and playback is disabled for an unavailable TV.

Scroll to load this example.

12

Disconnected

Show a neutral connection problem without issuing playback commands.

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-plex-library-card
entity_id: media_player.living_room
name: Living room Apple TV
apple_tv:
plex:
display: popup
client_entity: media_player.plex
scan_clients_entity: button.plex_scan
app_source: Plex
library_root:
media_content_id: plex://demo-plex/server
media_content_type: server
title: Marao demonstration library

Compatible entity domains: media_player.

Choose Library layout in Plex setup. On dashboard shows the complete library; Popup shows the compact poster card and opens all three shelves in a Marao popup. The compact card contains the TV name, library title, a content reference and poster artwork, with no bottom counters. Existing Plex configurations without this option keep full shelves.

The saved option is apple_tv.plex.display: inline or popup. Shelf request and artwork errors stay inside the affected shelf, each with its own Retry; a failed library request gives each of the three shelves its own error without coloring the entire library red.

Add Plex library from the Home Assistant card picker, select an Apple TV, then open Plex setup. This card browses the library independently of Media player controls. Choose Plex or Rivulet as the Playback app here rather than creating another TV card. With several configured Apple TV cards, the library’s Marao dropdown lets you switch between their named mappings. Opening from a different Apple TV card selects that card’s TV again.

Add Home Assistant’s Plex Media Server integration first. Use the same single Plex server/profile in HA and the selected Apple TV app. For Plex playback, open Plex on the TV once so HA can discover its media-player client. Select that Plex client, the integration’s Scan-clients button, and the exact Plex app source supported by this card’s TV. Choose library folders browses HA’s returned servers; choose Use this server. If Continue Watching discovery is ambiguous, open the appropriate recommendation folder and select Use for Continue Watching. Setup and browsing do not wake a television or change server settings.

The library home has exactly three open shelves: Continue Watching, Movies, and TV Series, in that order. Each shelf scrolls independently with native horizontal touch scrolling and visible Previous/Next controls. Larger portrait covers (about 160 × 240px) have wrapping titles below them; Load more extends that rail without resetting the others. Movie/show shelves merge first-level contents of matching libraries in returned order, using media metadata rather than library names; identical references are deduplicated, while distinct editions remain. Unclassified libraries are checked by their direct children, and failures stay readable alongside usable shelves. No seasons or per-title metadata are fetched until browsing. Tap an episode or movie to resume/play; show and season tiles open their contents. Opening a series from the dashboard keeps the home shelves in place; details inside a media sheet reuse that sheet. Back restores shelf positions and retains the selected TV. Browse library offers the library tree and Recently Added when supplied by Plex. Missing recommendations and empty folders have separate explanations; unavailable artwork uses a neutral poster. Only metadata supplied by HA is shown, so the card does not invent watch-progress percentages. Refresh and Retry are explicit actions; the library does not poll in the background.

One title tap gives strong haptic feedback and wakes an off TV. Plex playback opens Plex and waits up to 30 seconds for its mapped Plex client before sending one playback request. Rivulet playback sends a movie/episode link directly to the selected Apple TV; Rivulet opens and resumes at its saved position. It requires Rivulet with content-link support (confirmed in v1.2.0-122), already signed into the same selected Plex server/profile. The link does not switch servers/profiles. No Plex app launch or client scan is needed for Rivulet playback. Already-satisfied steps are skipped. Changing TV, closing the browser, editing the card or losing the connection cancels subsequent launch steps. Requests already sent to HA cannot be recalled. A readable failure allows an explicit retry; the existing Now playing display remains based on HA reports.

The standalone card owns its inline library or compact popup opener. No Media player card is required. Existing Media player cards with apple_tv.plex keep their owned library and saved settings; no migration or dashboard rewrite occurs. Ordinary app shortcuts keep their existing source-launch action.

For Rivulet, choose your configured server using Choose library folders → Use this server. HA 2026.10 exposes Plex browsing through a registered media-player entity, including inactive session entities. Play something once in Rivulet so HA can discover a session; then use Retry in the card. The card automatically finds an enabled Plex entity for that server, or you can choose a Plex browse entity (optional). That entity supplies library/Continue Watching metadata and never receives Rivulet playback commands. Until discovery, the card shows a setup explanation and retains your real server selection. The official Plex app is not required for Rivulet playback.

The library configuration lives under apple_tv.plex; use the visual folder picker for the returned content references:

type: custom:marao-plex-library-card
entity_id: media_player.example_apple_tv
apple_tv:
plex:
client_entity: media_player.example_plex_client
scan_clients_entity: button.example_plex_scan_clients
app_source: Plex
library_root:
media_content_type: server
media_content_id: plex://example-server/server

For Rivulet, replace the playback-only client/scan/source fields with playback_app: rivulet and keep the selected server reference:

apple_tv:
plex:
playback_app: rivulet
# Optional: any registered Plex entity belonging to this server.
# browse_entity: media_player.example_plex_session
library_root:
media_content_type: server
media_content_id: plex://example-server/server

These IDs are fictional. Missing playback_app retains Plex playback. Missing plex or plex: false shows setup guidance; existing Media cards keep their section disabled; an optional continue_watching object uses the same media_content_type/media_content_id shape. No Plex password or token belongs in this configuration. Credentials and poster authentication stay with HA through its Plex image proxy. This feature does not switch Plex profiles, manage the server/library, edit watch history, manage queues or stream via AirPlay.

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
apple_tv.plex.display Library layout select inline Full shelves (inline) or a compact poster card opening the full library (popup). Omission preserves full shelves. Choices: inline, popup.
entity_id Apple TV entity Not set The Apple TV used for playback. Searchable suggestions are available.
apple_tv.plex.playback_app playback app text Not set Plex (default) or Rivulet.
apple_tv.plex.client_entity client entity text Not set Plex playback client; required for Plex playback.
apple_tv.plex.browse_entity browse entity text Not set Optional Plex metadata entity, including for Rivulet.
apple_tv.plex.scan_clients_entity scan clients entity text Not set Plex scan-clients button; required for Plex playback.
apple_tv.plex.app_source app source text Not set Exact Plex source supported by the Apple TV; required for Plex playback. Searchable suggestions are available.
apple_tv.plex.library_root library root json Not set Server reference selected through Choose library folders.
apple_tv.plex.continue_watching continue watching json Not set Optional same-server folder when automatic discovery is ambiguous.

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
Compact library and popup A compact poster-stack card opens the complete library in a popup.
Full library on dashboard All three shelves stay visible directly on the dashboard.
Compact card with one shelf failing Open the popup to inspect and retry the failing Movies shelf.
Compact card with all shelves failing The opening card remains neutral; its popup shows each shelf’s error separately.
Rivulet playback Use the same library with Rivulet as the selected Apple TV playback app.
Choose a television Switch between the named Living room and Bedroom Apple TV mappings.
Empty library The three shelves explain when there are no titles to show.
One shelf fails Movies show a readable error while Continue Watching and TV Series remain usable.
Library request fails A failed fictional request retains an explicit Retry action.
Loading library Keep loading feedback visible while the fictional request is pending.
Unavailable television Library browsing remains read-only and playback is disabled for an unavailable TV.
Disconnected Show a neutral connection problem without issuing playback commands.

The gallery shows the real Plex library renderer with fictional titles, generated artwork and in-memory browse responses. Playback requests affect only fictional state; they do not play a video or connect to Home Assistant or Plex. Copy YAML exports the standalone Plex library card configuration.

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.