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 when a DW4BC or D2SCS button is pressed. The DW4BC supports buttons 1,2,3, or 4. The D2SCS supports buttons 1,2, or 3.
- API endpoint slug
- my_leviton.button_pressed
Trigger fields
Name Dropdown list
- Label
- Which switch?
- Slug
- name
- Required
- true
- Can have default value
- false
Number Dropdown list
- Label
- Which button?
- Slug
- number
- Required
- true
- Can have default value
- true
Ingredients
NumberThe number of the button.
- Slug
- number
- Filter code
- MyLeviton.buttonPressed.Number
- Type
- String
- Example
- 1
SwitchThe name of the switch.
- Slug
- switch
- Filter code
- MyLeviton.buttonPressed.Switch
- Type
- String
- Example
- Fan
DateDate and time the device's button was pressed.
- Slug
- date
- Filter code
- MyLeviton.buttonPressed.Date
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00