WTH Why is context data from assist handled as physical device?

I use automation conditions with context data to check if something was triggered by physical device like light switch or automation. Works great until I trigger something with assist. Assist is shown as physical device then because it has the same context data.

Is that wanted? How can I check if something was triggered by assist then?

What context would you expect? FYI context does not show “A phyiscal device”. It shows a user who prompted it, and an automation or script that envoked it. Everyone assumes the opposite of those 2 are “a physical device” when in reality it’s “We don’t know what envoked this”.

As for the information in context, it needs to link to a id, either a user_id or an id for an entity in the system.

I know it does not show “pyhsical device”, I use the automation sample from here.

And when I trigger a light switch by hand, automation or user interface the automation logs text for “physical device, HA Automation or HA User Interface”.

But it triggers the part for the physical device.

So i am looking for how to check if assist triggered something or what context data should be checked to be sure it was a physical device.