ha-pixoo-page-author¶
Authors one Divoom Pixoo 64 page — components, special, or native — as spec-conformant pages_data YAML from an information requirement, with a conformance report.
Author one Divoom Pixoo 64 page as spec-conformant YAML for the divoom_pixoo integration's pages_data list — a components page (text/image/rectangle/templatable), a special page (PV/progress_bar/fuel), or a native page (channel/clock/gif/visualizer) — from a described information requirement. Lays out the 64×64 canvas, wires entity-state Jinja templates onto the display, picks fonts/colors/alignment, applies the static pixel-art rules for embedded graphics, and returns a conformance report. Activate on "show my heat-pump power on the Pixoo", "make a Pixoo page with the dishwasher progress", "put the weather and temperature on the Divoom", "zeig mir X auf dem Pixoo als Seite", "bau eine Pixoo-Page für…". Do not activate for detailed pixel-art graphics (ha-pixoo-pixel-art-author), animated/moving displays (ha-pixoo-animation-author), device setup/config flow, or deploying to a live HA instance.
- Plugin:
claude-home-assistant - Phase: 4 Build (
build) - Tags:
home-assistant,divoom-pixoo,display,yaml - Source: skills/ha-pixoo-page-author/SKILL.md
Use when¶
- you want to show entity state or data on the Pixoo as a page
- you want a Pixoo page with progress, power, or weather
- you want a components, special, or native Pixoo page
Don't use when¶
- You need a detailed pixel-art graphic →
ha-pixoo-pixel-art-author - You need a moving or animated display →
ha-pixoo-animation-author
See also¶
Referenced by¶
HA Pixoo Page Author¶
Grounding specs: ha/divoom-pixoo (DE canonical) / en.md, and ha/pixoo-pixel-art for embedded graphics.
Why this is a skill, not an agent¶
- Human-visible authoring surface — the user describes the information they want and reads back the generated
pages_dataYAML and the conformance report; a skill keeps that on the visible command surface, like the siblingha-automation-author. - Mid-flow interactivity — page-type confirmation (components vs. special vs. native) and the layout/entity assumptions are per-run dialogues the user must approve before generation.
- Orchestrator-leaning — dispatched by
ha-pixoo-solution, and may itself defer a graphic slot toha-pixoo-pixel-art-author; the skill-orchestrates default keeps the entry point in skill form. - Counter-dimension considered: the draft→validate loop could be an agent, but the page-type decision and the report belong in the user's working context; skill wins.
When this skill activates¶
Use this skill to author one Pixoo pages_data page from an information requirement: a components page, a special page (PV / progress_bar / fuel), or a native page (channel / clock / gif / visualizer).
When NOT to activate¶
- a detailed pixel-art graphic (shading/contours, illustration, icon) →
ha-pixoo-pixel-art-author - a moving/animated display →
ha-pixoo-animation-author - device setup, discovery, config flow, service reference → using the integration per
ha/divoom-pixoo, not authoring - deploying/importing into a running HA instance → out of scope (generation only)
Hard rules¶
- One page, one type, one run. No multi-page batches.
- Requirement is mandatory. Without a described information need there is no generation; optional fields fall back to documented defaults, stated in the output.
- Read the spec first. Before generating, read
ha/divoom-pixoo(andha/pixoo-pixel-artfor embedded graphics); do not generate from memory. - 64×64 grid discipline. All positions use the top-left origin grid 0…63; content beyond is clipped. Lay out for high contrast and readability per
ha/pixoo-pixel-art. - Templating + guards. Entity states reach the display via Jinja in
content/color/enabled/image fields; guardunavailable/unknown(has_value(),float(default)) so a dead sensor never renders garbage or a false value. - Config-only vs. service.
enabled,duration, and componentvariablesapply only in thepages_dataconfig — never inshow_message. State which context the page targets. - Image-path safety.
image_pathpoints to a stable path (e.g./config/img/…), never the integration's own/config/custom_components/divoom_pixoo/img/folder (overwritten on update). Text renders upper-cased — account for it. - Defer graphics, don't fake them. A detailed illustration/icon slot is delegated to
ha-pixoo-pixel-art-author, not hand-drawn inline here.
Inputs¶
| Field | Required | Default | Notes |
|---|---|---|---|
requirement |
yes | — | The information to display, in prose |
page_type |
no | inferred | components / PV / progress_bar / fuel / channel / clock / gif / visualizer |
entities |
no | asked when needed | source entities for the templated fields |
target_dir |
no | working dir | repo / HA config root |
device_entity |
no | noted | the sensor.<name>_current_page target (for show_message examples) |
If the user is silent on an optional field, use the default but state it explicitly.
Pre-flight (in order — abort on first failure)¶
requirementpresent and non-empty. If not, ask; do not generate.- Resolve
page_type(infer + confirm). - Read the matching spec section(s).
- Confirm the source entities exist / are named, or mark them as placeholders to fill.
Workflow¶
1) Resolve and confirm¶
State the resolved page_type, the intended layout (which field at which position), and every assumed default in one paragraph. Wait for confirmation.
2) Generate¶
Write the page per the spec's MUST rules:
| Type | Load-bearing rules |
|---|---|
components |
each component has type + position; text sets content (templated, upper-cased) with deliberate font/color/align; image uses exactly one source; rectangle for bars/areas; defer rich graphics to ha-pixoo-pixel-art-author |
PV / progress_bar / fuel |
fill the spec's required fields with guarded templates; choose colors within a coherent palette |
channel / clock / visualizer |
provide the device/app id; note that catalogs are device-specific (CurClockId debug method) |
gif |
reference a GIF of exactly 16/32/64 px via gif_url |
3) Validate and report¶
Validate offline (YAML lint; mentally render templates against unavailable/unknown sources; confirm positions fit 64×64). Emit a CONFORMANT / NEEDS-WORK report keyed to the spec's acceptance criteria, plus the written file/path and assumed defaults.
4) No deploy¶
The skill never deploys to a live HA instance. Surface the report and stop.
Boundaries¶
- Detailed pixel-art graphics →
ha-pixoo-pixel-art-author - Animated displays →
ha-pixoo-animation-author - Device/integration setup & services → use per
ha/divoom-pixoo - Multi-artifact requirement →
ha-pixoo-solution - Deploy to live HA → out of scope