-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capitalize entity name in Home Assistant #16702
Conversation
From https://developers.home-assistant.io/blog/2022/07/10/entity_naming/
|
@TheJulianJES If I understand it correctly,
Shouldn't it be |
The name of my device (Aqara Button) seems to be misleading. Based on this documentation the entity should be named simply: Battery, without device name. In the Home Assistant UI, it will automatically displayed as: Device name + space + Entity name (e.g. Aqara button Battery, where Aqara button is device name, and Battery is entity name) if entity set But, I do not see the Some integrations with |
@frenck could you confirm that |
I'm missing the full context, as it is unclear what is the device name and what is the entity name. Both should start with a capital letter. Yet, this PR seems to do magic with names using methods like So looking at this PR, I don't see how it is matching anything Home Assistant aims for, nor do I understand what it is fixing. The only thing I see is how it could make things worse. But, maybe I'm misunderstanding this PR. ../Frenck |
@Drafteed Sure, but it will also change |
HA frontend now do the same logic: Device name: Aqara button Anyway, entity (exposed property) name in Z2M always consist of only lowercase words separated by underscores and I don't see a way to do it right other than add a "human-readble name" field to each property of each 2719 (!) device. Yes, this solution will not be ideal in cases where the name is an abbreviation, but it's much easier. |
Thanks! |
It does not, which is what the whole changing process is about (and what we are going through). The whole device naming and entity naming part is changing. All this PR does is introduce something in the middle (instead of correctly handling it). Which is an odd thing to do. I honestly think this change is wrong and should be reverted. ../Frenck |
@Koenkk please revert this PR. Let's summarize. I did some small research. To do this thing right, we need: Probably overkill to change one letter case. |
@Drafteed done! |
Hello!
What do think about this small change?
vs