How to create a status change timeline ?
The status values of a device can be based on measured values or can be evaluated against a set of values or a logical condition.
To create a schedule, proceed as follows:
In the device module
- Modify the device
- Activate the “Spent time” option.
- Select a measurement type as planning input
- Save
In this case, if the measurement type has a value range of {0,1,2}, as for the occupancy status of an Elsys ers -desk, a schedule “occupancy” will record status 0, 1 or 2.
The “spent time” option allows you to define your own status values (for example, “available”, “busy”).
To create a schedule, proceed as follows: In the device module
- Modify the device
- Activate the “spenttime” option.
- Select a type of measurement
- Click on the icon to the right of the input field.
- A modal window form opens.
- Enter the name of the schedule, for example “desk occupancy”.
- Enter the name of the condition, for example “available” and enter the condition “occupancy == 0”.
- Add a second condition to cover the other cases, for example “busy” and enter the condition “occupancy != 0”.
- Save
A calendar entitled “desk occupancy” is created, recording changes of state and the duration of each state.
Remarks :
- It is possible to evaluate several types of measures in the condition.
- The conditions defined must cover all cases. There is no default state. This means that if none of the conditions are met, the state returned will be the value of the measurement type evaluated.
- It is possible to created several schedules
Usage
- The schedule can then be used to populate the timeline widget.
- The status value can be used in any widget by selecting the “spent time” measurement type.
- It can be used by a transformation, such as count, count unique , etc.
- It can be used by the filter of a transformation (e.g. if desk occupancy == “busy”)
- The duration of a state can be retrieved by selecting the “spent time” measurement type and applying a transformation sum.