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 one of your iotty Smart Outlet devices was turned on or off.
- API endpoint slug
- iottysmarthome.history_of_smart_outlet_ons_or_offs
- Runtime method
- performQuery("iottysmarthome.history_of_smart_outlet_ons_or_offs")
Query fields
Device ID Dropdown list
- Label
- Which iotty device was turned on or off?
- Slug
- device_id
- Required
- true
- Can have default value
- false
State Dropdown list
- Label
- Check whether the iotty device is on or off
- Slug
- state
- Required
- true
- Can have default value
- false
Ingredients
SourceWas the device turned on manually, by iotty App, or by some smart home platforms?
- Slug
- source
- Filter code
- Iottysmarthome.historyOfSmartOutletOnsOrOffs.Source
- Type
- String
- Example
- 1
Device nameThe name of your iotty device
- Slug
- device_name
- Filter code
- Iottysmarthome.historyOfSmartOutletOnsOrOffs.DeviceName
- Type
- String
- Example
- Bedroom left Outlet
Created atDate and time event was created.
- Slug
- created_at
- Filter code
- Iottysmarthome.historyOfSmartOutletOnsOrOffs.CreatedAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Outlet stateThe state of the iotty Smart Outlet (on or off)
- Slug
- outlet_state
- Filter code
- Iottysmarthome.historyOfSmartOutletOnsOrOffs.OutletState
- Type
- String
- Example
- on