Skip to content

feat: add UPS room sections and flexible custom sections#298

Open
Cyberhunter88 wants to merge 1 commit into
TheRealSimon42:mainfrom
Cyberhunter88:feat/upstream-feature-port-v2
Open

feat: add UPS room sections and flexible custom sections#298
Cyberhunter88 wants to merge 1 commit into
TheRealSimon42:mainfrom
Cyberhunter88:feat/upstream-feature-port-v2

Conversation

@Cyberhunter88
Copy link
Copy Markdown

@Cyberhunter88 Cyberhunter88 commented Jun 3, 2026

Summary

This is a fresh PR that ports the upstream-compatible parts from my dashboard-strategy fork back to Simon42 Dashboard Strategy.

It intentionally does not include the fork rename / HACS rename changes from Cyberhunter88/dashboard-strategy, because those are only needed so my fork can be installed side-by-side with the original.

What changed

  • Added automatic UPS/USV detection in room detail views.

    • Uses already visible/filtered registry entities, so existing hidden/no-dashboard filtering still applies.
    • Detects NUT devices directly.
    • Detects non-NUT UPS-like devices from a percentage battery sensor plus runtime/load/voltage style signals.
    • Renders each UPS as its own room section with a battery gauge and related sensor tiles.
    • Adds show_ups_in_rooms as an opt-out setting.
  • Added per-area custom cards for room views.

    • Config path: areas_options.{areaId}.custom_cards[].
    • Supports guided tile mode.
    • Supports free YAML card mode.
    • Supports complete section YAML mode.
    • Supports top and bottom placement around generated room sections.
  • Added configurable room stack ordering foundations.

    • Introduces StackKey and DEFAULT_STACKS_ORDER.
    • Allows areas_options.{areaId}.stacks_order.
    • Keeps saved order forward-compatible by appending new default stack keys automatically.
  • Added flexible custom overview sections.

    • Adds custom_sections[] with title, icon and cards.
    • Adds custom_sections as a section-order target.
    • Keeps the existing custom cards target-section behavior intact.
  • Updated editor/i18n support for the new settings.

  • Rebuilt dist/ bundles for HACS compatibility.

Explicitly not included

  • No rename from custom:simon42-dashboard to custom:dashboard-strategy.
  • No rename of global custom elements/cards to dashboard-strategy-*.
  • No HACS filename/resource rename.
  • No fork branding changes.

Validation

  • npm run lint passes.
  • npm run build passes.
  • Codacy was green on the previous equivalent PR after the same fixes.

@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 225 complexity · 0 duplication

Metric Results
Complexity 225
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant