Turn off Aqara plug when Airthings VOC drops below limit
This query returns a list of instances when the CO2 level for a device fell below the provided threshold. Note: this query will only return future events after this Applet is created.
Developer info
- API endpoint slug
- airthings.history_of_co2_level_drops
- Runtime method
- performQuery("airthings.history_of_co2_level_drops"}
Query fields
Device Dropdown list
- Label
- Device
- Helper text
- The device you would like to get CO2 levels from.
- Slug
- device
- Required
- true
- Can have default value
- false
Threshold Text input > Regular expression
- Label
- Threshold
- Slug
- threshold
- Required
- true
- Can have default value
- true
Ingredients
Created at Date and time event was created.
- Slug
- created_at
- Filter code
- Airthings.historyOfCo2LevelDrops.CreatedAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06+05:00
Co2 level The CO2 level. In parts per million.
- Slug
- value
- Filter code
- Airthings.historyOfCo2LevelDrops.Co2Level
- Type
- String
- Example
- 120
Device Name of the device.
- Slug
- device
- Filter code
- Airthings.historyOfCo2LevelDrops.Device
- Type
- String
- Example
- Home - Living Room