Madgeni wrote: ↑Sunday 29 April 2018 17:15
From the Google doc:
spectrumRGB Integer. Spectrum value in RGB (hex value as an integer)
I have to translate that integer to the hex for Domoticz - which is returning FF00 for green.
does this:
/json.htm?type=command¶m=setcolbrightnessvalue&idx=<IDXHERE>&hex=ff00&brightness=100&iswhite=false work? I wonder if it's needing the 0xFF00. But i've not had other people commenting on it not working
I tried it with: Domoticz V3.9227 / Build Hash: c15d5063 / Build Date: 2018-04-15 04:15:12.
Not working for green:
Code: Select all
/json.htm?type=command¶m=setcolbrightnessvalue&idx=999&hex=ff00&brightness=100&iswhite=false
Working for green:
Code: Select all
{
"status" : "OK",
"title" : "SetColBrightnessValue"
}
Code: Select all
/json.htm?type=command¶m=setcolbrightnessvalue&idx=999&hex=ff00&brightness=100&iswhite=true
And also working:
are the following nice colours. So I was able to obtain blue (baby blue) and green (avocado) in a different way:
Code: Select all
Set test light Amazon setcolbrightnessvalue: ID: 61f, bri: 47, color: '{m: 3, RGB: 7bffb5, CWWW: 0000, CT: 0}'
Set test light Amber setcolbrightnessvalue: ID: 61f, bri: 100, color: '{m: 3, RGB: ffbf00, CWWW: 0000, CT: 0}'
Set test light Purple setcolbrightnessvalue: ID: 61f, bri: 50, color: '{m: 3, RGB: ff00ff, CWWW: 0000, CT: 0}'
Set test light Avocado setcolbrightnessvalue: ID: 61f, bri: 50, color: '{m: 3, RGB: a8ff05, CWWW: 0000, CT: 0}'
Set test light BabyBlue setcolbrightnessvalue: ID: 11b, bri: 94, color: '{m: 3, RGB: 91dbff, CWWW: 0000, CT: 0}'
Set test light BabyPink setcolbrightnessvalue: ID: 11b, bri: 95, color: '{m: 3, RGB: ffcaca, CWWW: 0000, CT: 0}'
Set test light Bright Green setcolbrightnessvalue: ID: 11b, bri: 100, color: '{m: 3, RGB: 66ff00, CWWW: 0000, CT: 0}'
Set test light Brown setcolbrightnessvalue: ID: 11b, bri: 58, color: '{m: 3, RGB: ff7f00, CWWW: 0000, CT: 0}
Set test light Pink setcolbrightnessvalue: ID: 61f, bri: 100, color: '{m: 3, RGB: ffbfcb, CWWW: 0000, CT: 0}'