Automate Reddit
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.

About this action

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 action will toggle a Decora Smart Wi-Fi device On/Off.
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)