Explore Plans
Mobile menu Close menu
Chacon / DiOChacon / DiO

Plug switch state

This query returns the switch state of a Chacon / DiO plug.

Developer info

API endpoint slug
chacon_dio.q_generic_switch
Runtime method
performQuery("chacon_dio.q_generic_switch")

Query fields

Device ID plug Dropdown list

Label
Which device ?
Slug
device_id_plug
Required
true
Can have default value
false

Ingredients

Device IDThe ID if the device that has fire

Slug
device_id
Filter code
ChaconDio.qGenericSwitch.DeviceId
Type
String
Example
MY_deviceid1234

StateThe state of the plug

Slug
state
Filter code
ChaconDio.qGenericSwitch.State
Type
String
Example
on

Created atDate and time event was created.

Slug
created_at
Filter code
ChaconDio.qGenericSwitch.CreatedAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06.000+05:00