What tuned on a Light?

Question about detecting what turned on (or off) a light. In the screenshot I have a number of ways that a light (or any device really) is turned off or on. For example, the top one is where I used Alexa skill to turn off the bedroom light. The third is via MQTT.
Question can this be used in flows? There don’t seem to be any exposed tags, so was wondering how?

Try this!

You then have local tags, which you can use in flows after you’ve written them to logics variables f.i.

Or depending what you’re after maybe a logging system is what you need Simple (Sys) Log App for Homey | Homey