So klappt es mit Node Red bei mir. Mit whitemode und RGB und Helligkeit bei Milight LEDs
2019-11-16 14_49_40-Microsoft Store.png
[
{
"id": "bb6a24a9.7a0648",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": ""
},
{
"id": "4edc288f.fb8d2",
"type": "ioBroker out",
"z": "bb6a24a9.7a0648",
"name": "Zone 1 ON",
"topic": "milight.0.zone1.on",
"ack": "false",
"autoCreate": "false",
"x": 870,
"y": 340,
"wires": []
},
{
"id": "c7a3f1a9.66d89",
"type": "ioBroker out",
"z": "bb6a24a9.7a0648",
"name": "Zone 1 OFF",
"topic": "milight.0.zone1.off",
"ack": "false",
"autoCreate": "false",
"x": 1570,
"y": 460,
"wires": []
},
{
"id": "b32b2e08.f13fa",
"type": "amazon-echo-device",
"z": "bb6a24a9.7a0648",
"name": "Led Licht",
"topic": "Led Licht",
"x": 460,
"y": 220,
"wires": [
[
"eebe38ee.e7fba8"
]
]
},
{
"id": "972a82a4.7286a",
"type": "change",
"z": "bb6a24a9.7a0648",
"name": "",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "off",
"fromt": "str",
"to": "true",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 900,
"y": 400,
"wires": [
[
"c7a3f1a9.66d89"
]
]
},
{
"id": "eebe38ee.e7fba8",
"type": "switch",
"z": "bb6a24a9.7a0648",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "on",
"vt": "str"
},
{
"t": "eq",
"v": "off",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 640,
"y": 240,
"wires": [
[
"4edc288f.fb8d2",
"feaa5ed5.336b9",
"47531e52.0c6bb8",
"d1daa37a.6f41a"
],
[
"972a82a4.7286a"
]
]
},
{
"id": "feaa5ed5.336b9",
"type": "function",
"z": "bb6a24a9.7a0648",
"name": "Dimmer",
"func": "var newMsg = { payload: Math.round (msg.bri*100/254) } ;\nreturn newMsg;",
"outputs": 1,
"noerr": 0,
"x": 840,
"y": 160,
"wires": [
[
"99fac24d.8cb9"
]
]
},
{
"id": "99fac24d.8cb9",
"type": "ioBroker out",
"z": "bb6a24a9.7a0648",
"name": "Zone 1 Brightness",
"topic": "milight.0.zone1.brightness",
"ack": "false",
"autoCreate": "true",
"x": 1050,
"y": 160,
"wires": []
},
{
"id": "ffe043eb.210e5",
"type": "ioBroker out",
"z": "bb6a24a9.7a0648",
"name": "Zone 1 Color RGB",
"topic": "milight.0.zone1.rgb",
"ack": "false",
"autoCreate": "false",
"x": 1550,
"y": 140,
"wires": []
},
{
"id": "3f9207a4.c2f028",
"type": "amazon-echo-device",
"z": "bb6a24a9.7a0648",
"name": "Led Lampe",
"topic": "Led Lampe",
"x": 450,
"y": 280,
"wires": [
[
"eebe38ee.e7fba8"
]
]
},
{
"id": "47531e52.0c6bb8",
"type": "change",
"z": "bb6a24a9.7a0648",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "rgb",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1050,
"y": 220,
"wires": [
[
"ffe043eb.210e5"
]
]
},
{
"id": "b1acd561.57c8c8",
"type": "ioBroker out",
"z": "bb6a24a9.7a0648",
"name": "Zone 1 Brightness",
"topic": "milight.0.zone1.brightness",
"ack": "false",
"autoCreate": "true",
"x": 1550,
"y": 240,
"wires": []
},
{
"id": "d1daa37a.6f41a",
"type": "function",
"z": "bb6a24a9.7a0648",
"name": "",
"func": "var newMsg = { payload: Math.round (msg.bri*100/254) } ;\nvar new2Msg = {payload: true};\n\nif (msg.colormode == \"ct\") {\n return [ null, new2Msg ];\n} else {\n return [ newMsg, null ];\n}",
"outputs": 2,
"noerr": 0,
"x": 1290,
"y": 280,
"wires": [
[
"b1acd561.57c8c8"
],
[
"cdea20f1.8b3c98"
]
]
},
{
"id": "cdea20f1.8b3c98",
"type": "ioBroker out",
"z": "bb6a24a9.7a0648",
"name": "Zone 1 White mode",
"topic": "milight.0.zone1.whiteMode",
"ack": "false",
"autoCreate": "false",
"x": 1520,
"y": 340,
"wires": []
},
{
"id": "be63c33e.43c8f8",
"type": "amazon-echo-hub",
"z": "bb6a24a9.7a0648",
"port": "80",
"processinput": 0,
"x": 220,
"y": 220,
"wires": [
[
"b32b2e08.f13fa",
"3f9207a4.c2f028"
]
]
}
]