Update Device Status


The Update Device Status node updates the status of the device. If the update fails, the flow will stop executing for subsequent downsteam nodes and the error will be recorded.

Node Type

Action.

Input and Output Ability

This node has 1 entry point and 1 exit point. Both the input and output are JSON.

Node Properties

../../_images/update_device_status.png


Name

The name of this node.


Asset ID

The asset ID of the device. You can only enter one asset ID. If you wish to update the device status of multiple assets at one go, you can use the Split node.


Status

The status of the device to update, supports Online and Offline.


Login Duration (seconds)

The login duration to determine the online status of the device. Only applicable when Online is chosen for Status. Available duration range is from 300 to 86,400 seconds. After which, the status will turn to Offline. The actual offline status might be delayed by about 5 minutes.

When updating Status of sub-devices of the gateway to Online, the sub-devices can only auto-offline after the gateway offline rather than after Login Duration.


Description

Optional.

The description for the node.


Samples

Input Sample

{
  "id": "eHT8Bnqr"
}

Output Sample

{
  "id": "eHT8Bnqr",
  "status": "online"
}