Add device_id to AI triggered voice actions

Is it possible to get the device_id as attribute for scripts triggered by the AI in voice commands.

I wanted to make my voice activated phone call system known to the AI. but as far i know of the scripts dont know what device is asking to make a call. (perhaps i can hack room location) that will be one of 3 voip phones or my cell or one of my two laptops.

please add the device id to scripts that are triggered by the AI agent.

Hello Bram Diederik,

You can add a field to a script and pass it anything you want to…

Are you sure?

I mean i know that there are fields but but how i get the device id.

I cant get the AI let the device ID known. it knows the room the device is in. so i can set the room as the argument. But I really want the device id.

Can you clarify what you need? You need the LLM to be able to specify a device_id when invoking a script?
Or you need the script to have access to which assist satellite triggered the script?
Or something else entirely?

Make the llm known of the device id to send it to a script. Or let the script known what device id is used. Are both code solutions of the feature.

That is not part of a none developer feature request. What is best is up to development.

What do you mean by “is used”? What info would it have at its disposal to figure out the device ID?

Im not a developer why ask me that.

The llm knows the room of the device. That can be forwarded. Why not the device id

Oh, I’m still trying to understand your use case. Unfortunately it’s still not clear what exactly you’re asking (at least to me). Can you describe your exact use case in detail? What are you asking the model? What does the script do, exactly? What are its inputs?

I have a voice automation that can make phone calls. For this i need the device id to know what phone to be used to initiate the call.

I am assuming that whatever automation or script or button that is calling the script knows the device you want to call. If not I can’t help you.
Scripts - Home Assistant.

    - action: script.turn_on
      target:
        entity_id: script.notify_a_random_phone
      data:
        variables:
          device: notify.mobile_app_your_phone_name

Then use a field to pick up the device on the other end.
Notifications - Home Assistant.

Dear Sir good enough automations know the device id i have a regulair assist automation to make calls. From my home. My laptops and my cell.

But i want an AI script as a failover because when im on my bike and i want to make a phone call the command does not match due to noice.

The actual name has typo correction with a levenheid (something) function in the mysql db with all names and phone numbers.

a other user story.
I have rss news parser scripts.
because the google AI when nuts over that it was life realtime data i made a functional voice automation. instead of scripts.
so that a AI gives news based on live and local rss feeds

I extended this with a more info automation that reads the url of the rss feeds and runs a AI sumary of the text in the page.
this all uses a mysql db that stores blobs for news query for every assist separate.
Back to today the AI of google is aware that scripts can connect to live data so it isnt a problem. I can ask is there football news and football news is given.
But how do i feed the blob database with this with out loosing the multi assist and thus multi user capability of my scripts.
OR hack the hell out of rooms.