hacs-hubitat icon indicating copy to clipboard operation
hacs-hubitat copied to clipboard

Send HSL color to setColor command

Open amathews84 opened this issue 4 years ago • 1 comments

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: image

image

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]'

amathews84 avatar Nov 02 '21 04:11 amathews84

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.

jason0x43 avatar Nov 25 '21 13:11 jason0x43