8 Commits
Author SHA1 Message Date
rickandCursor ce70e3116b openspec(improve-keg-change-detection): mark apply tasks complete
Implementation merged. 16/17 done; 5.3 (manual on-device verification)
left for post-release HACS install.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-31 21:06:40 +02:00
rickandCursor ac7100b5c7 openspec(improve-keg-change-detection): propose artifacts
Propose smarter keg-change detection plus a manual override.
Detection gains two volume-based triggers (refill to near-full;
>=50-point upward jump) so a swap is caught even when pours never
resets to 0 (the swap-then-immediate-pour case). Adds a "Mark Keg
Changed" button as a deterministic fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-31 20:12:19 +02:00
rick 4b6d2da7c3 Archive v0.2 change (bugfix-polish-v02) — verified and deployed
Made-with: Cursor
2026-04-13 14:55:34 +02:00
rick 70882b939e v0.2.0: Fix token refresh, HACS compliance, brand icon, keg freshness
Critical fix:
- Cognito refresh now parses response with content_type=None
  (was crashing after 1hr when access token expired)

HACS compliance:
- Added README.md with full setup instructions including the
  token generation command
- Fixed manifest.json URLs to point at actual repo
- Version bumped to 0.2.0

Brand:
- Added brand/icon.png (PerfectDraft glass icon from official app)

New sensor:
- Keg Freshness: 30-day countdown from keg insertion, detected
  via numberOfPoursSinceStartup reset + kegVolume near full,
  persisted across restarts via RestoreEntity

Polish:
- Fixed MALFORMED_ARGUMENT in token step description
- Cleaner description referencing README for instructions

Made-with: Cursor
2026-04-13 12:12:43 +02:00
rick 80128e2031 openspec(bugfix-polish-v02): proposal, design, specs, and tasks
Made-with: Cursor
2026-04-13 11:53:36 +02:00
rick 6d5c3aef46 Archive v0.1 change (perfectdraft-integration) — exploration complete
Made-with: Cursor
2026-04-13 11:49:08 +02:00
rick c24e3678a7 Implement PerfectDraft Pro HA integration (tasks 1–7)
Complete custom_components/perfectdraft/ with:
- Async API client (auth, refresh, machine polling)
- Config flow with reCAPTCHA v3 external step
- DataUpdateCoordinator for shared polling
- Sensor entities (temperature, % remaining, days to expiry, keg name)
- Image entity for keg artwork
- HACS-compliant packaging (manifest.json, hacs.json, translations)
- Configurable polling interval via OptionsFlow
- Reauth flow for expired refresh tokens

Group 8 (manual testing) deferred — requires live HA instance.

Made-with: Cursor
2026-04-11 19:09:44 +02:00
rick 0bddd99241 Initial project setup with openspec change artifacts
Scaffolds the repo with agent workflow config (AGENTS.md, .gitignore),
openspec tooling, and the perfectdraft-integration change proposal
with design, specs (api-client, config-flow, entities, hacs-packaging),
and implementation tasks — ready for apply phase.

Made-with: Cursor
2026-04-11 19:02:16 +02:00