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 the device history
- API endpoint slug
- motorline_mconnect.device_history
- Runtime method
- performQuery("motorline_mconnect.device_history")
Query fields
Device Dropdown list
- Label
- Which device?
- Slug
- device
- Required
- true
- Can have default value
- false
Ingredients
Device nameName of device
- Slug
- device_name
- Filter code
- MotorlineMconnect.deviceHistory.DeviceName
- Type
- String
- Example
- Kitchen Light
StateCurrent state of device
- Slug
- state
- Filter code
- MotorlineMconnect.deviceHistory.State
- Type
- String
- Example
- ON
Updated atDate when the device was changed
- Slug
- updated_at
- Filter code
- MotorlineMconnect.deviceHistory.UpdatedAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00