Easy sensor/device replacement to prevent loss of historical data

Sometimes it happens that a (broken) device is replaced. When this device (sensor) is used to generate statistics, then you have a new sensor, but you loose all old statistics.
Losing this old data makes the data useless to compare situations, like how a new heater is performing.This historical data also can be used to canculate what if scenarios when you consider making changes to your solar system.

Just give the new sensor the same entity_id of the old sensor. Then nothing is lost.

2 Likes