Display remaining time in minutes
wookash opened this issue · 8 comments
Hello, great card! I'd like to be able to display remaining time in 'XX min' format. Is it possible?
It is! resolution: minutes
is what you're looking for.
hello, thank you, however, it does not work for me..
here's my card (I'm using mushroom slider and then with conditional enable your timer)
but it looks like this:
and card info:
`type: entities
card_mod:
style: |
ha-card {
margin-bottom: 0px;
max-height: 185px;
}
entities:
-
type: custom:timer-bar-card
entity: timer.timer_tv
icon: mdi:timer-outline
resolution: minutes
bar_width: 100%
bar_height: 12px
bar_radius: 10px
bar_direction: rtl
invert: true
debug: false
name: []
tap_action:
action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.tv_sleep_toggle
mushroom:
layout: vertical
color: blue
secondary_info: none
card_mod:
style: |
ha-card {
background: none;
--icon-size:54px !important;
margin: -10px 0px -10px 0px;}
-
type: conditional
conditions:- entity: timer.timer_tv
state: idle
row:
type: custom:mushroom-number-card
entity: input_number.slider_tv
icon_type: none
layout: vertical
tap_action:
action: none
name: []
card_mod:
style: |
ha-card {
background: none;
--control-height: 12px;
margin-top: -30px;
margin-bottom: 0px;
}
mushroom-state-info {
background: none;
margin-top: 7px;
margin-bottom: -8px;
}
show_header_toggle: false
title: TV timer target
state_color: false
`
- entity: timer.timer_tv
Ah I see what you mean. I can definitely add an option for this, maybe a format option where you can pass formats like h:mm:ss
or m min
Perfect, thank you!
Yes that would be very welcome 🎉
I have a long runnning timer (2 weeks) - It would be beneficial to display the remaining days
This will be in the release today. The format will be using %
for substitution, so you can do %m min
, %d days
, or combine them into %H:%MM:%SS
(which is equivalent to the shorthand hms
).
works as intended, thank you!