Automate Reddit
Explore Plans
Mobile menu Close menu
eWeLink Smart HomeeWeLink Smart Home

Turn on or off light

This action will turn your light on or 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 turn your light on or off.
API endpoint slug
ewelink.light_switch_action
Filter code method
Ewelink.lightSwitchAction.skip(string?: reason)
Runtime method
runAction("ewelink.light_switch_action", {})

Action fields

Light switch action device Dropdown list

Label
Which device?
Slug
light_switch_action_device
Required
true
Can have default value
false

Onoff act query Dropdown list

Label
Turn on or off?
Slug
onoff_act_query
Required
true
Can have default value
true
Filter code method
Ewelink.lightSwitchAction.setOnoffActQuery(string: onoffActQuery)