here’s one way:
ALERT: Back up the files first !
- Shut HA down
- edit the
core.entity_registry
file in the.storage
folder, remove the block where your old Current Cost entities are
1… if you were using MQTT Discover, delete the Current Cost Discovery entries (you can use MQTTExplorer, the default discovery topic is homeassistant) - call your ESPHome sensors the same as the previous ones
- Start HA and you should be good.
May I also suggest InfluxDB / Grafana to store your data for long term. It’s more efficient than HA. You can follow this thread for information on how to get set up