Group Location
Explore Plans
Mobile menu Close menu
Hager IoTHager IoT

History of CO2 level rises above a threshold

This query returns a list of when your device detected a CO2 level above the value you specified. Note: this query will only return future events after this Applet is created.

About this query

Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.

Developer info

Description
This query returns a list of when your device detected a CO2 level above the value you specified. Note: this query will only return future events after this Applet is created.
API endpoint slug
hager_iot.history_of_co2_level_rises_above_a_threshold
Runtime method
performQuery("hager_iot.history_of_co2_level_rises_above_a_threshold")

Query fields

Cid Dropdown list

Label
Which device?
Slug
cid
Required
true
Can have default value
false

Threshold Text input

Label
What threshold?
Helper text
In PPM
Slug
threshold
Required
true
Can have default value
true

Ingredients

Created atDate and time event was created.

Slug
created_at
Filter code
HagerIot.historyOfCo2LevelRisesAboveAThreshold.CreatedAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06.000+05:00

NameThe name of the device.

Slug
name
Filter code
HagerIot.historyOfCo2LevelRisesAboveAThreshold.Name
Type
String
Example
My Device

System serial numberThe system serial number.

Slug
sid
Filter code
HagerIot.historyOfCo2LevelRisesAboveAThreshold.SystemSerialNumber
Type
String
Example
HGR12345678901234567890

System nameThe system name.

Slug
systemName
Filter code
HagerIot.historyOfCo2LevelRisesAboveAThreshold.SystemName
Type
String
Example
My System

ThresholdThe CO2 level threshold set in the recipe.

Slug
threshold
Filter code
HagerIot.historyOfCo2LevelRisesAboveAThreshold.Threshold
Type
String
Example
50

Current valueThe amount of CO2 detected by the sensor.

Slug
co2
Filter code
HagerIot.historyOfCo2LevelRisesAboveAThreshold.CurrentValue
Type
String
Example
60