More performant way to sum two items

I am currently using a DSL rule to sum two items and display them as one. However, it lags very much. (The items update every second)

Is there a better way using groups or something in OH3?

Well, Groups have a SUM aggregate function

and you can display the state of a Group in UI

1 Like

how can I do it in openhab3 ui?

There is something else wrong. There is nothing that should cause it to take anything more than a few milliseconds to add to Item’s states.

Create the Group in Item settings and add the Items as members of the Group.

But how do I set the mode (average, sum, etc.) in UI?

It’s right there under Group Settings

1 Like

Oh I forgot to go to edit view, thanks