Difference between "Turned on" and "Turned on Light: Turn on"?

I have two simple zigbee wall switches that each control one light each.
When I flip the physical switch I get the text “Turned on” in the log.
When I turn on the light from Lovelace I get the text “turned on Light: Turn on”

I’d like to use this difference in an automation so that if I use either physical switch both lights change state, but if I control over Lovelace they are independent.

Any ideas on how I’d set up the triggers for this?