Hello
I would like to create a sensor that represent the yeld of Photovoltaic. so I need to calculate the following (which returns a value between 0 and 1)
I answer myself… as I found the solution.
I post here so someone else could benefit (you only need to indent properly… I can’t do it here)
EDIT: thanks to the @tom_I answer I fixed also the formatting