-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Tile name with entity area #26614
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
Tile name with entity area #26614
Conversation
IA was used to get entity area name, but i guess there is a better option, look forward for it deliberately keep comments for now, need clean up
Simplify entity area detection by replacing custom area lookup logic with the existing getEntityEntryContext function
Hi 👋 Thank your for the contribution. I discussed with the UX team already the idea is not to limit it to area only. We should propose some presets of entity, device area combination or let the users build their own using some kind of template. The idea is to propose it on every card instead of only tile card. ![]() I have it on my todo list. Is it something I should work on or would you like to do it (it is way much work than this PR 😅)? |
I can give it a try but not for the incoming release. My first idea was to make a combobox like the picker you show with the area name and the capability to enter a custom name, but I was not ready 😅 I am still learning and discovering the frontend code. So I simplified it as much as possible 😀 Edit: I took a look at the gallery, I'll propose something as soon as I have a moment. |
I just saw PR #26696 , isn't it partillay competing with the discussion we have here ? 🤔 |
Yes. This is very new but seems to be going well. So I suggest you wait until we merge it. Then the predefined name options can just set a template for the name. For example selecting "Area" sets the name to "{{ area_name(entity_id) }}" |
Hmmm, I did this (in another branch not yet PR): Capture.video.du.2025-08-26.19-21-57.mp4How to proceed for the next step ? Do you want I wait or do you prefer I open a new PR with this new proposal (that should be completed with combination) ? I think we have finish with this PR, I propose to discard it, but I'd like you guide me for the process to follow for next step if you don't mind |
This looks great. Yes, we can close this PR and create a new one with the new UI. But first we need to merge the template support and to implement that on the tile card (will be a separate PR once we agree on the UX). Then you can add the dropdown and have it construct a template. This way you will only need to change the editor to achieve your goal. |
I discard it in favor of #26722, please take a look at it even if it is a draft |
Breaking change
Proposed change
In the tile card editor, I propose to add a switch to set the tile name to the area name of the selected entity.
I guess it is a common use case to create tiles in a section for the same type of entity of different areas, this could help to speed up a little bit the tile configuration.
Set the switch ON change the value of the name input field.
If the entity does not have area, the switch is set to OFF and disabled, the name input filed keep its previous value (behavior before this PR)
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: