I changed my weather underground pws_id to another weather station as the usual ones’s physical sensors stopped responding according to the stations webpage
Now for some reason the new weather station’s readings aka sensors all have the sensors appended with _2
If I change it to different station it comes back with _4
I don’t have a entity_registry file and I have deleted the log and db file yet this is still happening, I don’t want to have to edit all my automations everytime the weather station changes.
There is only one weather station config specified. Not multiple…
How can I edit these sensors back to what it should be without the suffix. No documentation can be found nor any similar topics.
If you’re on a relatively recent version of HA, the entity_registry.yaml file has been changed to .storage/core.entity_registry.
Looking at the code for this platform, it generates a unique_id based on the pws_id. So when you change pws_id, the unique_id changes. The platform code generates the same entity_id (as a suggestion to the entity registry), but since the registry finds another unique_id with the same entity_id, it apparently appends a suffix to make the new entity_id unique. I didn’t read through all the code to verify, but that’s my guess as to what’s happening.
There might be something in the UI these days that will let you change the entity_id to what you want, but you might just need to edit .storage/core.entity_registry.