Linking multiple devices to a single button

Hello all,
I am working on a project using Tektelic electrical outlets. I have a dashboard built with an On/Off button that is working to turn the outlet On/Off as designed. My question is, how can I link this button to a bucket of devices so that it can control a group of outlets at the same time?

You will need to create a script for that so you can customize your solution. The script, in JS will need to read the TAG of all devices, and then send the command. A complete downlink example that sends data to LoRAWAN devices from a dashboards can be found here: Sending downlink to a TTN device from a Button widget