@h.tag01:
Würdest Du den exportierten Flow bitte mal zur Verfügung stellen? `
Jo, kann ich machen…
[
{
"id": "6eef4a5e.3513a4",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "d60a45a5.f0c038",
"type": "hue-temperature",
"z": "6eef4a5e.3513a4",
"name": "Hue temperature sensor 1",
"bridge": "d6e7498e.527ab",
"sensorid": "12",
"x": 150,
"y": 60,
"wires": [
[
"ba4c2115.b0f2f8",
"f39dc9a5.922d6"
]
]
},
{
"id": "ba4c2115.b0f2f8",
"type": "function",
"z": "6eef4a5e.3513a4",
"name": "Celsius",
"func": "var newMsg = { payload: msg.payload.celsius };\nreturn newMsg;\n",
"outputs": 1,
"noerr": 0,
"x": 380,
"y": 40,
"wires": [
[
"86c0b005.216b8"
]
]
},
{
"id": "86c0b005.216b8",
"type": "ioBroker out",
"z": "6eef4a5e.3513a4",
"name": "temperatursensor bad",
"topic": "hue-temperatur-bad",
"ack": "true",
"autoCreate": "true",
"x": 760,
"y": 40,
"wires": [],
"icon": "node-red-contrib-huemagic/hue-temperature.png"
},
{
"id": "aae3a53a.dd0bb8",
"type": "hue-temperature",
"z": "6eef4a5e.3513a4",
"name": "Hue temperature sensor 2",
"bridge": "d6e7498e.527ab",
"sensorid": "16",
"x": 150,
"y": 180,
"wires": [
[
"6f04bc3a.026f0c",
"de546550.8b61c8"
]
]
},
{
"id": "6f04bc3a.026f0c",
"type": "function",
"z": "6eef4a5e.3513a4",
"name": "Celsius",
"func": "var newMsg = { payload: msg.payload.celsius };\nreturn newMsg;\n",
"outputs": 1,
"noerr": 0,
"x": 380,
"y": 160,
"wires": [
[
"3bf3fdb8.436f1a"
]
]
},
{
"id": "aa810b2a.723ed",
"type": "hue-brightness",
"z": "6eef4a5e.3513a4",
"name": "Hue ambient light sensor 1",
"bridge": "d6e7498e.527ab",
"sensorid": "14",
"x": 150,
"y": 300,
"wires": [
[
"31d92cca.c50d6c"
]
]
},
{
"id": "42050c13.9c016c",
"type": "hue-brightness",
"z": "6eef4a5e.3513a4",
"name": "Hue ambient light sensor 2",
"bridge": "d6e7498e.527ab",
"sensorid": "18",
"x": 150,
"y": 420,
"wires": [
[
"375e5e42.f5d2ea",
"e9127b95.38407",
"a3406e7f.7c4b38"
]
]
},
{
"id": "31d92cca.c50d6c",
"type": "function",
"z": "6eef4a5e.3513a4",
"name": "Lightlevel",
"func": "var newMsg = { payload: msg.payload.lightLevel };\nreturn newMsg;\n",
"outputs": 1,
"noerr": 0,
"x": 380,
"y": 300,
"wires": [
[
"9bcb2577.6d42b",
"ed69f8d3.97802"
]
]
},
{
"id": "375e5e42.f5d2ea",
"type": "function",
"z": "6eef4a5e.3513a4",
"name": "Lightlevel",
"func": "var newMsg = { payload: msg.payload.lightLevel };\nreturn newMsg;\n",
"outputs": 1,
"noerr": 0,
"x": 380,
"y": 420,
"wires": [
[
"cd3572a9.337e08",
"956b6f55.31c0d8"
]
]
},
{
"id": "c6f43ef1.f4fc2",
"type": "ioBroker out",
"z": "6eef4a5e.3513a4",
"name": "lichtsensor gang lux",
"topic": "hue-lightlevel-gang-lux",
"ack": "true",
"autoCreate": "true",
"x": 760,
"y": 400,
"wires": [],
"icon": "node-red-contrib-huemagic/hue-brightness.png"
},
{
"id": "8b73d132.3206f8",
"type": "ioBroker out",
"z": "6eef4a5e.3513a4",
"name": "lichtsensor bad lux",
"topic": "hue-lightlevel-bad-lux",
"ack": "true",
"autoCreate": "true",
"x": 750,
"y": 280,
"wires": [],
"icon": "node-red-contrib-huemagic/hue-brightness.png"
},
{
"id": "3bf3fdb8.436f1a",
"type": "ioBroker out",
"z": "6eef4a5e.3513a4",
"name": "temperatursensor gang",
"topic": "hue-temperatur-gang",
"ack": "true",
"autoCreate": "true",
"x": 770,
"y": 160,
"wires": [],
"icon": "node-red-contrib-huemagic/hue-temperature.png"
},
{
"id": "f39dc9a5.922d6",
"type": "function",
"z": "6eef4a5e.3513a4",
"name": "Battery",
"func": "var newMsg = { payload: msg.info.battery };\nreturn newMsg;\n",
"outputs": 1,
"noerr": 0,
"x": 380,
"y": 100,
"wires": [
[
"cdb4f675.7a2d2"
]
]
},
{
"id": "cdb4f675.7a2d2",
"type": "ioBroker out",
"z": "6eef4a5e.3513a4",
"name": "battery bad",
"topic": "hue-battery-bad",
"ack": "true",
"autoCreate": "true",
"x": 730,
"y": 100,
"wires": []
},
{
"id": "de546550.8b61c8",
"type": "function",
"z": "6eef4a5e.3513a4",
"name": "Battery",
"func": "var newMsg = { payload: msg.info.battery };\nreturn newMsg;\n",
"outputs": 1,
"noerr": 0,
"x": 380,
"y": 220,
"wires": [
[
"1b553526.61842b"
]
]
},
{
"id": "1b553526.61842b",
"type": "ioBroker out",
"z": "6eef4a5e.3513a4",
"name": "battery gang",
"topic": "hue-battery-gang",
"ack": "true",
"autoCreate": "true",
"x": 730,
"y": 220,
"wires": []
},
{
"id": "cd3572a9.337e08",
"type": "function",
"z": "6eef4a5e.3513a4",
"name": "Umrechnung in Lux",
"func": "zw = msg.payload-1;\nzw1 = zw/10000;\nzw2 = Math.pow(10,zw1);\nmsg.payload = Math.round(zw2);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 550,
"y": 400,
"wires": [
[
"c6f43ef1.f4fc2"
]
]
},
{
"id": "9bcb2577.6d42b",
"type": "function",
"z": "6eef4a5e.3513a4",
"name": "Umrechnung in Lux",
"func": "zw = msg.payload-1;\nzw1 = zw/10000;\nzw2 = Math.pow(10,zw1);\nmsg.payload = Math.round(zw2);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 550,
"y": 280,
"wires": [
[
"8b73d132.3206f8"
]
]
},
{
"id": "e9127b95.38407",
"type": "debug",
"z": "6eef4a5e.3513a4",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "info",
"x": 440,
"y": 460,
"wires": []
},
{
"id": "aa416db1.e61a58",
"type": "hue-motion",
"z": "6eef4a5e.3513a4",
"name": "Bad Sensor",
"bridge": "d6e7498e.527ab",
"sensorid": "13",
"x": 110,
"y": 520,
"wires": [
[
"7b05257b.7bdf7c"
]
]
},
{
"id": "f0bae6df.760df",
"type": "debug",
"z": "6eef4a5e.3513a4",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"x": 530,
"y": 560,
"wires": []
},
{
"id": "7b05257b.7bdf7c",
"type": "function",
"z": "6eef4a5e.3513a4",
"name": "Motion",
"func": "var newMsg = { payload: msg.payload.motion };\nreturn newMsg;\n",
"outputs": 1,
"noerr": 0,
"x": 370,
"y": 520,
"wires": [
[
"f0bae6df.760df",
"b79f03a.37a01"
]
]
},
{
"id": "b79f03a.37a01",
"type": "ioBroker out",
"z": "6eef4a5e.3513a4",
"name": "motion bad",
"topic": "hue-motion-bad",
"ack": "true",
"autoCreate": "true",
"x": 730,
"y": 520,
"wires": []
},
{
"id": "827a3e17.c0c85",
"type": "hue-motion",
"z": "6eef4a5e.3513a4",
"name": "Gang Sensor",
"bridge": "d6e7498e.527ab",
"sensorid": "17",
"x": 120,
"y": 600,
"wires": [
[
"6f9b2f18.61569"
]
]
},
{
"id": "6f9b2f18.61569",
"type": "function",
"z": "6eef4a5e.3513a4",
"name": "Motion",
"func": "var newMsg = { payload: msg.payload.motion };\nreturn newMsg;\n",
"outputs": 1,
"noerr": 0,
"x": 370,
"y": 600,
"wires": [
[
"fed96ddb.7d2cf8"
]
]
},
{
"id": "fed96ddb.7d2cf8",
"type": "ioBroker out",
"z": "6eef4a5e.3513a4",
"name": "motion gang",
"topic": "hue-motion-gang",
"ack": "true",
"autoCreate": "true",
"x": 730,
"y": 600,
"wires": []
},
{
"id": "a3406e7f.7c4b38",
"type": "debug",
"z": "6eef4a5e.3513a4",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"x": 270,
"y": 480,
"wires": []
},
{
"id": "956b6f55.31c0d8",
"type": "ioBroker out",
"z": "6eef4a5e.3513a4",
"name": "lichtsensor gang raw",
"topic": "hue-lightlevel-gang-raw",
"ack": "true",
"autoCreate": "true",
"x": 762,
"y": 450,
"wires": [],
"icon": "node-red-contrib-huemagic/hue-brightness.png"
},
{
"id": "ed69f8d3.97802",
"type": "ioBroker out",
"z": "6eef4a5e.3513a4",
"name": "lichtsensor bad raw",
"topic": "hue-lightlevel-bad-raw",
"ack": "true",
"autoCreate": "true",
"x": 750,
"y": 340,
"wires": [],
"icon": "node-red-contrib-huemagic/hue-brightness.png"
},
{
"id": "d6e7498e.527ab",
"type": "hue-bridge",
"z": "",
"name": "Philips hue",
"bridge": "192.168.x.x",
"key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"interval": "3000"
}
]