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
- Label
- Which iotty device was turned on or off?
- Slug
- device_id
- Required
- true
- Can have default value
- false
- Label
- Check whether the iotty device is on or off
- Slug
- state
- Required
- true
- Can have default value
- false
Ingredients
- Slug
- source
- Filter code
- Iottysmarthome.historyOfSmartOutletOnsOrOffs.Source
- Type
- String
- Example
- 1
- Slug
- device_name
- Filter code
- Iottysmarthome.historyOfSmartOutletOnsOrOffs.DeviceName
- Type
- String
- Example
- Bedroom left Outlet
- Slug
- created_at
- Filter code
- Iottysmarthome.historyOfSmartOutletOnsOrOffs.CreatedAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
- Slug
- outlet_state
- Filter code
- Iottysmarthome.historyOfSmartOutletOnsOrOffs.OutletState
- Type
- String
- Example
- on