Hi,
I hope someone can help me,
I have a SolarEdge transformer. But the the information I get from the API server from SolarEdge is in Wh.
Hou can I convert it to kWh.
Is it possible to change the values within Home Assistant.
If you need more information, please let me know
Currently running the latest version of HA: 0.101.2
Can i use this configuration in HA>Developer tool>states,
In my case select: sensor.solaredge_energy_today and change it in the: State attributes (YAML, optional) ?
Or do i need to change it in the configuration.yaml
Well. Been reading, playing, configuring. Still no sigar.
If been testing with one sensor to see if it works. I currently have the following in the configuration:
Thanks. The template sensor will create a new entity with the sensor’s value (it won’t change anything with the sensor that your referenced in the template). Based on what you named it, it should be sensor.solaredge_energy_today_kwh. Use that sensor in your frontend.
Unless you’re actually saying the template sensor itself doesn’t have the correct unit of measurement…which would be strange because your formatting is right. icon_template isn’t a template like it’s supposed to be, but if you’re not getting errors related to that then I guess it’s ok.
Ok,
Took me some time sorry, kids, work, Television series I needed to watch, and so on.
But i got it working. Still it took me some time. I had to read you post several times to understand it. (I`m no coder)
I had to change and try lots of the configuration and i ended up with the following which worked for me: