I am creating a trigger for my devices that sends an MQTT message to each device to initiate a cleaning cycle monthly.
I want to do this in my main workflow and use the storage set and get values functions.
Currently I have a timer that goes off at the beginning of every month that connects to a storage set node and sets the value of clean to false. Then a conditional statement sends out an MQTT message to initiate the cleaning process. The problem is I need to set that value to false for each device to make sure the message is only sent once a month, one time per device.
My understanding for the current way to do this is that I have to put in a specific ID every time and have one storage set node for each device in our system. That is quickly becoming a mess and will only get worse as we add more devices. Is there a way to quickly set this value for each device without having a bunch of storage set commands?