Thanks for going back & forth with me on this. It suggested this in response to your post:
{
"name": "Sync color, brightness, and on/off from master bulb",
"actions": [
{
"if": {
"changes": {
"device": {
"devices": [
"master-bulb-id"
],
"component": "main",
"capability": "switch",
"attribute": "switch"
}
},
"then": [
{
"if": {
"equals": {
"left": {
"device": {
"devices": [
"master-bulb-id"
],
"component": "main",
"capability": "switch",
"attribute": "switch"
}
},
"right": {
"string": "on"
}
},
"then": [
{
"command": {
"devices": [
"bulb-1-id",
"bulb-2-id",
"bulb-3-id"
],
"commands": [
{
"component": "main",
"capability": "switch",
"command": "on"
}
]
}
}
],
"else": [
{
"command": {
"devices": [
"bulb-1-id",
"bulb-2-id",
"bulb-3-id"
],
"commands": [
{
"component": "main",
"capability": "switch",
"command": "off"
}
]
}
}
]
}
}
]
}
},
{
"if": {
"changes": {
"device": {
"devices": [
"master-bulb-id"
],
"component": "main",
"capability": "colorControl",
"attribute": "hue"
}
},
"then": [
{
"command": {
"devices": [
"bulb-1-id",
"bulb-2-id",
"bulb-3-id"
],
"commands": [
{
"component": "main",
"capability": "colorControl",
"command": "setColor",
"arguments": [
{
"map": {
"hue": {
"device": {
"devices": [
"master-bulb-id"
],
"component": "main",
"capability": "colorControl",
"attribute": "hue"
}
},
"saturation": {
"device": {
"devices": [
"master-bulb-id"
],
"component": "main",
"capability": "colorControl",
"attribute": "saturation"
}
}
}
}
]
}
]
}
}
]
}
},
{
"if": {
"changes": {
"device": {
"devices": [
"master-bulb-id"
],
"component": "main",
"capability": "switchLevel",
"attribute": "level"
}
},
"then": [
{
"command": {
"devices": [
"bulb-1-id",
"bulb-2-id",
"bulb-3-id"
],
"commands": [
{
"component": "main",
"capability": "switchLevel",
"command": "setLevel",
"arguments": [
{
"device": {
"devices": [
"master-bulb-id"
],
"component": "main",
"capability": "switchLevel",
"attribute": "level"
}
}
]
}
]
}
}
]
}
}
Are we getting warmer or is it just veering off course now?
EDIT: Sorry, posted the wrong one initially.