-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Update strategies and registering dashboard strategies blog post #3023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
d0be23f
Rename custom views, format code examples
timmo001 5a987c0
Add redirects for new terms
timmo001 a5f5bf5
Add resource note
timmo001 250fd6a
Short blog post
timmo001 06ad7e6
Rename
timmo001 ca6df83
Rewrite part 1
timmo001 78de340
Uncomment
timmo001 3e32611
Add setup
timmo001 5cc03f1
Rename
timmo001 4fd56ff
Explain
timmo001 2ae548b
Update full example
timmo001 770de2a
Use quote
timmo001 f3d8c3d
American
timmo001 be211b2
Typo
timmo001 343591a
Add full example registration
timmo001 a4da0ee
Grammar suggestions
timmo001 807b559
Remove image from docs
timmo001 e696bd9
CR Review
timmo001 a69e498
Fix calver
timmo001 c16bd5e
Fix calver
timmo001 102f067
Review
timmo001 0039b2a
Clarify
timmo001 ceda0a8
Clarify
timmo001 d69efa0
Remove optional
timmo001 bf7a0fb
Cleaner example
timmo001 160ec93
Cleaner example
timmo001 d9261a8
Consistent
timmo001 6067d49
Fix
timmo001 bb745db
Rename 2026-04-29-registering-custom-dashboard-strategies.md to 2026-…
balloob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
blog/2026-04-21-registering-custom-dashboard-strategies.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| --- | ||
| author: Aidan Timson | ||
| authorURL: https://github.com/timmo001 | ||
| title: Registering custom dashboard strategies | ||
| --- | ||
|
|
||
| As of Home Assistant 2026.5, you can now register custom dashboard strategies, just as you can with [custom cards](/docs/frontend/custom-ui/custom-card), making them easier to discover and add using the **new dashboard** dialog under the **Community dashboards** section. | ||
|
|
||
| Previously, you had to send users to create a blank dashboard, edit in YAML mode, and paste in your custom strategy. Now you can register a friendly name, description, and documentation. | ||
|
|
||
| To register your strategy, call `window.customStrategies.push()` with an object containing the following keys: | ||
|
|
||
| - `type`: The strategy type without the `custom:` prefix, for example `"my-demo"`. | ||
| - `strategyType`: Set to `"dashboard"` to register a dashboard strategy. | ||
| - `name`: The friendly name of the strategy. | ||
| - `description` (`optional`): A short description of the strategy. | ||
| - `documentationURL` (`optional`): A URL to the documentation for the strategy. This is not shown in the strategy UI yet but may in the future. | ||
|
|
||
| Example: | ||
|
|
||
| ```js | ||
| if (window.customStrategies) { | ||
| window.customStrategies.push({ | ||
| type: "my-demo", | ||
| strategyType: "dashboard", | ||
| name: "My demo dashboard", | ||
| description: "A starter dashboard generated from JavaScript.", | ||
| documentationURL: "https://example.com/my-demo-dashboard", | ||
| }); | ||
| } | ||
| ``` | ||
|
|
||
| This metadata is separate from the custom element itself. Your strategy still needs to be registered with a tag like `ll-strategy-dashboard-my-demo`, and users still need the resource loaded before Home Assistant can discover it. You can use HACS for this as other resources can be added, like custom cards. | ||
|
|
||
| Take a look at the updated [custom strategies](/docs/frontend/custom-ui/custom-strategy) documentation with example code and further details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion | 🟠 Major
Fix hyphenation and link text.
Two issues in this sentence:
📝 Proposed fix
📝 Committable suggestion
🧰 Tools
🪛 LanguageTool
[grammar] ~17-~17: Use a hyphen to join words.
Context: ...is then rendered into a dashboard. Built in dashboards are built with dashboard s...
(QB_NEW_EN_HYPHEN)
[grammar] ~17-~17: Use a hyphen to join words.
Context: ...u can read the source code for the built in dashboards [here](https://github.com/...
(QB_NEW_EN_HYPHEN)
🪛 markdownlint-cli2 (0.22.0)
[warning] 17-17: Link text should be descriptive
(MD059, descriptive-link-text)
🤖 Prompt for AI Agents