Animated Arrows for Energy PV

Hello,

i am made in openhab 4.3 a SOLAR-Page Dashboard to View in Realtime the PV-Situation like a Monitor (PV-Input, BAT-IN/BAT-OUT and Home

I dont know how i made a simple widget to start it if an Item XY was higher 0 to start the Animated Green Arrows wenn Positive 0 and Red Arrows when Negative 0.

i am draw the Arrows manually and post it here:

For Example.

If PV-Input or Home was 0, then going not visible
If PV-Input or Home was higher 0, then green Arrows going from left to right

If BAT-INPUT was Positive, then make Green Arrows from Up to Down
If BAT-INPUT was Negative, then make Red Arrows from Down to Up
If BAT-INPUT was 0, then going not visible

Must i Made 3 Widgets or Is it not Possible?

Is this only Possible in HABpanel?

Thanks.

This is possible with custom widgets. In fact, you have a couple different options. The two easiest ways to get animations would be with css animation directives or using animated svgs. There are several examples of both of these types around the forums:

Here are animated arrows with css:

Here a system where arrows are animated inside an svg:

And here’s a discussion of how to change the direction of an animation:

In all of these cases, though, you’ll want to make sure you have a pretty good understanding of how to use widget expressions if you want things to change based on the values of your items: