jbouwh / omnikdatalogger

Datalogger for Omnik solar power inverters with DSMR integration and output to Home Assistant, PVOUTPUT, InfluxDB and MQTT

Home Page:https://jbsoft.nl/site/omnik-datalogger/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

If vac is 0.0, this line results in a division by zero

padriaanse opened this issue · comments

return round(pac / vac, 2) if pac >= 0 else -1

You are right. The test should be vac > 0. If pac>0 then vac should also be >0 but withe the solarman pv client no vac attribute will be available.