Changed the entity id via UI (not practical for a large number of knx entries)
Directly edited the core.device_registry inside .storage (this felt like being completly wrong … also I do not understand if and when changes would be reflected by the core)
Could you provide a hint or some kind of documentation on how to do this correctly? I guess if programatic changes are mentioned some kind of API call might be used for this? On REST API docs I couldn’t find anything pointing in this direction.
Thanks for your support!
p.S.: I would like to enforce a certain semantic for the naming of my knx entities to make later use in automation and UI more convient.
But that’s at your own risk - remember to do a backup before!
Doesn’t imply recommendation. I merely said it would be possible to change the friendly_name (rather than entity_id) in core.entity_registry (not device_registry) if you aren’t too attached to your HA instance.
There will not be any documentation about that, as you shouldn’t do it. I don’t know if there is any API for it (and that was not meant by "programmatically`).
Use the UI for changing names or entity_ids of entities.
Sorry for the misinterpretation - you’re right - it was clearly not a recommendation. But understood → core.entity_registry “could” be the place to go for.
I’d really need to (at least) suggest the entity_id via the YAML configuration. My use case: I have several KNX temperate sensors and KNX heating actuators that need to be addressed in a generic_thermostat.
The suggested entity id. If that one is already used, you’ll still get an integer appended. Same would hold for any yaml configured entity id value - which is one of the reasons this is not a thing.