Logbook automation

I’m not sure if this is possible but while looking at my logbook for a certain zwave device I was wondering if I could use this as a condition or trigger in an automation.
What I noticed is if the light switch was turned on or off via an automation the logbook shows Basement Dimmer Switch turned on triggered by service light.turn_on
If I do the same via the actual switch it shows Basement Dimmer Switch turned on.
Is there a way to distinguish which was used in an automation to maybe pause the automation if the switch was turned on / off manually or by a service?