A beginner's guide
Explore Plans
Mobile menu Close menu
HELLA ONYXHELLA ONYX

Control lights

This action will turn the selected devices on/off or set the defined brightness.

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 the selected devices on/off or set the defined brightness.
API endpoint slug
hella_onyx.control_lights
Filter code method
HellaOnyx.controlLights.skip(string?: reason)
Runtime method
runAction("hella_onyx.control_lights", {})

Action fields

Device or group Dropdown list

Label
Device or group with lights
Helper text
Which device or group to control
Slug
device_or_group
Required
true
Can have default value
false

Action Dropdown list

Label
Action
Helper text
Action of the light to execute
Slug
action
Required
true
Can have default value
true
Filter code method
HellaOnyx.controlLights.setAction(string: action)

Brightness Dropdown list

Label
Brightness
Helper text
Is only executed if the 'Action' field is set to 'Brightness'
Slug
brightness
Required
false
Can have default value
true
Filter code method
HellaOnyx.controlLights.setBrightness(string: brightness)