Explore Plans
Mobile menu Close menu
YeelightYeelight

Toggle lights on/off

This Action will turn on, turn off or toggle your lights.

Developer info

API endpoint slug
yeelight.on_off
Filter code method
Yeelight.onOff.skip(string?: reason)
Runtime method
runAction("yeelight.on_off", {})

Action fields

Device ID Dropdown list

Label
Which lights?
Slug
device_id
Required
true
Can have default value
false

On off option Dropdown list

Label
On, off or toggle?
Slug
on_off_option
Required
true
Can have default value
true
Filter code method
Yeelight.onOff.setOnOffOption(string: onOffOption)