hacs-hubitat
hacs-hubitat copied to clipboard
Send HSL color to setColor command
I checked the capability in Maker API: {"command":"setColor"}
I copied the service call and arguments the same way it is shown in Hubitat device page:


When I test by running actions in Home Assistant the light does not get updated. Any idea if I am doing something wrong? Here is my YAML code for the action:
service: hubitat.send_command data: entity_id: light.living_inovelli_light_strip command: setcolor args: '[hue:22,saturation:100,level:100]'
As you mentioned in this post, this can be done with a JSON-formatted argument value, like:
{"hue": 22, "saturation": 100, "level": 100 }
I'm leaving this open as a reminder to update the documentation.