I’ve recently re-organized my group addresses and am struggling to understand where Home Assistant is taking the entity ID and name from the sensor, after removing the entity altogether and adding the group address back with a different name.
For most addresses I’ve done the following:
- Comment out entities in configuration
- Reload KNX configuration
- Remove entities from Home Assistant (
config/entities
) - Comment entities in configuration back in with correct group address and in some cases with corrected name.
This worked for most entities. However I’m currently struggling with a particular set of entities, which won’t work. I can remove them as described above, but once I add them back, they will re-appear with the previous entity_id
.
I understand that the unique_id
in case of knx
is somehow bound to the group address. However I don’t get where the old entity_id
is even taken from. I’ve even stopped Home Assistant, removed everything related to this entity_id
from the core registry, and restarted Home Assistant and I’m still getting the entity back with the old (wrong) entity_id
. I’ve grepped through everything within config
and config/.storage
and cannot find this old string anymore, so I’m wondering where this is taken from.
To be more specific. I have the following entity:
This is currently bound to this configuration:
knx:
sensor:
- name: "eg_kew_ta1_temperature"
state_address: "3/2/5"
type: temperature
sync_state: expire 30
As you can see there is typo / mismatch in the name of the sensor eg_kew_ta1_temperature
vs. it’s entity_id
, which is eg_kew_ta1_temperatur
(German spelling without e
at the end.
Also it is being shown as EG-KEW-TA1 Temperatur
in the overview:
I don’t understand where this name is coming from. Probably I’ve set it somewhere in the past, but I cannot find it by grepping through .config
. Also I cannot just delete this entity (as you can see its greyed out).
Also I get an error in the log when trying to add this group address with another sensor / name:
I haven’t added this entity via Config Flow, as I’m configuring everything via YAML files.
By now I’m kind of lost where this entity is coming from and how I can remove it. I have similar such entities, so I would like to understand what is going on here. Re-setting everything is also not really an option at this point for me, since I don’t want to loose the history of everything and have quite a lot of thing set up (besides KNX).
Getting some instructions on where to look would be helpful. Thank you.