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:
Define a start time and end time in local time. This will set the time in UTC on the back end.
When the device is active and sending data, only then set the value of the expected available to true.
A switch to toggle whether the device is always or never expected available.
This currently uses LISP syntax to control.
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.
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
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.
- Click Devices.
Navigate to your device of choice.
Click Settings, then click expected available.
- You will see an Expected Available Form where you can select the mode to detect expected operational time for that device.
Updated 4 months ago