Hey @rlkoshak , I’m probably dumb but… I’m having quite a bit of difficulty in getting this to work. Maybe it’s me not understanding how to use the mainUI? Can you give me a pointer or two?
This is what I see when I set up a battery item. And I don’t understand how I can add more battery items either… I added multiple battery level status widgets to try to work it out but it’s not working as I assume it should. I added four widgets at the top.
Can you recognize what I’m doing wrong? I read this message “ Required Group:Number:MIN Item that aggregates all the battery levels “ and I’m pretty sure that I’m not following this correctly, but on the other hand I don’t know what to do either… please help?
Is there a way to sort the list ascending by battery level or since it’s not possible the Minimum Battery Level is displayed at the top?
It seems like the list is sorted descending by item name.
Now that expressions support arrow functions, you can use the repeater map function to achieve pretty good sorting of objects on the basis of key values, but it will break the widget for anyone not at least using recent milestones.
The marketplace now supports Maven like version number ranges. So I could publish a new version and put [3.4.0;4.0.0) in the title and those on 3.4 will see the new sortable version and those on older version will see this one.
Extra question : my batteries Items are defined with just the label “Battery”.
So in the widget, i have many “Battery” entries, without knowing which item it is refering to …
DateTime HueChambreCapteurLuminositeLastUpdated "Dernière mise à jour" <time> (gDevice_HueCapteurPresenceChambre) {channel="hue:0106:001788b3f442:motion_chambre_light:last_updated"}
Number HueChambreCapteurLuminositeBatteryLevel "Niveau batterie" <battery> (gDevice_HueCapteurPresenceChambre, gBatteries) ["Battery"] {channel="hue:0106:001788b3f442:motion_chambre_light:battery_level"}
Switch HueChambreCapteurLuminositeBatteryLow "Batterie faible" <battery> (gDevice_HueCapteurPresenceChambre) ["LowBattery"] {channel="hue:0106:001788b3f442:motion_chambre_light:battery_low"}
So, of course, i could rename all the corresponding labels (but i have a lot of them…) - but isnt’ there an easier way (like configuring something allowing to display for text the "Parent object name) ?
There is some metadata that gets added to an item that is part of the semantic model, but I don’t know if it’s available in an oh-repeater card. I know there is some access to metadata but I don’t know how far that extends.
Because the label is used in so many other places I recommend making each item’s label unique anyway so I’ve never looked into it.
It should. All my battery levels are defined as such.
Are you missing unit metadata on these Items? If so the Item’s actual state is set to the unit ONE which is a simple ratio. 77 % = .77 ONE. That would explain the behavior.