If you want to combine the scripts make sure you use the same sensor names. Looks like iMartien uses the sensor name for todays normal power consumption
Sorry for the late answer.
I believe everybody is using different sensors. I have the SMA Energy Meter 2.0 which is an (expensive) option with SMA PV converters.
Cheers, Jens
Dear all, I also have the mqtt power consumption meter. How often you read the consumption?
What time interval is the best solution, between accuracy and less reading.
I am rethinking the calculation I did and it seems wrong.
Here are my thoughts:
By creating this variable, as it sums up the past hour W, and keeps going the next minute and the next minute again, it seems that it will include W consumption more than one time in the calculation. To me, the Wh evaluation will be over estimated, using this method. Am I right?
However, calculating it per day, and resetting at midnight, it seems it will be correct.