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 the power dropped below the specified value in watts. Note: this query will only return future events after this Applet is created.
- API endpoint slug
- smappee.history_of_when_power_dropped_below_a_threshold
- Runtime method
- performQuery("smappee.history_of_when_power_dropped_below_a_threshold")
Query fields
Service location Dropdown list
- Label
- Service location
- Helper text
- The service location.
- Slug
- service_location
- Required
- true
- Can have default value
- false
Below Text input
- Label
- Drops below
- Helper text
- The threshold value specified in watts e.g. 120
- Slug
- below
- Required
- true
- Can have default value
- true
Ingredients
Avg power in wattsAverage power value in watts.
- Slug
- power
- Filter code
- Smappee.historyOfWhenPowerDroppedBelowAThreshold.AvgPowerInWatts
- Type
- String
- Example
- 50
Service locationThe service location being monitored.
- Slug
- serviceLocation
- Filter code
- Smappee.historyOfWhenPowerDroppedBelowAThreshold.ServiceLocation
- Type
- String
- Example
- Home
Threshold in wattsThe threshold value in watts that has been crossed.
- Slug
- threshold
- Filter code
- Smappee.historyOfWhenPowerDroppedBelowAThreshold.ThresholdInWatts
- Type
- String
- Example
- 500
Avg solar power in wattsAverage solar power value in watts.
- Slug
- solar
- Filter code
- Smappee.historyOfWhenPowerDroppedBelowAThreshold.AvgSolarPowerInWatts
- Type
- String
- Example
- 1200
Created atDate and time event was created.
- Slug
- created_at
- Filter code
- Smappee.historyOfWhenPowerDroppedBelowAThreshold.CreatedAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00