Hi there!
Having a setup that is fully controllable via the Google Assistant component, I am missing the functionality to know that a device was being toggled/triggered by the google assistant component (rather than by or from something else). When using the regular api, the user_id will be set to the id that belongs to the account or authentication method that was chosen but in this case this data is not available.
On first time setup, when linking the Google assistant action within the Google Home app you are asked to login in your home assistant instance (either by legacy api or by user). This would be an ideal moment to determine the account with which all the actions triggered by the Google Assistant component would be associated.
I for example created a dedicated “google” user within Home Assistant hoping that by logging in with this user to authenticate the component from then on all actions run trough the component would also be labeled as being run by this user. However right now, when triggering an action via the Google Assistant component (through a google home mini or phone) the user_id of the action will be ‘null’ making it impossible to know for automations or other 3rd party apps (such as NodeRed) to know if the action was triggered by the Google Assistant component or by something else.
Would be great to see a fix/feature like this!
What do you guys think?