I got a question regarding tracking my energy consumption.
I have several smart plugs (zwave) in use, they all can report current load and energy consumption.
I collect the item values in the database so I can see the chart over time for the energy consumption.
Some of them persist the energy consumption so no problem if I power them off or there is a power failure.
But some of them loose the energy consumption values it there is a power failure or if I remove them from the power plug. In these cases I loose my collected energy consumption and it starts again at zero.
Has someone an idea how to work around this problem?
Is it possible to persist the energy consumption value e.g. on a daily base and write it back to the device if it re-connects?
Or any other ideas how to solve that?