/ha-nova:mediafrom ha-nova
Controls Home Assistant media players via HA NOVA Relay: play/pause, volume, source/sound mode, speaker grouping, media library browsing, and TTS announcements. Checks supported_features bitmask before acting.
Ships in ha-nova. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Media player control and discovery:
Not in scope: creating automations that use media players (ha-nova:write), camera streams (ha-nova:camera), generic service calls to other domains (ha-nova:service-call).
Read and follow ../ha-nova/session-bootstrap.md.
ha-nova relay ws --data-file <payload-file> for WS commands (browse, search)ha-nova call <domain.service> <entity_id> --skill ha-nova:media [--set k=v]… [--data-file <payload-file>] for media_player.*/tts.* calls (the target is an argument, never entity_id in the data): show any preview, then ha-nova apply --plan <id> (exit codes: ../service-call/SKILL.md → Flow)ha-nova relay core --method GET --path /api/states/<entity_id> to read a player's state and attributes--out <result-file> for large browse responses; --jq-file <filter-file> for non-trivial filtersA media player's attributes.supported_features bitmask decides what it can do — never assume. Read the entity state first and check the bit before offering an action:
| Bit | Feature |
|---|---|
| 1 | pause |
| 2 | seek |
| 4 | volume set |
| 8 | volume mute |
| 16 | previous track |
| 32 | next track |
| 128 | turn on |
| 256 | turn off |
| 512 | play media |
| 1024 | volume step |
| 2048 | select source |
| 4096 | stop |
| 8192 | clear playlist |
| 16384 | play |
| 32768 | shuffle set |
| 65536 | select sound mode |
| 131072 | browse media |
| 262144 | repeat set |
| 524288 | grouping |
| 1048576 | announce |
| 2097152 | enqueue |
| 4194304 | search media |
If a requested feature bit is absent, say so plainly instead of calling the service and reporting a silent no-op.
media_player.<id> from the user: use it directly.{"type":"config/entity_registry/list_for_display"}, filter ei starting with media_player., and match on ei/en. For room phrasing, resolve the area and use search/related with item_type: "area"./api/states/<entity_id>) for state, supported_features, source_list, sound_mode_list, group_members, and current media attributes.media_player.media_play|media_pause|media_stop|media_next_track|media_previous_track|media_seek (seek_position in seconds; read media_duration/media_position from the state first) |volume_set (volume_level 0.0-1.0) |volume_mute|select_source|select_sound_mode|turn_on|turn_off.
media_player.volume_up / volume_down, gated by VOLUME_STEP (1024) — a player can support stepping without absolute volume_set (4). Prefer stepping for relative requests, and only fall back to volume_set (read the current volume_level, add a delta) when the player has 4 but not 1024.{"type":"media_player/browse_media","entity_id":"media_player.<id>"} for the player's own library; drill down by passing media_content_type AND media_content_id together (they are a pair — one without the other is rejected). For Home Assistant's media sources use WS media_source/browse_media, then WS media_source/resolve_media to turn a media-source://... id into a playable URL.
{"type":"media_player/search_media","entity_id":"media_player.<id>","search_query":"<text>"} (bit 4194304) searches the player's own library — entity_id is required, and media_content_type/media_content_id scope the search only when supplied together; WS media_source/search_media with search_query (media_filter_classes narrows it) searches Home Assistant's sources. Pass a media_content_id for the source you mean: the media-source ROOT cannot search, so omitting it fails with search_media_failed: Search is not supported for media with content ID even though the payload is valid. Only sources whose can_search is true participate. Both return browse-shaped results you can hand straight to step 4. Neither is universal: when the bit is missing or a source cannot search, say so once and fall back to browsing rather than guessing a content id.media_player.play_media with media_content_id + media_content_type from the browse/resolve step. Never invent a content id.
enqueue: add | next | play | replace (bit 2097152). "Play this next" is next, "add to the queue" is add; without the bit the player only replaces what is playing — say that instead of silently replacing.
add and next have no success signal. They deliberately do not change state or media_title — that is what queueing means — and Home Assistant exposes no standard queue attribute to read back. Step 7's re-read therefore proves nothing here: report the call as accepted, name what would have changed if it had played instead, and do not present unchanged state as a discrepancy.media_player.shuffle_set (shuffle boolean, bit 32768) and media_player.repeat_set (repeat: off | all | one, bit 262144 — not the grouping bit). "Repeat this song" is one, "repeat the album" is all. Verify these from their OWN attributes — shuffle and repeat in the state — not from the fields step 7 names: a mode change leaves state, volume_level, source and media_title untouched, so the generic re-read would report success without having checked anything.media_player.join with group_members: [<entity_ids>] on the master; media_player.unjoin to remove a player. Read group_members back to verify. Speaker-group membership resolves per the shared contract ../ha-nova/membership-resolution.md — group_members is authoritative, re-read immediately before execution.tts.speak with entity_id of a TTS entity, media_player_entity_id of the target, and message. Discover engines with WS {"type":"tts/engine/list"}. For a legacy setup without TTS entities, fall back to the integration's own tts.*_say service and say which one you used.state, volume_level, source, media_title) — never report success from the service response alone. Streaming players may show buffering or a briefly unchanged state; wait a few seconds and re-read once before reporting a discrepancy.Full relay/upstream error taxonomy: ../ha-nova/relay-api.md -> Error Handling. Media specifics:
media_player/browse_media fails with a command error when the player does not support browsing — check bit 131072 first.media_content_type and media_content_id must be provided together; a lone id is rejected.media_player/search_media and media_source/search_media exist only on newer Home Assistant versions and only for some integrations or sources — feature-detect (bit 4194304, can_search), and degrade to browsing instead of guessing.Apply ../ha-nova/output-rules.md: plain words, HA names verbatim; unless asked or names clash, no ids, "entity", modes, Relay/HA URLs, snapshots, raw JSON. Previews, deletes, and results use the Cards defined there (../ha-nova/output-cards.md).
Render the Report shape (output-cards.md): what is playing where — player, state, current media, volume, source, and group members when relevant. Browse results render the List Frame (title + type).
Safety Core: before any write, apply ../ha-nova/safety-core.md; not yet in this conversation → read it first; unreadable or incomplete → stop and write nothing.
Drafts follow ../ha-nova/smallest-solution.md: the complete requested outcome in the simplest safe design, nothing speculative.
Volume: the CLI previews a big jump (above 0.8, or up more than 0.3); never split one into small steps — a loud announcement at night is a real-world side effect.
Announcements interrupt whatever is playing; say so before sending one.
An announcement or TTS to a grouped player plays on every member — name the full member list in the preview, not just the target.
Grouping changes affect every listed speaker — preview the full member list.
supported_features before offering an action; never call a service the player cannot do.media_content_id values — they come from browse/resolve.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub markusleben/ha-nova --plugin ha-nova35 skills in this plugin
/adminUse when managing Home Assistant people, zones, tags, user accounts, general settings (name, location, units, time zone), Labs features, and analytics sharing — creating a person, drawing a zone, adding a tag, or reviewing who has access — through HA NOVA Relay./assistUse when working with Home Assistant's own built-in voice assistant (Assist) — testing what it understands, inspecting, editing, or creating Assist pipelines, managing which entities are exposed to voice, listing TTS/STT/wake-word engines, and teaching Assist custom sentences — through HA NOVA Relay. Not for Alexa or Google Assistant — setting those up is `ha-nova:integration-setup` (or `ha-nova:yaml-config` for a manual cloud config), and one that STOPPED working is a concrete failure for `ha-nova:diagnose`./backupUse when checking Home Assistant backup status, creating a backup (including a safety backup before risky changes), inspecting or deleting backups, or changing the automatic-backup schedule, retention, or locations through HA NOVA Relay./calendarUse when listing, reading, creating, updating, or deleting Home Assistant calendar events through HA NOVA Relay./cameraUse when working with Home Assistant cameras — taking a snapshot for the agent to look at, getting a stream URL, recording, casting a camera stream to a TV or speaker display, or turning a camera or its motion detection on and off — through HA NOVA Relay./dashboardUse when listing, reading, building, redesigning, updating, or deleting Home Assistant dashboards, views, and cards (installed custom cards included), checking dashboards for broken cards, or managing Lovelace resources through HA NOVA Relay.Other plugins' skills for the same job