This query returns a list of when a device in your house turns on or off.
- API endpoint slug
- sense_energy_monitor.history_of_device_turned_onoff
- Runtime method
- performQuery("sense_energy_monitor.history_of_device_turned_onoff")
Query fields
- Label
- Which device?
- Slug
- device_id
- Required
- true
- Can have default value
- false
- Label
- Which state?
- Slug
- state
- Required
- true
- Can have default value
- true
Ingredients
- Slug
- device_name
- Filter code
- SenseEnergyMonitor.historyOfDeviceTurnedOnoff.DeviceName
- Type
- String
- Example
- Oven
- Slug
- state
- Filter code
- SenseEnergyMonitor.historyOfDeviceTurnedOnoff.State
- Type
- String
- Example
- On
- Slug
- changed_at
- Filter code
- SenseEnergyMonitor.historyOfDeviceTurnedOnoff.ChangedAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
- Slug
- device_id
- Filter code
- SenseEnergyMonitor.historyOfDeviceTurnedOnoff.DeviceId
- Type
- String
- Example
- abc123