Expected Available: Management

Overview

The expected available form will allow you to control when your device is supposed to be operational. It can also restrict sending out smart alerts if the device is not expected to be available.

4 Modes are available to define Expected Available:

ModeDescription
ScheduleDefine a start time and end time in local time. This will set the time in UTC on the back end.
Is ActiveWhen the device is active and sending data, only then set the value of the expected available to true.
BooleanA switch to toggle whether the device is always or never expected available.
CustomThis currently uses LISP syntax to control.

Custom Expected Available

An example of a LISP format is show below:

[
  "and",
  [
    "==",
    [
      "$",
      "device",
      "data",
      "/robot_state",
      "ready"
    ],
    true
  ],
  [
    "==",
    [
      "$",
      "device",
      "data",
      "/control_state",
      "data"
    ],
    "operating"
  ]
]

It will begin with array value and then the logical operator ["and", "or", "not] depending on your circumstance. You will want to evaluate data from a particular topic. The next index will be the path to the data topic you want to analyze. For example, we can look at the device data and see robot state on the stream page.

762

In this case, device data has a topic called /robot_state. It has a property called ready. We want to evaluate when the value is true. We can do the same for the control state topic on the stream page.

📘

Expected Available will play a role in the visibility of your device on your Fleet Map

Expected Available Custom Form

An example of the custom form is shown below. It is required that the topics selected in the multi-select dropdown match the topics used in the custom expression.

558

Navigation

  1. Click Devices.
160
  1. Navigate to your device of choice.

  2. Click Settings, then click expected available.

378
  1. You will see an Expected Available Form where you can select the mode to detect expected operational time for that device.
1150