How To Delete Sensors Created in Sensors.yaml

Hello! I created sensors in my sensors.yaml file (instead of placing them all in my configuration file) but yet Hass still shows the old ones I created as an invalid entity, without the option of deleting them.

" This entity (‘sensor.google_news_content_0’) does not have a unique ID, therefore its settings cannot be managed from the UI. See the documentation for more detail."

How can I delete them?? Because now it shows 2 of the same sensors:

sensor.google_news_content_0
and
sensor.google_news_content_0_1

sensor.google_news_content_0 is the one I want to delete but when I click on the entity cog wheel it gives me the message I pasted above.

Any help would greatly be appreciated!



These are two different sensors. Not the same. When you put the sensor into sensors.yaml, Home Assistant saw it as a new entity. (The automatic _x is a personal pet-peeve of mine, but I am not a dev so my complaints fall on deaf ears).

Since you have a new entity, the easiest solution is to go into the integration configuration and change the entity to sensor.google_news_content_0_1

So I stepped away from my PC last night, and when I got home from work today to try and delete the duplicates, they were no longer there… I think rebooting Hass did the trick. I could be wrong, but I know I didn’t delete them, and I don’t have duplicates in my sensors.yaml file. * shrugs *

they were cached in your browser and didn’t actually exist. Restarting & clearing cache from your browser would have fixed it.