Track when an entity is not triggered by an automation?

I use this methodology to grab the Context of what changed an entity.

The example given sets a new sensor to either of physical, dashboard_ui, automation or unknown.

I have another automation that turns off the original automation if the context is physical (example a user flipped a switch).