Explore Plans
Mobile menu Close menu
My LevitonMy Leviton

Button pressed

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.

Developer info

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