What Triggered This Switch?

Hi,

I have a virtual switch I use to “beep” an alarm. There is a real simple script that monitors when the switch is turned on – then turns on alarm, immediately turns it off, and finally turns the virtual switch off. It works great.

It works so well, that I decided to use it for all sorts of stuff (hacky, but meh). When I go to the log, I can see the Laundry Monitor turned it on, or a presence arrival, etc. However, I’d like to see if I could push the last triggered event to a text message. Does anyone know how to subscribe to this?

Kristopher

Edit: I figured it out in like 10 seconds. Here is the answer in case anyone looks for this in the future.

3 Likes