Custom Lovelace card for CMG Waste Collection integration.
The card shows today's and tomorrow's collections in a compact layout with color-coded icons.
Click the expand button to see all waste types with their next collection dates and countdown.
- Home Assistant 2023.1 or later
- CMG Waste Collection integration installed and configured
- Compact Display - Shows today's and tomorrow's waste collections at a glance
- Expandable View - Click to expand and see all waste types with their next collection dates
- Color-Coded Icons - Each waste type has its own icon and color (configured in the integration)
- Polish Language Support - Displays dates and times in Polish
- Smart Date Display - Shows relative dates (dziś, jutro, za X dni)
- Automatic Updates - Refreshes when sensor states change
- HACS → Frontend → ⋮ → Custom repositories
- Add:
https://github.com/ArturZurawski/cmg_waste_collection_card - Category: Lovelace
- Download
- Restart Home Assistant
- Download
cmg-waste-collection-card.jsfrom releases - Copy to
config/www/ - Add resource in Lovelace
type: custom:cmg-waste-collection-cardtype: custom:cmg-waste-collection-card
title: Waste Collection # Card title (default: "Waste Collection")
show_title: false # Show/hide card title (default: false)
icon_style: icon # Icon style: "icon" or "colored_background" (default: "icon")| Option | Type | Default | Description |
|---|---|---|---|
title |
string | "Waste Collection" |
Title displayed at the top of the card |
show_title |
boolean | false |
Whether to show the card title |
icon_style |
string | "icon" |
Icon display style: • icon - colored icon only• colored_background - icon with colored circular background |
type: custom:cmg-waste-collection-cardtype: custom:cmg-waste-collection-card
title: Waste Collection Schedule
show_title: truetype: custom:cmg-waste-collection-card
icon_style: colored_backgroundnpm install
npm run buildOr using Docker:
cd docker-tools
./build.shRequires Node.js 18+.
This project uses GitHub Actions for automated releases. There are two ways to create a release:
- Go to Actions tab on GitHub
- Select Create Release workflow
- Click Run workflow
- Leave version field empty
- The workflow will automatically:
- Increment the patch version (e.g., 1.0.1 → 1.0.2)
- Update
package.jsonand source files - Build the project
- Create git tag
- Create GitHub release with HACS installation instructions
- Go to Actions tab on GitHub
- Select Create Release workflow
- Click Run workflow
- Enter desired version (e.g.,
1.2.0or2.0.0) - The workflow will use your specified version
- ✅ Updates version in
package.json - ✅ Updates version string in source code
- ✅ Builds the JavaScript bundle
- ✅ Creates a git commit with version changes
- ✅ Creates a git tag (e.g.,
v1.0.2) - ✅ Pushes changes and tag to repository
- ✅ Creates GitHub release with:
- Built
cmg-waste-collection-card.jsfile - HACS installation instructions
- Configuration examples
- Automatic changelog
- Built
# Install dependencies
npm install
# Watch mode for development
npm run dev
# Build for production
npm run buildMIT

