Hi,
My SolarEdge convertor is connected to HA. The value’s are now on the overview and displayed in Wh (Watts/Hour) e.g. :
solaredge (Energy this year) 7.131.950,0 Wh
but I want this to be displayed as :
solaredge (Energy this year) 7.131 kWh (including the decimal point)
This is what I have in a templates.yaml - it creates two sensors; PVGenkW (current power generation from PV, in kW) & PVBatkW (current power to battery, in kW). I can’t tell you if it’s the best way but it works.
BTW, Wh (energy; a watt of power expended for an hour) is not equivalent to W/h
Do you still looking for an answer for this? I see the post is from almost 3 months ago.
Which error you have when using that template sensor you shared here?