Skip to content

[Bug - Minor] History log overwritten by last card instance #86

Description

@Breizh3122

Hello,

Thank you again for the threshold support! I've found a minor issue when running multiple instances of the card in a vertical-stack-in-card.

The Issue:
The history log for all card instances is being overwritten by the history of the very last card defined in the YAML.

Observed Behavior:
If I have separate blocks (Doors, Ink, Batteries), the Doors and Ink blocks do not show their own history. Instead, they both display the history entries belonging to the Batteries block (the final instance). It appears the history object is global and is being hijacked by whichever instance was initialized last.

Example Configuration:

type: custom:vertical-stack-in-card
cards:
  - type: custom:alert-ticker-card
    alerts:
      - entity: binary_sensor.door_contact
  - type: custom:alert-ticker-card
    alerts:
      - entity: sensor.ink_level
  - type: custom:alert-ticker-card
    alerts:
      - entity: sensor.battery_level

Expected Behavior:
Each card instance should maintain and display an independent history log scoped only to its own configured entities.

Thank you for your work on this card!

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