I’ve got myself in trouble & can’t see a way out. I had a sensor called tide_current and wanted to test a new calculation method. I created tide_current2, let it run for a while & decided the new method was better. I wanted to keep the history continuous so decided to use config\entries to change the names tide_current became tide_current_old and tide_current2 became tide_current. Now I had a mismatch between this name and what is in the template: when I came to tweak the template I changed its name from …2 to tide_current and now I get unavailable plus a 2nd tide_current_old sensor.
Any ideas how I dig myself out of this hole? Ideally keeping the history of tide_current contiguous.