Is there a trigger that subscribes to every event from a particular device attribute? I’ve only seen “changes” or “stays”, but neither one is really what I’m looking for.
I have a couple of situations I’m trying to solve.
In the first case, I’m interested in any “motion active” events during a specific time period. The sensor may be active for the entire time, so it may never change to active, but as long as it sends an “active” event during that time period, I want to know.
The second case is where I have a particular piston that encounters “Piston waited at a semaphore” somewhat often (long story…). In this case, the “door closed” event can arrive before the “door opened” event (due to the 10 second delay of the semaphore), which means I get two back-to-back “door closed” events. I’d like to be able to detect this situation and compensate accordingly.
Right now I’m using “On Events From” followed by an “If” statement that checks the status for each device. In most cases, I have to set a Boolean variable that I then use throughout the piston. This all seems very verbose and somewhat hacky, and I was hoping that there was a better solution. Is there anything available to better handle situations like this?