Automate Reddit
Explore Plans
Mobile menu Close menu
YeelightYeelight

Toggle lights on/off

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

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 turn on, turn off or toggle your lights.
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)