timer-bar-card icon indicating copy to clipboard operation
timer-bar-card copied to clipboard

Service timer

Open Eckart0 opened this issue 2 years ago • 1 comments

Hello,

Is it possible to expand this card into a service timer?

For example, I would like to use this card to build a counting down service timer for the extractor bonnet in the kitchen. The maintenance interval for filter cleaning is 180 min. (defined with input_number) and the runtime is subtracted each time the unit is switched on. I have now built this with "custom:bar-card" and "custom:config-template-card" (see attachment), but this card would seem easier if it had a few extensions:

  • The possibility to set a maximum value of the bar to a fixed value, and below that the start time of the timer to another lower value (here: The maintenance interval minus the time already elapsed since, which is stored via input_numer for me).
  • The possibility to set negative values for the end_time to make exceeding the service interval visible.

Many greetings, Eckart servicetimer.txt servicetimer

Eckart0 avatar Aug 13 '22 10:08 Eckart0

Sorry for the long wait.

This is a wonderful idea and would be a great extension to the card. I feel bad neglecting it, but I just haven't had the time to implement it and won't for the near future.

I also wonder if this simpler extension would solve this use case:

  • If the end_time has already passed (or the duration has passed) but the timer is still active, then show negative values in the timer.
  • This extension would be enabled with an option named negative or something similar, so that a timer that is a few seconds off won't unintentionally show negative values.

rianadon avatar Nov 12 '22 08:11 rianadon