A custom Lovelace card for filtering and exporting Home Assistant entities as JSON. Easily search, filter, and export entities for configuration, debugging, or backup purposes.
✨ Created with Vibe Coding - This card was developed using AI assistance to transform ideas into practical code!
- Filter entities by domain type (light, sensor, switch, etc.)
- Add multiple text filters with OR relationship (show entities matching any filter)
- Live filtering preview while typing
- Export filtered entities as JSON
- Copy to clipboard (in HTTPS contexts)
- Download as JSON file
- Real-time counter of filtered entities
- Make sure HACS is installed
- Add this repository as a custom repository:
- Go to HACS → Frontend
- Click the three dots in the top right
- Select "Custom repositories"
- Add
https://github.com/scharc/ha-entity-exporter-card
as URL - Category: Lovelace
- Click "Install" on Entity Exporter Card
- Add the card to your dashboard
- Download
entity-exporter-card.js
from this repository - Upload it to your Home Assistant instance under
/config/www/
- Add the resource in your Lovelace configuration:
resources: - url: /local/entity-exporter-card.js type: module
- Add the card to your dashboard
Add the card to your dashboard:
type: entity-exporter-card
- Select domains to filter entities by checking/unchecking domain boxes
- Type in the filter input to find specific entities
- Click "Add Filter" to save filters (multiple filters work as OR conditions)
- Use the copy or download buttons to export the filtered entities as JSON
type: entity-exporter-card
- Domain selection is applied first as a pre-filter
- Text filters are then applied to the domain-filtered set of entities
- Multiple text filters function with OR logic (matches any filter)
- The filter preview updates in real-time as you type
- Clipboard button is automatically hidden when not in HTTPS context
This card is specifically designed to work as a bridge between AI systems and Home Assistant:
- Extract structured data to share with AI assistants for analyzing your setup
- Generate automations and scripts by giving AI precise entity information
- Troubleshoot issues by exporting problematic entities with their states
- Speed up configuration by providing context to AI tools
This card was created using what I call "vibe coding" - a collaborative approach between human creativity and AI assistance. The development process involved:
- Designing the filtering logic and UI components with AI guidance
- Debugging complex issues like focus retention and clipboard detection
- Implementing proper integration with Home Assistant's internal APIs
- Refining the card's behavior based on testing feedback
Read more about this approach in VIBE_CODING.md.
This project welcomes contributions! Ideas, bug reports, and pull requests are all appreciated.
MIT License - See LICENSE file for details