home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.02k stars 2.75k forks source link

Helper-timer doesn't count down (Sections view) #20133

Closed Resin00 closed 7 months ago

Resin00 commented 7 months ago

Checklist

Describe the issue you are experiencing

My timer helper doesn't show remaining time in sections dashboard. Functionality is unaffected in masonry layout, works fine. I'm using the entity card

Describe the behavior you expected

I'm using the entity card (as I do in masonry dashboards) to display a timer but it won't countdown when "remaining" attribute is displayed. Once the timer is triggered it goes from idle to just showing the timer duration but never counting down. When I click details I Can see the timer counting down though

Steps to reproduce the issue

  1. Create a sections page of a dashboard 2.add by entity 3.add timer 4.add to dashboard 5.edit entity
  2. Select Appearance >state content >remaining
  3. Start timer and it will only show the set time not the remaining

...

What version of Home Assistant Core has the issue?

2024.3.1

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Mobile chrome 122.0.6261.119, ha companion app 2024.1.5, desktop chrome

Which operating system are you using to run this browser?

Android 14

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

ildar170975 commented 7 months ago

I'm using the entity card Select Appearance >state content >remaining

Are you sure you are using the Entity card? Not a Tile card?

Functionality is unaffected in masonry layout, works fine.

Tile card in masonry layout does not update "remaining" as well.

karwosts commented 7 months ago

This is expected behavior.

The remaining attribute on the timer does not count down when it runs, so if you display that attribute it will also not count down.

Entities card has special code to display the countdown timer. If you want a live countdown, you can add your timer to an entities card.

Anything beyond that is a new feature request.