Clooos / Bubble-Card

Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.
MIT License
2.05k stars 63 forks source link

Sub-button timer countdown not updating (static) #657

Open DrNRG opened 4 months ago

DrNRG commented 4 months ago

Bug: If I add timer for a state button with attribute "remaining", the timer value is reflected on change of the timer, but there is no countdown/update.

I have noticed the same issue with HA cards. Entity does not do countdown vs Entities which does. Not sure if this is a change in HA? I noticed there was a post in May on this topic, but I am not sure if this is a new issue, hence a new bug report

Bubblecard 2.1 (but 2.04 had same issue)

HA Core 2024.7.2

Supervisor 2024.06.2

Operating System 12.4

Frontend 20240710.0

Thanks for a great card mod and congrats on your fatherhood!!

Example code where timer.climate does not update once activated.

type: custom:bubble-card card_type: button button_type: state entity: timer.climate show_icon: true show_name: false show_attribute: true attribute: remaining force_icon: true show_state: false show_last_changed: false

MrBearPresident commented 1 week ago

This is actually HA's fault. If you check in developers tools -> state -> specific timer. Then you can see the "remaining" attribute doesn't update.

See #937 for an example of how it is possible.

Clooos commented 1 week ago

Indeed, and I'm aware of this. I need to handle that case and I already tried a bit in the past, but it is not playing well with the text auto-scroll feature, that's why I stopped (for now).

But I will add support for this, this is in my to-do list.