safepay / sensor.fronius

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

Added new config option 'always_log' #50

Closed nilrog closed 3 years ago

nilrog commented 3 years ago

This pull request aims to adress both the issue that was introduced by merging #45 and the original idea (from d5b50977, that never enabled the feature) to stop polling the inverter between sunset and sunrise when it is no longer producing power (the default behavior of the Fronius datalogger).

By default this patch will re-enable the old behavior (pre merging #45) where the integration is always polling the datalogger (i.e. no change needed to any configuration). But if the user has the datalogger set to shutdown when the inverter is no longer producing power they can add a new config option "always_log: false". This will change the integration to stop polling when the sun is down to minimize errors in the home-assistant log.