Explore Plans
Mobile menu Close menu
SwitchBotSwitchBot

Power On/Off

You can set the Plug Mini's action

Developer info

API endpoint slug
switchbot.turn_on_off_plug
Filter code method
Switchbot.turnOnOffPlug.skip(string?: reason)
Runtime method
runAction("switchbot.turn_on_off_plug", {})

Action fields

Chose a device Dropdown list

Label
Choose a Plug mini
Slug
chose_a_device
Required
true
Can have default value
false

Turn on off Dropdown list

Label
Turn On/Off
Slug
turn_on_off
Required
true
Can have default value
true
Filter code method
Switchbot.turnOnOffPlug.setTurnOnOff(string: turnOnOff)