@"Aliakbar Eski"
That did not work. I set the color to: 255, 128, 255. The brightness stayed at 20% and the panel turned pink.
Thhis is the code I am using. When sent, this effect sets one panel to red (255 0 0 ) for 1 second and then to off (0 0 0) for 1/2 second and repeats for 10 hours.
Here are the color codes: colorA is 255 0 0 and colorB 0 0 0.
{
"write": {
"command": "displayTemp",
"colorType": "HSB",
"duration": 36000,
"loop": true,
"version": "2.0",
"animType": "custom",
"animData": "1 5109 4 {{colorA}} 0 0 {{colorA}} 0 10 {{colorB}} 0 0 {{colorB}} 0 5",
"palette": [
{ "hue": 0, "saturation": 100, "brightness": 100 },
{ "hue": 0, "saturation": 100, "brightness": 100 },
{ "hue": 0, "saturation": 0, "brightness": 0 },
{ "hue": 0, "saturation": 0, "brightness": 0 },
]
}
}
This is how the controller is set before the above code is sent. I have shortened the JSON code to make it easier to read. As you can see, the brightness
is set to 20% and the color
is set to blue (0 0 255).
{
"effects": {
"effectsList": [], "select": "*Solid*"
},
"state": {
"brightness": { "value": 20, "max": 100, "min": 0 },
"colorMode": "hs",
"ct": { "value": 1200, "max": 6500, "min": 1200 },
"hue": { "value": 240, "max": 360, "min": 0 },
"on": { "value": true },
"sat": { "value": 100, "max": 100, "min": 0 }
}
}
It works as I want except it does not set the single panel to 100% brightness. Maybe there are more missing key values in the documentation or there are still issues with the firmware.
Best regards,
Your ole pal, Gary