Now I have made a group and I can turn the group on or off, but I would like to update the colour and brightness for all the devices belonging to that scene.
The Domoticz interface doesn't have that option

With the API-call:
Code: Select all
/json.htm?type=command¶m=getscenedevices&idx=2&isscene=true
To set an individual device you can use the API-call:{
"result" : [
{
"Color" : "{\"b\":255,\"cw\":0,\"g\":255,\"m\":3,\"r\":255,\"t\":0,\"ww\":0}",
"Command" : "On",
"DevID" : "374",
"DevRealIdx" : "374",
"ID" : "5",
"Level" : 24,
"Name" : "Lamp eettafel 2",
"OffDelay" : 0,
"OnDelay" : 0,
"Order" : 5,
"SubType" : "RGBWW",
"Type" : "Color Switch"
},
{
"Color" : "{\"b\":255,\"cw\":0,\"g\":255,\"m\":3,\"r\":255,\"t\":0,\"ww\":0}",
"Command" : "On",
"DevID" : "375",
"DevRealIdx" : "375",
"ID" : "6",
"Level" : 24,
"Name" : "Lamp eettafel 4",
"OffDelay" : 0,
"OnDelay" : 0,
"Order" : 6,
"SubType" : "RGBWW",
"Type" : "Color Switch"
}
],
"status" : "OK",
"title" : "GetSceneDevices"
}
Code: Select all
/json.htm?type=command¶m=setcolbrightnessvalue&idx=130&color={"m":3,"t":0,"r":0,"g":0,"b":50,"cw":0,"ww":0}&brightness=100
Code: Select all
/json.htm?type=command¶m=updatescenedevice&idx=XYZ&color={"m":3,"t":0,"r":0,"g":0,"b":50,"cw":0,"ww":0}&brightness=100
But which idx should i use? The DevID's or the ID's of the scenedevices?