This will create an entity with a name that is derived from the name you provide. I just wish that it wouldn’t conflate the entity name with the name I want to show in the Lovelace UI. If I want to tweak the “friendly” name to improve the UX, that will also rename the entity name, breaking anything that depends on it.
And can you tell what the entity name for the above example is? In case you wonder, it’s light.kontorsvagg which is not so pretty.
This is probably a commen theme in entities defined like this. I can see a couple of ways forward:
Add a “friendly name” configuration parameter, and let the “name” be the entity id.
Integrate this much better into HA so I can configure it in the UI instead and let me tweak the UI description freely.
It’s not a work around. This is how devices have been customised from the beginning. It’s the UI that’s new and can’t do everything yet. Until that time you have to do it the original manual way.
Also, since I’m defining this using YAML, don’t you agree that it would be better if I could specify both the entity name and the friendly name in the same place, instead of defining the entity in one place, and then adding a “customization” in a different place, customizing something I just defined?
If you reread by original post, I hope you can see I was being constructive, and suggested a couple of ways to improve the situation. I’m willing to pitch in if I get some input on how it should be designed.
Apologies. I see a lot of ‘entitled’ posts and this has coloured my perception poorly.
If you want to help out with development the best place to start is by reading the developer docs then popping over to the developers forum on discord. https://discord.gg/96Hqw6