Closed obrassard closed 1 year ago
It seems to be an issue with the SmartThings API. Indeed, the API returns a cast error when trying to set hue or saturation with the following body :
[{"capability":"colorControl","command":"setHue","arguments":[10]}]
The request body seems ok according to SmartThings docs but still, we receive an error
However, when changing the color using the setColor
command it work...
Thanks for looking into this. I am currently at the AWS conference. I'll be delayed in trying to fix this.
Now worry, I started a thread on SmartThings Developers Community to see if they can do something on their side
I'm going to fix this by using the setColor command if I detect an error sending individual hue and saturation. Will need you to test for me.
@iklein99 Perfect, I think that's the best solution considering the information we have. I'm curious to see your PR, as I had tried to do this fix the other day, but wasn't sure how to proceed!
Fixed in 1.4.17. Try it out and let me know.
@iklein99 Unfortunately it does not work
The light bulb colour does not change
Ok. Think I found the issue. Try 1.4.18.
@iklein99 It works ! Although, it seems that some colors are weird (between what I choose in the Home app, and the color that is really on the bulb), but it is probably not related to your fix
it seems that some colors are weird
Especially when switching quickly between colours... but anyway it's not a big deal!
Describe The Bug:
When trying to change the colour of a RGB lightbulb the Home app, an error is thrown by the plugin. It seem that there is an issue with the API call that is made to Smart Things API when trying to set a new hue or saturation.
To Reproduce:
Note : Changing the colour in the SmartThings app works properly.
Expected behavior:
The colour of the lightbulb should be updated properly like it is when changing the colour directly in SmartThings
Logs:
Plugin Config:
Environment: