UltronCommand

This trait is used to implement virtual devices together with the ULTRON device type.

Device ATTRIBUTES

Devices with this trait may report the following attributes as part of the SYNC operation.

AttributesTypeDescription
rebootTimeNumberThe time required to reboot the device.
fwUpgradeTimeNumberThe time required to upgrade the firmware.
mqttOnDemandBooleanIndicates whether this device supports MQTT on demand or not.

Example

{
  "attrs": [
    {
      "name": "rebootTime",
      "value": 20
    },
    {
      "name": "fwUpgradeTime",
      "value": 60
    },
    {
      "name": "mqttOnDemand",
      "value": false
    }
  ]
}

Device STATES

None

Device COMMANDS

Devices with this trait may respond to the following commands.

UltronReboot

Parameters

ParameterTypeDescription
No Parameter

Examples

{
  "command": "UltronReboot",
  "params": {}
}

UltronFwUpgrade

Parameters

ParameterTypeDescription
No Parameter

Examples

{
  "command": "UltronFwUpgrade",
  "params": {}
}

UltronReset

Parameters

ParameterTypeDescription
No Parameter

Examples

{
  "command": "UltronReset",
  "params": {}
}

UltronDeactivate

Parameters

ParameterTypeDescription
No Parameter

Examples

{
  "command": "UltronDeactivate",
  "params": {}
}

UltronDeauth

Parameters

ParameterTypeDescription
No Parameter

Examples

{
  "command": "UltronDeauth",
  "params": {}
}

UltronMqttReconnect

Parameters

ParameterTypeDescription
No Parameter

Examples

{
  "command": "UltronMqttReconnect",
  "params": {}
}

UltronReactivate

Parameters

ParameterTypeDescription
No Parameter

Examples

{
  "command": "UltronReactivate",
  "params": {}
}