13 Commits
Author SHA1 Message Date
rickandCursor 913490389f openspec(fix-reauth-flow): verification follow-up tasks + spec update
Records section 8 (the already_in_progress finding and its fix) and
renames the translation requirement to cover every abort reason, with
scenarios for the concurrent-flow path and source-derived enumeration.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 15:39:27 +02:00
rickandCursor f124b46f0a openspec(fix-reauth-flow): apply tasks complete + sync config-flow spec
Marks sections 1-5 and the automated verification in 6 done, syncs the
config-flow delta into the main specs, and records the deferred
Cognito-token-persistence item in PROJECT_HYGIENE.md.

Archive (7.5/7.6) is deliberately held until on-device verification
(6.4-6.7) confirms the fix against the live machine.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 15:27:36 +02:00
rickandCursor 4ff26f6e7b openspec(fix-reauth-flow): propose artifacts
Reauth aborts with already_configured because async_step_token calls
_abort_if_unique_id_configured() on every source, including reauth where
a matching unique ID is the expected condition. Fresh tokens are discarded
and the entry stays broken.

Artifacts cover the source-aware fix, the 2024.11 core floor the reauth
helpers require, and the pytest-homeassistant-custom-component harness
needed to regression-test a config flow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 15:13:18 +02:00
rickandCursor d3d5bffb13 openspec(improve-keg-change-detection): archive completed change
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-31 21:22:46 +02:00
rickandCursor 43d9a3e818 openspec(improve-keg-change-detection): on-device verified + sync specs
Task 5.3 confirmed on-device (Mark Keg Changed button and volume-jump
detection both work). Applied the entities delta to the main spec: the
keg freshness sensor now documents the volume-jump triggers and
last_volume restore, plus the new Manual keg-change button requirement.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-31 21:22:36 +02:00
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