Skip to content

feat: Chartdeck area section for the dashboard's community sections - #133

Merged
tempus2016 merged 7 commits into
mainfrom
release/v2.5.0
Nov 27, 2026
Merged

tempus2016 merged 7 commits into
mainfrom
release/v2.5.0

Conversation

@tempus2016

Copy link
Copy Markdown
Owner

Release v2.5.0: the Chartdeck area section, and a tidier Marketplace page.

Chartdeck area section (custom:chartdeck-area)

A section strategy listed under Create section → Automatic section → Community sections on Home Assistant 2026.11+. Pick an area and the section shows its name as a heading and one Chartdeck card per sensor type found there:

  • temperature and humidity: line
  • power: sparkline
  • battery: battery
  • any other type: bar, A to Z
  • sensors with no type: one bar card that leaves out the types already shown

Each card finds its sensors with an include rule (area + domain: sensor + device_class), so sensors added later appear by themselves. A type only gets a card when one of its sensors shows a number or has a unit or state class, so date and text sensors don't get cards. Hidden entities and non-sensor entities are left out. A sensor counts as in the area through its own area or its device's.

A missing or deleted area shows "Choose an area for this Chartdeck section."; an area with no sensors with numbers says so. Neither throws. The editor is one area picker. Messages and the editor label are translated into all 20 languages.

type: sections
sections:
  - strategy:
      type: custom:chartdeck-area
      area: living_room

Tested on HAOS-Dev 2026.11.1 in light and dark: listed in the picker with a preview, the editor preview follows the chosen area, and the empty and missing area messages render. Testing there turned up date sensors with an unknown state getting a card of their own; fixed with a test before this PR.

Marketplace page

The CI, Marketplace validation and CodeQL badge row and the open-in-Marketplace button are wrapped in ha-marketplace:exclude markers, so Home Assistant 2026.12+ leaves them out of the Marketplace listing. GitHub and older versions show the README as before.

Docs

A README line for the area section, and a new wiki page, Area section.

…e page

Home Assistant 2026.12 skips README sections between ha-marketplace:exclude
markers. The CI, validation and CodeQL badges and the open-in-Marketplace
button only make sense on GitHub. Older versions still show the whole README.
One card per sensor type found in the area, each with its own include rule
so sensors added later appear by themselves. Batteries get the battery
style, temperature and humidity a line, power a sparkline, the rest a bar.
Sensors without a type share one bar card. A missing or empty area shows a
message instead of an error.
Home Assistant 2026.11 lists custom section strategies in the Add section
dialog. Chartdeck area appears there with a preview of the first area that
has sensors, and a visual editor to pick another area.
A date sensor whose state is unknown counted as a number to come, so the
section built a card for it. A type now needs a sensor that is numeric, or
has a unit or state class, and the card for sensors without a type leaves
those types out too.
@tempus2016 tempus2016 added this to the v2.5.0 milestone Nov 27, 2026
@tempus2016 tempus2016 self-assigned this Nov 27, 2026
@tempus2016 tempus2016 added documentation README, wiki, or in-code documentation editor The visual editor and the card picker enhancement New feature or request labels Nov 27, 2026
@github-actions github-actions Bot added translations Languages other than English tests The unit suite and coverage labels Nov 27, 2026
@tempus2016
tempus2016 merged commit 8bd64c0 into main Nov 27, 2026
9 checks passed
@tempus2016
tempus2016 deleted the release/v2.5.0 branch November 27, 2026 22:42
@github-project-automation github-project-automation Bot moved this from Todo to Done in Chartdeck Planner Nov 27, 2026
github-actions Bot pushed a commit that referenced this pull request Nov 27, 2026
## [2.5.0](v2.4.0...v2.5.0) (2026-11-27)

### Features

* Chartdeck area section for the dashboard's community sections ([#133](#133)) ([8bd64c0](8bd64c0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation README, wiki, or in-code documentation editor The visual editor and the card picker enhancement New feature or request tests The unit suite and coverage translations Languages other than English

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant