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 instances when a light was turned on.
- API endpoint slug
- myq_devices.history_of_lights_turned_on
- Runtime method
- performQuery("myq_devices.history_of_lights_turned_on")
Query fields
Light name Dropdown list
- Label
- What light was turned on?
- Helper text
- light name
- Slug
- light_name
- Required
- true
- Can have default value
- false
Ingredients
Created atDate and time event was created.
- Slug
- created_at
- Filter code
- MyqDevices.historyOfLightsTurnedOn.CreatedAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Light namename of the light
- Slug
- light_name
- Filter code
- MyqDevices.historyOfLightsTurnedOn.LightName
- Type
- String
- Example
- Kitchen Light