davorin
(Richard Klingler)
October 3, 2022, 7:47am
1
Good morning (o;
Is there a list item that shows a bar who’s length is proportional to an items value between 0 and 1 or a percent value?
In homeassistant there is a bar card that does that:
So far I’ve seen only a HP printer widget that displays toner amount but nothing for general use.
Matze0211
(Matthias)
October 3, 2022, 9:11am
2
There should not be something out of the box (at least I’m aware of), but if what you have seen with the HP printer widget will fit to your needs, than simply copy the widget code and reuse it
davorin
(Richard Klingler)
October 3, 2022, 9:14am
3
That is my last resort (o;
Time to get some hands dirty writing up simple widgets
Matze0211
(Matthias)
October 3, 2022, 9:22am
4
Openhab is open source…
A list item with a bar in the background is just not available because nobody volunteered for creating it before.
If you get your hands dirty, maybe submit it to the widget marketplace afterwards
Hamlet
(Hamid Shoja)
October 3, 2022, 3:58pm
5
Hey,
I just added a simple progress bar widget with a configurable icon, title, header, footer, color and of course the item to be displayed
[Screenshot 2022-10-03 174542]
Simple default progressbar widget with a configurable icon, title, header, footer, color and item to be displayed
Version 0.1
initial release
Resources
uid: Cell_Progress_Card
tags: []
props:
parameters:
- description: Header on top of the card
label: Header
name: header
required: false
type: TEXT
- description: Title of the card
label: Title
name: title
required: false
type: TEXT
- description: Fo…
davorin
(Richard Klingler)
October 4, 2022, 7:36am
6
Very nice…thanks
Good starting point for me to turn that into a list widget to save space…
1 Like