gruijter / com.gruijter.powerhour

Homey app to summarize power meters per hour, day and month
GNU General Public License v3.0
10 stars 13 forks source link

Possibility to replace the underlying device without loosing data #151

Closed StevenRenders closed 9 months ago

StevenRenders commented 10 months ago

I'm wondering if there is any way to replace the underlying device without loosing all statistics. E.g. if a power plug fails and needs to be replaced.

There should be a maintenance option to attach to a different device.

Thanks, Steven

Vetjes commented 10 months ago

This would really be a great feature! Standing at the point of changing the plug and losing the data or starting an extra PBTH and keeping one inactive PBTH just for the old data.

gruijter commented 9 months ago

Implemented in new version 5.9.0: https://homey.app/a/com.gruijter.powerhour/test/

This adds a feature that was requested by a number of people. You can now repair a summarizer to a new source device, e.g. because you deleted the source device in Homey. Repairing will keep all the Insights and Flows. But if you repair to a physically different source device the kWh meter will most likely jump. In that case you need to manually adjust the meter and money values in the advanced settings.

Vetjes commented 9 months ago

Thanks! Great addition