First off, huge thanks to everyone who’s built and maintained decluttering-card over the years. Being able to define a card once as a template and reuse it everywhere with different variables has saved me an enormous amount of copy-pasting.
But I kept running into the same friction: once I’d defined a template, using it meant going back and forth between my dashboard and my raw configuration. I’d be in the visual editor wanting to drop in one of my templates, and there was nothing there for it. I’d have to remember the exact template name, switch to YAML, hand-type type: custom:decluttering-card, template: whatever-i-named-it, and hope I got the variables right.
So I FINALLY built Decluttering Selector. It doesn’t give you a visual editor for authoring your decluttering-card templates; you still define those the same way you always have. What it does is let you select them from the same “Add Card” dialog you already use for every other card, instead of digging through your raw configuration.
Add it once to a dashboard, and every decluttering_templates entry on that dashboard shows up as its own selectable card in the native picker, with a live preview. Click one and it inserts a fully pre-filled custom:decluttering-card for you.
How it works
- Reads
decluttering_templatesfrom the dashboard it’s placed on - Registers each one into the native Add Card picker (name + live preview)
- Clicking a template inserts a pre-filled
custom:decluttering-card - Re-registers automatically whenever you save the dashboard, so new or renamed templates show up without a reload
It doesn’t fork the frontend or monkey-patch anything. It just uses the same window.customCards + customElements extension points every other custom card (Mushroom, button-card, etc.) already relies on.
Example
A dashboard with a bunch of templates defined:
…and here’s “Add Card” once Decluttering Selector is on that dashboard. Each template shows up with its own live preview:
Installing
Via HACS:
- Click the badge above, or add
https://github.com/quincarter/hass-decluttering-card-exploreras a HACS custom repository (category: Lovelace) - Install Decluttering Selector
- Add it to any dashboard with
decluttering_templatesdefined:
type: custom:decluttering-selector
Full install and usage docs (including a manual-install path if you’re not on HACS) are in the README.
Requirement: you need the real decluttering-card installed too. This just fills in configs for it; it doesn’t replace it.
Optional: on-dashboard status
By default the card renders nothing visible. It’s only there to register templates into the picker. If you want a quick on-dashboard confirmation of what it found:
type: custom:decluttering-selector
show_info: true
title: My Templates
dedicated_picker: false
A couple of things to know
- It only reads templates from the dashboard it’s placed on, so add a copy of the card to each dashboard whose templates you want available there.
- If you edit templates while the “Add Card” dialog is already open, it won’t live-refresh mid-session (Home Assistant loads the picker’s list once, on open), so close and reopen it to see the update.
I’ve been running this locally in my own instance for a while now and finally felt like I could share it with others. This is my first attempt to contribute to HA! ![]()
This is brand new and scratched my own itch first. Feedback, issues, and PRs welcome.







