Closed mkarg75 closed 3 years ago
Looks like I got a fix, I'm just not sure yet about the full consequences.
I've changed line 153 in influxdb.py so that it reads
data['pdirectusage'] = float(pdirectusage)
which casts it to a float variable.
Looking further in the file, I guess this needs to be repeated for the kostal inverter special treatment as well?
thanks - pull request merged
I've setup influxdb as a target for smaemd and after a while of smoothless operation, I get this error in the smaemd log:
My assumption is that once the value gets low enough, it comes in as an integer, while it used to be a float for larger values. Unfortunately I have no idea how to prevent this from happening, but maybe there's a way to force a data type?