Skip to content

Device Action

Device Action is the batch command scheduling module in ThinkLink. It sends RPC commands to one or multiple devices on a schedule. Typical use cases:

  • Timed operations (e.g., reset device state every night at midnight)
  • Periodic data collection (e.g., read sensor parameters every hour)
  • Bulk attribute updates (e.g., push configuration parameters to all devices)

A Device Action must be bound to a Scheduled Task to take effect. The scheduled task controls when to trigger; the device action controls what command to send and which devices to target.

Configuration Fields

FieldDescription
NameCustom label for identification in the list
EnableDisabling pauses this action without affecting the bound scheduled task
Scheduled TaskSelect from dropdown — must be created first in the Scheduled Tasks page
Device Send Interval (ms)Delay between consecutive device commands during batch execution. Default: 3000 ms. Prevents flooding a large number of devices with rapid successive commands
RPCSelect an RPC defined in the Thing Model; fill in parameters if required
Target DevicesAdd one or more devices by EUI. Batch execution sends commands sequentially with the configured interval between each device

Device Action Configuration

Execution Types

TypeBehavior
UnlimitedExecutes on every trigger until manually disabled
Fixed CountAuto-disables after reaching the configured number of executions

Execute and Stop

  • Execute Now: Click "Execute" on the list page to trigger immediately, without waiting for the scheduled task
  • Stop: A running batch task can be interrupted — devices already processed are not rolled back
  • Execution progress is broadcast via platform MQTT and visible in real time on the list page

Execution Logs

Enable Log Storage to record each execution result (success/failure, device EUI, response payload). A log cutoff time can be configured to stop writing after a set date.

Configuration Workflow

  1. Create a cron task in the Scheduled Tasks page, setting the desired schedule
  2. Go to Device Action, click Add, enter a name and bind the task from step 1
  3. Select the RPC command and fill in any required parameters
  4. Add target devices to the device list
  5. Enable the action and save

Note: Changes to RPC parameters or the target device list only take effect from the next execution cycle after saving.