Array of Device states from API

Hi Paul,

I built out a workflow to do this, you can find the walkthrough below. Based on your use case, I believed this to be the easiest way to accomplish this goal.

I still have the same workflow as this post, and have added a Device: Get node, a Function node, and a Loop. I first use the Device: Get to query the Device Tags, return the multiple devices that match, and those devices are placed on the payload.

Within my function node, I loop through and pull out the device IDs.


18%20AM

Then I use a loop node, and set the source path to the deviceId array I just created.

Then from within my loop I include the nodes I built out in this example to get each device’s last state data onto the payload.


Then I can see the every device’s last state for the tag I selected.
33%20AM

Hopefully this helps,
Julia