Files
hassio-integration-perfectd…/custom_components/perfectdraft/strings.json
T
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

62 lines
1.9 KiB
JSON

{
"config": {
"step": {
"user": {
"title": "PerfectDraft Account",
"description": "Enter your PerfectDraft app credentials.",
"data": {
"email": "Email",
"password": "Password"
}
},
"token": {
"title": "Verification Token",
"description": "Paste a verification token from PerfectDraft's website. See the README for the 30-second instructions. The token expires in 2 minutes, so generate it right before pasting.",
"data": {
"recaptcha_token": "Verification Token"
}
},
"reauth_confirm": {
"title": "Re-authenticate PerfectDraft",
"description": "Your session has expired. Please re-enter your credentials.",
"data": {
"email": "Email",
"password": "Password"
}
}
},
"error": {
"invalid_auth": "Authentication failed. Token may have expired (2 min limit) or credentials are wrong. Try again with a fresh token.",
"cannot_connect": "Cannot connect to PerfectDraft service.",
"unknown": "An unexpected error occurred."
},
"abort": {
"already_configured": "This PerfectDraft account is already configured.",
"reauth_successful": "Re-authentication successful."
}
},
"entity": {
"sensor": {
"temperature": { "name": "Temperature" },
"keg_remaining": { "name": "Keg Remaining" },
"connection": { "name": "Connection" },
"door": { "name": "Door" },
"pours": { "name": "Pours" },
"last_pour": { "name": "Last Pour" },
"firmware": { "name": "Firmware" },
"mode": { "name": "Mode" },
"keg_freshness": { "name": "Keg Freshness" }
}
},
"options": {
"step": {
"init": {
"title": "PerfectDraft Options",
"data": {
"scan_interval": "Polling interval (seconds)"
}
}
}
}
}