iâve used displayState in a repeater many times and never had a problem. Iâm not sure why you are seeing anything differently.
Click on the black widget editing icon above the widget and select âConfigure Widgetâ. Set the properties called for. One will be a Group with all the Battery Items as members.
Did you define the Group with the MIN aggregation function? If so has any of its members been updated since adding the aggregation function? Are all members of the Group a Number type Item.
That that was it Rich. I didnât even know you could, thanks for the pointer!
One other question, to round the number values to 1 decimal place. I have added a Metadata stateDescription and added %.1f to the Pattern field. But it does not seem to be working? Is there something simple I am missing?
It could be based on the binding the readings come from. All my battery levels I care about come from MQTT so I wouldnât have noticed this issue here.
Mine are also coming from MQTT, all my items have a state description ("%s %%"), but none of them are showing in the widget⌠I actually have this issue with all my widgets where a repeater is included.
Then that thread doesnât apply. The issue in that thread you linked to is when the binding supplies a state description which sometimes overrides the State Description metadata. The MQTT binding doesnât do this.
In my case the values from the GPS binding are displaying rounded to a whole number where as the values coming from the iCloud binding are coming through with 15 decimal places, a little more accurate than needed for battery levels.
I might run the raw values through a rule every 10mins and display a proxy item.
OK, in your widget you use F7 Icons. I have modified the F7:Iconfile to more segments/steps. But since i have to save them in openhab/icon folder and in code they have to be used like oh:icons they lost the ability to be colorized like F7.
OH will only colorize f7 icons - i have learned know, thanks
In the end i have also lerned, no need to make dynamic battery icons meself, OH allready have
just learning OH-UI
@rlkoshak I have another (maybe more general) question about a function I would like to add.
Letâs say I setup the variables so that it only shows battery levels below 50% (props.max). I would to like to be able to click somewhere in the widget so it shows all values, so it actually ignores the filter. This click can be on the title, oh-repeater component or footer (I use a footer in all my list widgets). I know there is a accordion component, but donât know how to integrate this. Or maybe there is another better solution to show ALL items on demand, without setting up a different widget.
I guess you could create a switch item for that purpose and add a link or button to toggle it on or off. Based on this items state you may then show or ignore items on the list.
I am not a code expert but enjoy learning and Iâve reached a stop wall. A hand would be more than welcome. I have an accordion list with battery status, but I am not being able to remove the ânullâ state next to the badge that shows the right battery remaining.