Detect if integration xyz changes the state or attribute of entity zyx?

Is it possible to detect if an integration changes the state of an entity?
For instance, detect if something via the Ikea integration turns on a light or changes the attribute of a light.

I have been looking at “state_change”

"context":
       "id": ""
       "parent_id": ""
       "user_id": ""

But I cant find any correlation.

Is what I’m trying to achieve even possible?

Found a way to “detect” light change initiated outside of HA. Which solves my problem.

I’ve shared the solution here: Can't seem to get manual control working. · Issue #91 · basnijholt/adaptive-lighting · GitHub

I’m still interested to know if it is possible to detect what integration is involved when and entity changes.