Explore Plans
Mobile menu Close menu
eWeLink Smart Home

Turn on or off light

This action will turn your light on or off.

Developer info

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.setOnoff Act Query(string: onoff_act_query)