ContextWe already added search capabilities to media players which supports browsing in #677 / home-assistant/core#140321. There are many integrations (eq. Google Photos, Immich, Radio Browser, Synology DSM, ...) providing only the media browsing part, as they implement a Media Source. We should also allow these medias to be browsed and searched. Proposal1.
|
Replies: 6 comments 3 replies
|
It's been spoken about before, we need a vector search functionality in core, allowing fast search via potentially a seperate database. This applies to mostly internal data, external apis can surface search themselves (plex/jellyfin for example). However, I don't see a reason that properties and functions like these could not be added now and apis can surface the search themselves. We can add a searchable database later for certain cases in the media search. Radio browser is an example for this, however there might be a simpler search api we could add before this. So long as the endpoints/subscriptions are available for frontend, we can add this in. Also curious on the current state of properties, it seems like these might be the start of an implementation, that need a refactor. This could only be per integration, so it would mean frontend could only show search inside of the integration itself, which makes sense to start with anyway, I don't think a quick search for media sources could actually be done until everything supports it, which is not possible in all integrations, especially those with limited data access like external filesystems or have no search api available from the provider. |
|
Instead of add is_searchable property to the MediaSource, we should add a search method to it. It works exactly like the media player method, and we can forward calls to it when searching a media player. |
|
Seems to be already implemented with home-assistant/core#175485 😬 |
|
The merged implementation PR is not matching this proposal. The proposal says there will be a way to signal support for search, but it's not clear how this signalling should be implemented. We’ll revert the implementation PR for now, then we can make a decision either on revised version of this proposal which clearly specifies how the signalling should be implemented. |
|
So there are a couple of things that need a direction:
|
|
This proposal was discussed and approved in the Home Assistant Architecture meeting on 23.07.2026. |
This proposal was discussed and approved in the Home Assistant Architecture meeting on 23.07.2026.