Skip to main content

Lesson 1.3 Alarm translators

Alarm Translators are primarily used for threshold-based supervision but can also use algorithms and mathematical logic for more advanced monitoring.

This lesson is a step-by-step guide to apply Alarm translators to devices and then set up suitable Views for supervision. To create reports of alarms see Lesson 2.5 Excel Reports templates.

Add Alarm Translators​

To monitor values and trigger alarms when readings become too high or too low, you can add alarm translators to your device. The thresholds are translator parameters, set on the translator itself. Every parameter has a default, so the translator works as soon as it is added and can be tuned afterwards. The alarm fields become visible once an uplink has been received.

Naming convention​

Most alarm translators are named set-alarm-[alarmField]; a few older ones use set-alarm-[alarmField]-from-[inputField].

Examples​

  • set-alarm-temperature
    → Sets temperatureHighAlarm and temperatureLowAlarm based on supervision of the field temperature

  • set-alarm-temperature-from-average-temperature
    → Sets averageTemperatureHighAlarm and averageTemperatureLowAlarm based on supervision of the field averageTemperature

  • set-alarm-custom
    → Sets customLowAlarm, customHighAlarm1 and customHighAlarm2 based on supervision of a custom field you choose

For the full list of alarm translators, what each one supervises and the fields it produces, see Alarm Translators.

Steps​

  1. Go to Translators
    You can do this from:
    • The device menu
    • Select Many
    • Or while creating a device

Tip: Once translators are added, Select Many also lets you batch-edit their versions and parameter values across multiple devices at once - useful for adjusting a threshold on many devices without opening each one individually. This requires the selected devices to have the same translators in the same order.

  1. Click "Add Translator"

alarm-translator

  1. Pick the Value to Monitor
    Most alarm translators find the value on their own: set-alarm-temperature looks for temperature, set-alarm-co2 for co2, and so on. You only need this step when the translator cannot guess, or guesses wrong.
    Go to the Data tab, find the value you want to supervise, and copy its name. Then set it as the translator's field parameter: customSourceAlarmField for set-alarm-custom, or the optional [alarmField]Field parameter on the others.

  2. Set the Thresholds
    Adjust the alarm levels and the hysteresis to suit the installation. Every parameter is optional and has a default, which is described in the translator's own parameter list in the UI.

  3. Done!
    Once the device reports in again, you’ll see new fields show up in the Data tab.

Alarm Monitoring View​

With the alarm translator data, you can create a custom view in Devices to monitor your alarms.
Once you have created an alarm translator, you’ll be able to track and visualize your alarms directly within the device view.

Example of an alarm monitoring view Example Alarm Monitoring View

Setting Up the Alarm Monitoring View​

  1. Click "Customize Columns", then click "New".
    Here you’ll set the parameters for how the alarm will be displayed.

Example:

Customize Columns

  1. Click "Create".
    You can create additional column definitions if needed.

  2. In the Customize Columns menu, press "Columns", then select the column(s) you created and press "+" to add them.
    You may need to repeat this step depending on how many columns you want to include.
    Remove any columns you don’t want in the view. When finished, press "Done".
    You can also reorder the columns into your preferred layout.

  3. Use the Device Filter section on the left to adjust search parameters to something more relevant.
    You can use the Custom Query feature to filter devices with specific values or comparisons -
    for example:
    customHighAlarm1 == true

    For more information on custom queries, click the guide linked below the Custom Query input in the sidebar.

  4. Then press "Views", go to the "Save" tab, give your view a name, and press "Save".

You can now access your saved view anytime by clicking "Views" in the left-hand sidebar.

Q&A

Why do the platform use Alarm translators? Why not manage the thresholds in rule engine?

Why do you need hystersis?