This query returns the switch state of a Chacon / DiO plug.
- API endpoint slug
- chacon_dio.q_generic_switch
- Runtime method
- performQuery("chacon_dio.q_generic_switch")
Query fields
- Label
- Which device ?
- Slug
- device_id_plug
- Required
- true
- Can have default value
- false
Ingredients
- Slug
- device_id
- Filter code
- ChaconDio.qGenericSwitch.DeviceId
- Type
- String
- Example
- MY_deviceid1234
- Slug
- state
- Filter code
- ChaconDio.qGenericSwitch.State
- Type
- String
- Example
- on
- Slug
- created_at
- Filter code
- ChaconDio.qGenericSwitch.CreatedAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00