This function does not check if the light actually has the capability to change color,
Lamp metadata, obtainable by get_light_data
should contain that information.
1 | set_light_color(bridge_url, user, light_id, color)
|
bridge_url |
Hue bridge URL E.g. "http://192.168.1.100" |
user |
user id, to be obtained by |
light_id |
used to address a specific light. Can be looked up by |
color |
hex-encoded color, e.g. "#FF0000" |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.