Releases: rianadon/timer-bar-card
v1.17
The updates never stop! I've added two new configuration options: bar_radius
and invert
.
The bar_radius
option controls the border radius (i.e. rounding of corners) of the bars. But if you configured your progress bar to shrink with time, you'll see this:
That's no good! So I've added another option invert
, which is meant to replace the hacky adjustment of bar_foreground
, bar_background
, and bar_direction
needed to invert the bar colors. Now, adding invert: true
will achieve the same thing, and it will work corrrectly with bar_radius
!
v1.16
I've added a new layout
option. It takes values normal
(default), full_row
(for hiding the name and icon, making the timer take up the full width of the card) and hide_name
(hides only the name).
If you are a huge fan of this card like I am, you might remember there already was a
full_row
option. Thefull_row
option is still supported, but it's meant to be replaced by thelayout
option.
In the case you've configured the card with filter: true
and there are no timers running at the moment, the card will now hide itself from your dashboard and reappear once a timer starts running.
Finally, another debugging improvement: 🐛 This release adds a warning message if the card is not functioning as intended because you forgot to set active_state
. Don't panic! If your card already works, you don't need to set active_state!
v1.15
The latest Home Assistant release broke the layout of this card (you may have not seen the progress bar). That's because the card depends on the layout of one of the components that ships with Home Assistant. I've removed this dependency, so the code is a little bigger but the card should be more stable in the future!
v1.14
Two big improvements have landed!
- I reworked how entities with
guess_mode
set are handled, and they should now both update more reliably and also show up when putting them in a card withfilter: true
! - BREAKING CHANGE: I've edited the modifications syntax to be more intuitive and flexible. You can quickly upgrade by replacing
greater_than
with elapsed and adding a percentage symbol to your numbers (greater_than: 40
becomeselapsed: 40%
), but I suggest you checkout the full syntax in the readme! You can now additionally pass durations in addition to percentages, and filter on both remaining and elapsed time!
Because of that BREAKING CHANGE I've skipped version 1.13 and went straight to version 1.14. Or maybe that was an accident...
v1.12
v1.12.0rc0
This release might fix a bug with setting the entity name within the card, and for debugging purposes the card version will now be logged to the console!
v1.11
This release adds a tiny new feature: before you could have configured durations and end time to pull information from attribute
, fixed
, and entity
, but now there's a fourth option: state
!
This is useful if you are using this card for alarms! Let's say your alarm's state is set to the time it will go off. You can use end_time: { state: true }
together with guess_mode: true
to get the card working!
Yes, you could have done this before with the entity
attribute, but this way will make your configuration nicer!
v1.10
If your entity has a wacky state that doesn't fit the active_state
option, you can now set guess_mode
to true
—enabling advanced AI† to guess whether the timer is active or idle!‡
That's all! There's not much else in this release, save for modificationss to the debug pane.
† Sorry; it's simply a few if statements
‡ As long as your entity does not rely on using the last-changed-time when computing time remaining.
v1.9
The card is now tested! With written tests! Of course the code was perfect before, so...
Just kidding! Two minor bug fixes:
- The progress bar should now progress more smoothly
- The margin between the card header (only if you set the
name
option) and card body is now consistent across browsers