About this trigger
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 Trigger fires every time a Chacon / DiO plug is switched to the desired state.
- API endpoint slug
- chacon_dio.t_generic_switch
Trigger fields
Device ID plug Dropdown list
- Label
- Which device ?
- Helper text
- Choose the plug you want to control
- Slug
- device_id_plug
- Required
- true
- Can have default value
- false
Action Dropdown list
- Label
- Type of action ?
- Slug
- action
- Required
- true
- Can have default value
- true
Ingredients
Device IDThe ID of the device that has fire
- Slug
- device_id
- Filter code
- ChaconDio.tGenericSwitch.DeviceId
- Type
- String
- Example
- MY_deviceid1234
StateThe new state of the plug
- Slug
- state
- Filter code
- ChaconDio.tGenericSwitch.State
- Type
- String
- Example
- on
Created atDate and time event was created.
- Slug
- created_at
- Filter code
- ChaconDio.tGenericSwitch.CreatedAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00