safepay / sensor.fronius

A Fronius Sensor for Home Assistant
MIT License
80 stars 32 forks source link

Bugfixes for sensor setup and state conversion #11

Closed nilrog closed 4 years ago

nilrog commented 4 years ago

After setting up things in HA I noticed that there were some issues with the DAY_ENERGY reading. It was shown as having unit 'W' and the value was not converted to 'kWh' as the other energy values. Yet all the energy values, as returned by the Fronius API are in Wh.

So I have made the following changes:

With these changes the sensors looks ok and the values are converted as I believe that they should be.