[SOLVED] Adding two data from two solar panels together

Okay, so you have apples and oranges to work with.
I’m not that familiar with doing maths with Quantity Types.

Ideally, you’d work with the QuantityType - it auto deals with units, so whether you start out with 2kW or 2000W and add 50W, the end result is the “same”.

So, if you have the number 3, but you know that represents 3kW, can you load it into a QuantityType variable?
I think this may be as simple as
var myEnergyVariable = new QuantityType (myNumberVariable | “kW”)

Some clues