Neuigkeiten:

Am Sonntag den 8.12.2024 kann es ab ca. 8:00 Uhr zu kurzzeitigen Einschränkungen / Ausfällen bei den Diensten des FHEM Vereines kommen.
Die Server müssen mal gewartet und dabei neu gestartet werden ;)

Hauptmenü

Neues Modul: ElectricityCalculator

Begonnen von Sailor, 26 August 2016, 21:05:35

Vorheriges Thema - Nächstes Thema

Mellowback

Ja das würde mich auch mal interessieren, habe auch ab und zu negative Werte.

roelb

I have run into negative values from time to time. In my case, it happens when the reporting device erroneously reports 0 instead of the actual value, which is then used as Day1stValue, resulting in corrupted data for 2 days, or even longer if this happens on the first of the month or year.

Unfortunately, there is no way to filter out these anomalies in the calculator modules. A simple filter, controlled by an attribute such as "value_always_increases" or similar, which, if set, ignore values lower than the current reading will fix that.

Also, it might be a good idea to merge the three Calculator modules into a single generic module, there is a lot of code duplication right now, which is completely unneccessary. And the option to disable generation of certain readings would be great as well. For example, I have no need for all the cost calculations and corresponding readings, but there is no way to turn those off.

@Sailor: if you don't have time for this, I'd be willing to have a look at merging the functionality into a single generic module.