How to list all devices that match a certain state?


#1

I have a piston which manages my Away mode, based on phone presence. I had coded in a line to send a notification stating which sensor(s) arrived, returning the house to its previous mode. However, when my wife and I are both in the car coming home, it has turned into a game, with her usually saying “Let’s see who will win!” because {$currentEventDevice} will only be a single device.

How can I go about having it list out all of the devices that changed state back to present?


#2

Are you referring to something like this?


#3

Ahhhh, I think that may be it! I’m going to give it a try and we will find out how it goes! Thank you!