Skip to content

[Bug]: trashcard in badge area appears after couple of seconds #572

@iantmn

Description

@iantmn

Requirements

  • I checked the troubleshooting section in the README to verify that I have the latest TrashCard version.
  • I did a search to see if there is a similar issue or if a pull request is open.

Current Behavior

I have added the trashcard as a manual item in the badge area of home assistant using the following code:

event_grouping: true
drop_todayevents_from: "00:00:10"
next_days: 7
pattern:
  - icon: mdi:flower
    color: lime
    type: organic
    pattern: GFT
  - icon: mdi:newspaper
    color: blue
    type: paper
    pattern: Papier
  - icon: mdi:recycle-variant
    color: amber
    type: recycle
  - icon: mdi:trash-can-outline
    color: grey
    type: waste
  - icon: mdi:dump-truck
    color: purple
    type: others
day_style: counter
card_style: chip
alignment_style: left
color_mode: icon
items_per_row: 1
refresh_rate: 60
with_label: true
type: custom:trash-card
entities:
  - calendar.afvalbeheer_reinis
filter_events: false
only_all_day_events: false
hide_time_range: true
use_summary: false

All other cards are visible, just the trashcard is ‘hidden’ or not rendered, just like there is a visibility filter (there is not). Only after a couple of seconds it appears while all other cards are loading seconds before. Which makes me miss it sometimes.

I does not have a delay when not in the badge section of the dashboard.

Expected Behavior

I expect it to be visible at the moment all other cards are visible as well.

Steps To Reproduce

  1. Add above code as a badge to the badge area of your dashboard (sections dashboard layout)

Context

YAML state

message: Restafval 
all_day: true
start_time: “2025-01-06 00:00:00”
end_time: “2025-01-07 00:00:00”
location: “”
description: “”
icon: mdi:delete-empty
friendly_name: Afvalbeheer reinis

This is from HACS: afvalbeheer

Environment

- Browser: everyone (safari, chrome, Firefox and HA app)
- HA Version: 2025.12.5
- TrashCard: 2.4.7

Debug data

I cannot seem to find the option to copy this data. I have added it to my yaml config but there is no copy icon or any debug information.

Anything else?

ScreenRecording_01-02-2026.13-53-55_1.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions