A beginner's guide
Explore Plans
Mobile menu Close menu
SwitchBotSwitchBot

Turn Bulb On/Off

You can set the on/off state of your Color Bulb here.

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
You can set the on/off state of your Color Bulb here.
API endpoint slug
switchbot.turn_on_off_bulb
Filter code method
Switchbot.turnOnOffBulb.skip(string?: reason)
Runtime method
runAction("switchbot.turn_on_off_bulb", {})

Action fields

Chose a device Dropdown list

Label
Choose a Color Bulb
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.turnOnOffBulb.setTurnOnOff(string: turnOnOff)

Set time Dropdown list

Label
Fade Rate
Slug
set_time
Required
true
Can have default value
true
Filter code method
Switchbot.turnOnOffBulb.setSetTime(string: setTime)