Update multiple devices

I am needing to update multiple devices states at the same time (resetting a counter every 5mins). Is there a simple way to achieve this? My current method is very crude and isn’t efficient for many many devices:


I think the quickest win here would be to use the Loop Node:

However, I’m curious as to what your use case is here. Does each device have its own counter? How is this counter used? Is it displayed on a dashboard?

Hi, thanks for that.
The counter is used as a basic statistical measure, counting the number of events in a 5min window to give me the device with the max events in a rolling 5min window, this info is fed into a dashboard.
I’m guessing even with the loop node i will still need to create a new loop instance every time I add a new device?