Logitech Harmony Elite plus Amazon Echo Dot (2nd Generation)

How do you go about detecting an activity is ran via core?