After making some changes to sensors (from defining in configuration.yaml as sensors to defining as binary sensors in templates.yaml), I noticed that the old sensors are still showing up. The code that created them is gone, and I’ve restarted multiple times since, but the old sensors still show up:
How can I eliminate the old sensors? I thought removing the code would have done it, but apparently not. There is also no option to delete the sensors that I could find.
I had tried that, but I only get 2 options, the gear and the ellipsis, and neither provides any options. I have added GUIDs in the past to manually created sensors to expose options in the UI, but in this case the code for the sensor was removed from my config.
I’ve seen that happen before but usually a restart of HA (or two) usually solves it. Unfortunately if it doesn’t then there is no easy way to get rid of it.
the only way I know at that point is to go the “nuclear option” and edit the registry file(s) to manually remove it. But that is not something that is recommended as if you mess it up you can break your HA.
if you do decide to do it then make sure you make a backup of at least those files before editing them so incase something goes badly you can easily restore them.