jason0x43 / hacs-hubitat

A Hubitat integration for Home Assistant
MIT License
196 stars 48 forks source link

Send HSL color to setColor command #147

Open amathews84 opened 2 years ago

amathews84 commented 2 years ago

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

jason0x43 commented 2 years ago

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.