Skip to content

Conversation

@kritsel
Copy link
Contributor

@kritsel kritsel commented Jan 4, 2026

Proposed change

A column named 'Voice assistants' is added to the Entities, Helpers, Automations, Scenes and Scripts overview pages. The column shows the brand icon(s) of the voice assistant(s) an entity, helper, etc. is exposed to. This makes it easier for users to see which entities, etc. are actually controlable via a voice assistant.
The 'Voice assistants' column is hidden by default (use the 'Customize table' button above a data table to unhide) and it is not sortable.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

N/A

Additional information

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:


image

Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @kristel030

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@home-assistant
Copy link

home-assistant bot commented Jan 4, 2026

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@home-assistant home-assistant bot marked this pull request as draft January 4, 2026 14:15
@kritsel kritsel marked this pull request as ready for review January 4, 2026 15:29
@kritsel kritsel changed the title add Voice assistant column to data tables Add Voice assistant column to data tables Jan 4, 2026
Copy link
Member

@MindFreeze MindFreeze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How will multiple assistants be handled? There should be some spacing between the icons I guess.

@home-assistant home-assistant bot marked this pull request as draft January 5, 2026 07:41
@kritsel
Copy link
Contributor Author

kritsel commented Jan 5, 2026

@MindFreeze thanks for the valuable feedback. Regarding spacing in case of multiple assistants. Visually I don't believe there's a spacing issue between the images. But I am faced with a column width issue when all three assistant logos need to be rendered, as the third logo overlaps the text in the next column. Do you maybe have any suggestions on how to fix this? Or would it be acceptable to leave as is, as supporting three voice assistant flavours seems to be a kind of edge case.
image

@kritsel kritsel marked this pull request as ready for review January 5, 2026 20:59
@home-assistant home-assistant bot requested a review from MindFreeze January 5, 2026 20:59
@kritsel kritsel marked this pull request as draft January 5, 2026 21:42
@kritsel kritsel marked this pull request as ready for review January 5, 2026 23:10
@kritsel
Copy link
Contributor Author

kritsel commented Jan 5, 2026

Addressed all review comments. New version reuses existing implementation of rendering the logo of relevant voice assistants.

@ildar170975
Copy link
Contributor

Sorry, but isn’t it better to show names of assistants instead of icons? In this case there will be no overflow issue, ellipsis will be shown in case of many assistants (+ tooltip may be show with a full list), also a “voice assistant” filter can be added.

@MindFreeze
Copy link
Member

Sorry, but isn’t it better to show names of assistants instead of icons? In this case there will be no overflow issue, ellipsis will be shown in case of many assistants (+ tooltip may be show with a full list), also a “voice assistant” filter can be added.

I agree but we already have this as icons on the Voice Assistants page in the Expose tab. So lets just make this consistent with that first. Otherwise the scope of the PR will expand.

Copy link
Member

@MindFreeze MindFreeze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the overflow still an issue? If yes, check how the voice assistants page handles it

@home-assistant home-assistant bot marked this pull request as draft January 6, 2026 11:56
@ildar170975
Copy link
Contributor

Sorry for another intrusion, is it possible to make it sortable? Also, adding a filter might be also useful. Not sure if it is possible with “icon” presentation.

@kritsel
Copy link
Contributor Author

kritsel commented Jan 6, 2026

Sorry for another intrusion, is it possible to make it sortable? Also, adding a filter might be also useful. Not sure if it is possible with “icon” presentation.

@ildar170975 From a usability perspective I'm completely with you. However, this is my first code contribution to this code base, and I haven't yet been able to find out how to make sorting or filtering work. I think it is wise to leave the scope of this PR as it is (to keep it manageable) and introduce sort/filter as a separate PR.

@kritsel
Copy link
Contributor Author

kritsel commented Jan 6, 2026

Is the overflow still an issue? If yes, check how the voice assistants page handles it

The voice assistant page displays multiple icons below each other instead of next to each other. I have decided to leave this behaviour as it is. I personally prefer displaying next to each other, but first tests revealed quite some challenges in guaranteeing proper layout, so best to not tinker with that right now.

@kritsel kritsel marked this pull request as ready for review January 6, 2026 18:36
@home-assistant home-assistant bot requested a review from MindFreeze January 6, 2026 18:36
Copy link
Member

@MindFreeze MindFreeze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current voice assistants page uses

        showNarrow: true,
        sortable: true,
        filterable: true,
        minWidth: "160px",
        maxWidth: "160px",
        type: "flex",

Please make all the new columns use the same options for consistency. You have various sizes now and it doesn't seem intentional

@home-assistant home-assistant bot marked this pull request as draft January 7, 2026 07:41
@kritsel
Copy link
Contributor Author

kritsel commented Jan 7, 2026

The current voice assistants page uses

        showNarrow: true,
        sortable: true,
        filterable: true,
        minWidth: "160px",
        maxWidth: "160px",
        type: "flex",

Please make all the new columns use the same options for consistency. You have various sizes now and it doesn't seem intentional

All minWidth/maxWidth for all data tables that get a new 'Voice assistant' column with this PR are now set at 100px. Reasing being is that the 160px value claims more horizontal space then is actually needed, which comes at the expense of other columns. So I believe we have 3 options now:

  1. keep 160 for the existing data table and 100 for the 5 new ones
  2. set them all to 160 (existing data table)
  3. set them all to 100
    Any preference from your side?

@MindFreeze
Copy link
Member

  1. keep 160 for the existing data table and 100 for the 5 new ones

This is fine as long as it works visually but 1 of the new ones had 160px so I thought it was a mistake

@kritsel
Copy link
Contributor Author

kritsel commented Jan 7, 2026

@MindFreeze Wrap-up:

  • all overview pages reuse the pre-existing <voice-assistants-expose-assistant-icon> tag to render a voice assistant logo
  • entity_id -> entityId: fixed
  • column width for the newly introduced 'Voice assistants' column on 5 pages is 100px for all pages, stays at 160px for the pre-existing page

Thanks for being my 'conscience' in this PR, your review remarks helped me to better understand the code structure and improve the code quality. Can't wait to see my very first contribution appearing in an upcoming release.

@kritsel kritsel marked this pull request as ready for review January 7, 2026 09:28
@home-assistant home-assistant bot requested a review from MindFreeze January 7, 2026 09:28
Copy link
Member

@MindFreeze MindFreeze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kritsel ! Great work! FYI it's too late for the January release so this will go in the February one.

@MindFreeze MindFreeze enabled auto-merge (squash) January 7, 2026 13:08
@MindFreeze MindFreeze merged commit 7a8cb80 into home-assistant:dev Jan 7, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants