Explore Plans
Mobile menu Close menu
My LevitonMy Leviton

Toggle a Leviton Device

This action will toggle a Decora Smart Wi-Fi device On/Off.

Developer info

API endpoint slug
my_leviton.toggle_switch
Filter code method
MyLeviton.toggleSwitch.skip(string?: reason)
Runtime method
runAction("my_leviton.toggle_switch", {})

Action fields

Name Dropdown list

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

Power Dropdown list

Label
Would you like to toggle the device, or turn it on or off?
Slug
power
Required
false
Can have default value
true
Filter code method
MyLeviton.toggleSwitch.setPower(string: power)