Your solution is probably a better process overall, but I didn’t understand a lot of what I was looking at, so I tinkered until I figured this all out. This may not work for everyone, but the effect for me works well. I had to add an attribute to my devices to store the counter value. My devices send data every 5 minutes, my threshold is 3. This flow will evaluate consecutive changes for a device and set the counter accordingly. I use the device:get to retrieve the previous counter value, as that field may not change which would cause problems for the conditional node.
