Fix power_to_kwhd

This pull request fixes 2 bugs in the power_to_kwhd function.
- When the new day arived the counter didn't start at zero again, causing the graph to rise forever.
- The new day didn't start at 00:00 but started much earlier