[
{
"id": "4b75b843.d57a08",
"type": "function",
"z": "8bedb076.43c908",
"name": "von 25 auf 10",
"func": "msg.payload = msg.payload.toFixed(0).replace('25', '10');\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"x": 900,
"y": 190,
"wires": [
[
"afc0ad7a.2d973"
]
]
},
{
"id": "52b8dd38.adc534",
"type": "function",
"z": "8bedb076.43c908",
"name": "von 51 auf 20",
"func": "msg.payload = msg.payload.toFixed(0).replace('51', '20');\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"x": 900,
"y": 230,
"wires": [
[
"afc0ad7a.2d973"
]
]
},
{
"id": "5c73d88c.20ee28",
"type": "function",
"z": "8bedb076.43c908",
"name": "von 76 auf 30",
"func": "msg.payload = msg.payload.toFixed(0).replace('76', '30');\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"x": 900,
"y": 270,
"wires": [
[
"afc0ad7a.2d973"
]
]
},
{
"id": "df8c47a2.aefe78",
"type": "function",
"z": "8bedb076.43c908",
"name": "von 102 auf 40",
"func": "msg.payload = msg.payload.toFixed(0).replace('102', '40');\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"x": 900,
"y": 310,
"wires": [
[
"afc0ad7a.2d973"
]
]
},
{
"id": "864d5a0b.debc78",
"type": "function",
"z": "8bedb076.43c908",
"name": "von 127 auf 50",
"func": "msg.payload = msg.payload.toFixed(0).replace('127', '50');\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"x": 900,
"y": 350,
"wires": [
[
"afc0ad7a.2d973"
]
]
},
{
"id": "95f10198.ca70e",
"type": "function",
"z": "8bedb076.43c908",
"name": "von 153 auf 60",
"func": "msg.payload = msg.payload.toFixed(0).replace('153', '60');\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"x": 900,
"y": 390,
"wires": [
[
"afc0ad7a.2d973"
]
]
},
{
"id": "391c9c56.087fd4",
"type": "function",
"z": "8bedb076.43c908",
"name": "von 178 auf 70",
"func": "msg.payload = msg.payload.toFixed(0).replace('178', '70');\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"x": 900,
"y": 430,
"wires": [
[
"afc0ad7a.2d973"
]
]
},
{
"id": "65d08b93.14afb4",
"type": "function",
"z": "8bedb076.43c908",
"name": "von 204 auf 80",
"func": "msg.payload = msg.payload.toFixed(0).replace('204', '80');\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"x": 900,
"y": 470,
"wires": [
[
"afc0ad7a.2d973"
]
]
},
{
"id": "3eca08c4.cd98e8",
"type": "function",
"z": "8bedb076.43c908",
"name": "von 229 auf 90",
"func": "msg.payload = msg.payload.toFixed(0).replace('229', '90');\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"x": 900,
"y": 510,
"wires": [
[
"afc0ad7a.2d973"
]
]
},
{
"id": "82a1abb3.f36918",
"type": "function",
"z": "8bedb076.43c908",
"name": "von 255 auf 100",
"func": "msg.payload = msg.payload.toFixed(0).replace('255', '100');\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"x": 900,
"y": 550,
"wires": [
[
"afc0ad7a.2d973"
]
]
},
{
"id": "43383ae1.62cbb4",
"type": "amazon-echo-hub",
"z": "8bedb076.43c908",
"port": "80",
"enableinput": false,
"x": 110,
"y": 360,
"wires": [
[
"d1375ba6.0932a8",
"82350ee9.90093"
]
]
},
{
"id": "d5477c5.c81c78",
"type": "function",
"z": "8bedb076.43c908",
"name": "Brightness von 1 bis 254",
"func": "var newMsg = { payload: msg.bri } ;\n\nreturn newMsg\n",
"outputs": 1,
"noerr": 0,
"x": 500,
"y": 360,
"wires": [
[
"8cef745b.eeb438"
]
]
},
{
"id": "8cef745b.eeb438",
"type": "switch",
"z": "8bedb076.43c908",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "25",
"vt": "num"
},
{
"t": "eq",
"v": "51",
"vt": "str"
},
{
"t": "eq",
"v": "76",
"vt": "str"
},
{
"t": "eq",
"v": "102",
"vt": "str"
},
{
"t": "eq",
"v": "127",
"vt": "str"
},
{
"t": "eq",
"v": "153",
"vt": "str"
},
{
"t": "eq",
"v": "178",
"vt": "str"
},
{
"t": "eq",
"v": "204",
"vt": "str"
},
{
"t": "eq",
"v": "229",
"vt": "str"
},
{
"t": "eq",
"v": "255",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 10,
"x": 690,
"y": 360,
"wires": [
[
"4b75b843.d57a08"
],
[
"52b8dd38.adc534"
],
[
"5c73d88c.20ee28"
],
[
"df8c47a2.aefe78"
],
[
"864d5a0b.debc78"
],
[
"95f10198.ca70e"
],
[
"391c9c56.087fd4"
],
[
"65d08b93.14afb4"
],
[
"3eca08c4.cd98e8"
],
[
"82a1abb3.f36918"
]
]
},
{
"id": "93f1533f.ef096",
"type": "debug",
"z": "8bedb076.43c908",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 1540,
"y": 360,
"wires": []
},
{
"id": "afc0ad7a.2d973",
"type": "change",
"z": "8bedb076.43c908",
"name": "von string auf number ",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$number(payload)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1310,
"y": 360,
"wires": [
[
"93f1533f.ef096"
]
]
},
{
"id": "d1375ba6.0932a8",
"type": "amazon-echo-device",
"z": "8bedb076.43c908",
"name": "Test",
"topic": "",
"x": 290,
"y": 360,
"wires": [
[
"d5477c5.c81c78"
]
]
}
]