Group Location
Explore Plans
Mobile menu Close menu
Hager IoTHager IoT

Set color

This Action will change the color of your lights. NOTE: Accepts color names and CSS hex color values. Defaults to white if no color match is found.

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 change the color of your lights. NOTE: Accepts color names and CSS hex color values. Defaults to white if no color match is found.
API endpoint slug
hager_iot.color
Filter code method
HagerIot.color.skip(string?: reason)
Runtime method
runAction("hager_iot.color", {})

Action fields

Cid Dropdown list

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

Color Text input > Other

Label
Color value or name
Helper text
Accepts color names or CSS hex codes
Slug
color
Required
true
Can have default value
true
Filter code method
HagerIot.color.setColor(string: color)