19 Commits
Author SHA1 Message Date
rick 7493721d4a Merge branch 'impl/perfectdraft-card' v0.1.3 2026-04-18 19:34:54 +02:00
rick 6de5f6a960 Scale up elements, label zone to ~1/4 width (v0.1.3)
- Label zone: 1/4 width (was 1/3), keg zone gets 3/4
- Beer logo: flex-grows to fill space, 80% width
- Temperature: 3em, beer name: 1.6em, count label: 1.3em
- Emoji grid: min(4.5vw, 3.5em) auto-scales to fill zone
- All elements sized up for NSPanel Pro readability

Made-with: Cursor
2026-04-18 19:34:47 +02:00
rick 42147366ae Merge branch 'impl/perfectdraft-card' v0.1.2 2026-04-18 19:07:50 +02:00
rick 63be469bb2 Emoji grid with fixed slots, Leffe Noël alias (v0.1.2)
- Emoji grid now uses CSS Grid with fixed max-glass slots per size
  (e.g., 6x3 for 330mL). Empty slots shown as faded greyed-out emojis.
- Added Leffe Noël as alias for Leffe Winter (same beer, French name)
- Bumped editor version to 0.1.2

Made-with: Cursor
2026-04-18 19:07:44 +02:00
rick 9e60ce7d6f Merge branch 'impl/perfectdraft-card' v0.1.0 v0.1.1 2026-04-18 18:59:50 +02:00
rick 6a1d9fd08f Add version marker to editor for debugging cache issues
Made-with: Cursor
2026-04-18 18:59:45 +02:00
rick ce1d17dc03 Merge branch 'impl/perfectdraft-card' 2026-04-18 18:54:30 +02:00
rick c69f39450a Fix device discovery to use HA entity registry instead of entity ID patterns
Entity IDs don't contain "perfectdraft" — they use the user-chosen
device name (e.g., sensor.balcony_tap_1). The editor and card now
use hass.entities registry to find devices by platform === "perfectdraft"
and resolve sensors by their translation_key (temperature, keg_remaining,
keg_freshness) instead of entity ID suffixes.

Made-with: Cursor
2026-04-18 18:54:25 +02:00
rick 1e2f16cbef Merge branch 'impl/perfectdraft-card' 2026-04-18 18:40:18 +02:00
rick 8a6cce3c9e Add dist/ to repo for HACS compatibility
HACS plugin repos need the built JS and assets accessible on the
default branch. Un-ignored dist/ and committed build output:
- dist/perfectdraft-card.js (51KB)
- dist/kegs/*.png (72 keg product images)

Made-with: Cursor
2026-04-18 18:40:13 +02:00
rick 756a94663d Merge branch 'impl/perfectdraft-card' 2026-04-18 18:36:29 +02:00
rick 69df3d97dc Add local keg product images and expand beer catalog to 72 beers
Downloaded all single-keg PerfectDraft product images (nominative use
for product identification). 72 beers across European and US markets.
Card resolves image paths relative to its own install location at
runtime, supporting both HACS and manual install paths.

Made-with: Cursor
2026-04-18 18:36:22 +02:00
rick 7a8883ff1e Merge branch 'impl/perfectdraft-card' 2026-04-18 18:21:22 +02:00
rick 4efc8e9669 Refine license wording — human input insufficient for substantial originality
Made-with: Cursor
2026-04-18 18:21:22 +02:00
rick 6a876fa15f Merge branch 'impl/perfectdraft-card' 2026-04-18 18:20:40 +02:00
rick 1732c143a0 Mark license as unapplicable — AI-generated, no human authorship
Made-with: Cursor
2026-04-18 18:20:35 +02:00
rick 73ae584c8b Update task progress: 65/73 tasks complete
Remaining: beer logo images (4.2), GitHub topics (12.5), and
manual testing tasks (11.8, 12.6, 13.2-13.4)

Made-with: Cursor
2026-04-18 18:19:22 +02:00
rick 58733653dd Implement PerfectDraft custom card v0.1.0
Full Lovelace card implementation:
- Two-zone layout (beer label left, emoji pictogram right)
- 45-beer catalog with brand color palettes
- Glass size selection dialog (250/330/500/UK pint/US pint)
- Beer selection dialog with search filtering
- Freshness warning system (CSS-only animations, 4 tiers)
- Empty keg disaster scene
- Visual card editor with device auto-discovery
- HACS-compatible packaging (hacs.json, README, dist/ output)
- 44KB bundle, under 50KB budget

Made-with: Cursor
2026-04-18 18:19:09 +02:00
rick faca00f4ab Initial commit: OpenSpec proposal for PerfectDraft custom card
Spec-driven change `perfectdraft-card` with proposal, design, 7 capability
specs (card-core, beer-catalog, keg-display, beer-label, freshness-warning,
card-config, hacs-packaging), and 57 implementation tasks.

Custom Lovelace card for the PerfectDraft Pro HA integration, optimised
for Sonoff NSPanel Pro 120 in landscape mode.

Made-with: Cursor
2026-04-18 18:01:48 +02:00