Skip to content

v1.23.1

Choose a tag to compare

@elRadix elRadix released this 18 Nov 18:23
· 32 commits to main since this release
900e048
Daikin Cycle ML


GitHub stars

If this project helps you, a ⭐ star means a lot — it helps others discover it.


🌟 What's new in v1.23.1?

A fix release for the daily overview when your heat pump runs past midnight, fewer lost measurements, and better self-diagnosis. No breaking changes.

  • Runs past midnight no longer mess up the daily overview (#400).
    • The morning after a night run no longer shows quality 0 %. A day that only contains the tail of last night's run now shows "—".
    • "Longest run" can no longer be longer than the day's total runtime: each day now shows its own part of a run that crosses midnight.
  • Defrosts and backup heater show up in the Events tab (#400). The per-day event counts now use the same real numbers as the Today block, so they are no longer empty or 0 %.
  • No more lost COP measurements (#353). If the database is briefly busy, measurements are kept and saved a moment later instead of being dropped.
  • Lighter nightly maintenance (#353). The database is only compacted when there is actually space to reclaim.
  • Better diagnostics (#353). If an update is ever slow, the diagnostics file now shows when it happened and which step caused it.
  • All default thresholds in one place (#193). See docs/cycle-thresholds.json.

✅ After updating

  1. Update via HACS → Daikin Cycle ML → Update, then restart Home Assistant.
  2. Re-paste two dashboard cards to get the Events fix: Daily Summary Tabbed and Pattern Analysis. Copy the latest YAML from dashboard/cards/ (HACS does not update cards you pasted). Other cards need no change.

🙏 Thank you

  • CuttingStorm (Tweakers forum) — spotted the 0 % quality, "longest > total" and empty event counts after a run across midnight (#400)

Found something? Open an issue and attach your diagnostics.

📚 Docs: Database — daily summary and maintenance · Dashboard cards · Cycle thresholds


🛠️ Technical Details & Fixes

Fixes:

  • #400 Daily summary across midnight - daily_summary_recent.quality_avg is null for a row without cycles started that day; daily_summary.duration_max is the longest within-day portion (always ≤ total_duration_s); _apply_merge keeps MAX of buh_used / defrost_used / dT_max of absorbed runs; new events_by_day (BUH minutes, defrost events from runtime_acc.<day>) used by Daily Summary Tabbed Events and Pattern Analysis. PR #401.
  • #353 A3c slow tick - diagnostics coordinator_timing.tick_duration_max_ts / _tick / _phases_ms; cop samples hitting database is locked are queued (max 240) and flushed on the next insert (database.pending_cop_samples); nightly VACUUM only when ≥ 20 % pages are free, explicit run_maintenance vacuum: true always runs (database.last_vacuum). PR #402.
  • #193 Canonical thresholds - docs/cycle-thresholds.json (schema 1) with a drift test against const.py / engine/physics.py; Carnot factor 0.65. PR #403.

Tests: 6,703 tests, 100% coverage; new suites for cross-midnight daily summary (incl. Node-rendered cards), real SQLite write-lock reproduction, conditional VACUUM, slow-tick attribution and threshold drift.

Changelog: CHANGELOG.md | Compare v1.23.0...v1.23.1



☕ Support

Daikin Cycle ML is free, local-only, and open-source. If it has helped you optimize your heat pump or save on energy costs: