So when I'm exposing scripts to gemini for example, I noticed that it doesn't really have access to the entity_id in context, and generally works off the Intent's handling of entity lookups by domain and name.
Is there a way, in HASS scripts, to be able to take a domain and name, and resolve it to one or more entity_id?
So far the only way I've found (that isn't directly reading the entity registry file) is to use the intent/handle REST API and abuse the HassGetState intent to perform the resolution.
Was wondering if there was some way where it doesn't have to reach out to something like node-red just to look up entity_ids inside home assistant, from home assistant.