I'm trying to figure out how to put the device name that triggered a rule into a variable. I have a rule I've set up, that there are several different devices that could trigger it. What I'd like to do is store the most recent device that triggered that rule into a hub variable.
Coming back to my issue! I have two short-term rental properties, that I've created a pseudo-presence monitor that looks at activity on various devices, and then sets a timer for moving things from present to away and back again.
I have a management company managing the properties, so I don't have direct access (programatically) to the calendar. So I use this so that when guests leave, it will automatically turn down thermostats (or up in the summer) to save energy.
My question was there so that I can figure out when the rule is triggered, what device was triggering the move from Away->Present