2042 lines
54 KiB
JSON
2042 lines
54 KiB
JSON
[
|
||
{
|
||
"id": "9154ab40.dca89",
|
||
"type": "tab",
|
||
"label": "Lampen",
|
||
"disabled": false,
|
||
"info": ""
|
||
},
|
||
{
|
||
"id": "336b672e.12f108",
|
||
"type": "tab",
|
||
"label": "Bewegungssensoren",
|
||
"disabled": false,
|
||
"info": ""
|
||
},
|
||
{
|
||
"id": "573ae2ea.132a9c",
|
||
"type": "tab",
|
||
"label": "Schalter",
|
||
"disabled": false,
|
||
"info": ""
|
||
},
|
||
{
|
||
"id": "494660ad.86d1d8",
|
||
"type": "tab",
|
||
"label": "Lampen Neu",
|
||
"disabled": false,
|
||
"info": ""
|
||
},
|
||
{
|
||
"id": "fdb3ecaa.03eda",
|
||
"type": "tab",
|
||
"label": "Multisensoren",
|
||
"disabled": false,
|
||
"info": ""
|
||
},
|
||
{
|
||
"id": "2e5e876.fb6b4f8",
|
||
"type": "subflow",
|
||
"name": "ZigbeePrep",
|
||
"info": "",
|
||
"category": "",
|
||
"in": [
|
||
{
|
||
"x": 200,
|
||
"y": 280,
|
||
"wires": [
|
||
{
|
||
"id": "5c167988.b67728"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"out": [
|
||
{
|
||
"x": 720,
|
||
"y": 220,
|
||
"wires": [
|
||
{
|
||
"id": "965ae3f2.011fd",
|
||
"port": 0
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"x": 720,
|
||
"y": 280,
|
||
"wires": [
|
||
{
|
||
"id": "965ae3f2.011fd",
|
||
"port": 1
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"x": 720,
|
||
"y": 340,
|
||
"wires": [
|
||
{
|
||
"id": "965ae3f2.011fd",
|
||
"port": 2
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"x": 720,
|
||
"y": 400,
|
||
"wires": [
|
||
{
|
||
"id": "965ae3f2.011fd",
|
||
"port": 3
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"inputLabels": [
|
||
"JSON String"
|
||
],
|
||
"outputLabels": [
|
||
"On/Off",
|
||
"Bri",
|
||
"CT",
|
||
"XY"
|
||
]
|
||
},
|
||
{
|
||
"id": "d68bb8c4.1e4db8",
|
||
"type": "subflow",
|
||
"name": "HumidityTemperatureJoiner",
|
||
"info": "",
|
||
"category": "",
|
||
"in": [
|
||
{
|
||
"x": 380,
|
||
"y": 300,
|
||
"wires": [
|
||
{
|
||
"id": "1c7b501f.d79"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"out": [
|
||
{
|
||
"x": 820,
|
||
"y": 340,
|
||
"wires": [
|
||
{
|
||
"id": "1c7b501f.d79",
|
||
"port": 0
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"env": [
|
||
{
|
||
"name": "Location",
|
||
"type": "str",
|
||
"value": "undefined"
|
||
}
|
||
],
|
||
"meta": {},
|
||
"color": "#DDAA99",
|
||
"status": {
|
||
"x": 760,
|
||
"y": 440,
|
||
"wires": [
|
||
{
|
||
"id": "ec9f626de687beb6",
|
||
"port": 0
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"id": "9072089b.a7c1a",
|
||
"type": "deconz-server",
|
||
"name": "deconz",
|
||
"ip": "172.16.2.21",
|
||
"port": "80",
|
||
"apikey": "F954D5F7C3",
|
||
"ws_port": "443",
|
||
"secure": false,
|
||
"polling": "15"
|
||
},
|
||
{
|
||
"id": "51edc7eb.9519d8",
|
||
"type": "mqtt-broker",
|
||
"name": "broker",
|
||
"broker": "172.16.2.16",
|
||
"port": "1883",
|
||
"clientid": "",
|
||
"usetls": false,
|
||
"compatmode": true,
|
||
"keepalive": "60",
|
||
"cleansession": true,
|
||
"birthTopic": "",
|
||
"birthQos": "0",
|
||
"birthPayload": "",
|
||
"closeTopic": "",
|
||
"closeQos": "0",
|
||
"closePayload": "",
|
||
"willTopic": "",
|
||
"willQos": "0",
|
||
"willPayload": ""
|
||
},
|
||
{
|
||
"id": "3d4f873.8f7c278",
|
||
"type": "ui_base",
|
||
"theme": {
|
||
"name": "theme-light",
|
||
"lightTheme": {
|
||
"default": "#0094CE",
|
||
"baseColor": "#0094CE",
|
||
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
|
||
"edited": true,
|
||
"reset": false
|
||
},
|
||
"darkTheme": {
|
||
"default": "#097479",
|
||
"baseColor": "#097479",
|
||
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
|
||
"edited": false
|
||
},
|
||
"customTheme": {
|
||
"name": "Untitled Theme 1",
|
||
"default": "#4B7930",
|
||
"baseColor": "#4B7930",
|
||
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
|
||
},
|
||
"themeState": {
|
||
"base-color": {
|
||
"default": "#0094CE",
|
||
"value": "#0094CE",
|
||
"edited": false
|
||
},
|
||
"page-titlebar-backgroundColor": {
|
||
"value": "#0094CE",
|
||
"edited": false
|
||
},
|
||
"page-backgroundColor": {
|
||
"value": "#fafafa",
|
||
"edited": false
|
||
},
|
||
"page-sidebar-backgroundColor": {
|
||
"value": "#ffffff",
|
||
"edited": false
|
||
},
|
||
"group-textColor": {
|
||
"value": "#1bbfff",
|
||
"edited": false
|
||
},
|
||
"group-borderColor": {
|
||
"value": "#ffffff",
|
||
"edited": false
|
||
},
|
||
"group-backgroundColor": {
|
||
"value": "#ffffff",
|
||
"edited": false
|
||
},
|
||
"widget-textColor": {
|
||
"value": "#111111",
|
||
"edited": false
|
||
},
|
||
"widget-backgroundColor": {
|
||
"value": "#0094ce",
|
||
"edited": false
|
||
},
|
||
"widget-borderColor": {
|
||
"value": "#ffffff",
|
||
"edited": false
|
||
},
|
||
"base-font": {
|
||
"value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
|
||
}
|
||
},
|
||
"angularTheme": {
|
||
"primary": "indigo",
|
||
"accents": "blue",
|
||
"warn": "red",
|
||
"background": "grey"
|
||
}
|
||
},
|
||
"site": {
|
||
"name": "Node-RED Dashboard",
|
||
"hideToolbar": "false",
|
||
"allowSwipe": "false",
|
||
"lockMenu": "false",
|
||
"allowTempTheme": "true",
|
||
"dateFormat": "DD/MM/YYYY",
|
||
"sizes": {
|
||
"sx": 48,
|
||
"sy": 48,
|
||
"gx": 6,
|
||
"gy": 6,
|
||
"cx": 6,
|
||
"cy": 6,
|
||
"px": 0,
|
||
"py": 0
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"id": "6d71eac1.591d9c",
|
||
"type": "mqtt in",
|
||
"z": "9154ab40.dca89",
|
||
"name": "",
|
||
"topic": "deconzhelper/deckenlampematthiasonoff",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 300,
|
||
"y": 180,
|
||
"wires": [
|
||
[
|
||
"7e83263e.9dc9b"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "7e83263e.9dc9b",
|
||
"type": "deconz-output",
|
||
"z": "9154ab40.dca89",
|
||
"name": "Matthias Deckenlampe on/off",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_4",
|
||
"device_name": "○ Matthias Deckenlampe",
|
||
"command": "on",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 800,
|
||
"y": 180,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "cc42e300.590bc8",
|
||
"type": "deconz-output",
|
||
"z": "9154ab40.dca89",
|
||
"name": "Matthias Deckenlampe bri",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_4",
|
||
"device_name": "○ Matthias Deckenlampe",
|
||
"command": "bri",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 790,
|
||
"y": 140,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "955b0be6.cc1ce",
|
||
"type": "mqtt in",
|
||
"z": "9154ab40.dca89",
|
||
"name": "",
|
||
"topic": "deconzhelper/deckenlampematthiasbri",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 290,
|
||
"y": 140,
|
||
"wires": [
|
||
[
|
||
"cc42e300.590bc8"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "363b18e9.a736d8",
|
||
"type": "mqtt in",
|
||
"z": "9154ab40.dca89",
|
||
"name": "",
|
||
"topic": "deconzhelper/regallampematthiasbri",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 280,
|
||
"y": 60,
|
||
"wires": [
|
||
[
|
||
"ddca25cb.254328"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "ddca25cb.254328",
|
||
"type": "deconz-output",
|
||
"z": "9154ab40.dca89",
|
||
"name": "Matthias Regallampe bri",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_16",
|
||
"device_name": "○ Matthias Regallampe",
|
||
"command": "bri",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 790,
|
||
"y": 60,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "7baf52c1.28f75c",
|
||
"type": "mqtt in",
|
||
"z": "9154ab40.dca89",
|
||
"name": "",
|
||
"topic": "deconzhelper/regallampematthiasonoff",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 290,
|
||
"y": 100,
|
||
"wires": [
|
||
[
|
||
"c4b97124.f4da68"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "c4b97124.f4da68",
|
||
"type": "deconz-output",
|
||
"z": "9154ab40.dca89",
|
||
"name": "Matthias Regallampe on/off",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_16",
|
||
"device_name": "○ Matthias Regallampe",
|
||
"command": "on",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 800,
|
||
"y": 100,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "ede34f24.7eaca",
|
||
"type": "mqtt in",
|
||
"z": "9154ab40.dca89",
|
||
"name": "",
|
||
"topic": "deconzhelper/regallampematthiasxy",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 280,
|
||
"y": 20,
|
||
"wires": [
|
||
[
|
||
"b5d23ae3.a98348"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "151e842c.4a932c",
|
||
"type": "deconz-output",
|
||
"z": "9154ab40.dca89",
|
||
"name": "Matthias Regallampe xy",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_16",
|
||
"device_name": "○ Matthias Regallampe",
|
||
"command": "xy",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 790,
|
||
"y": 20,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "b5d23ae3.a98348",
|
||
"type": "json",
|
||
"z": "9154ab40.dca89",
|
||
"name": "",
|
||
"property": "payload",
|
||
"action": "",
|
||
"pretty": false,
|
||
"x": 590,
|
||
"y": 20,
|
||
"wires": [
|
||
[
|
||
"151e842c.4a932c"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "2c3f3c72.e7fc84",
|
||
"type": "deconz-input",
|
||
"z": "336b672e.12f108",
|
||
"name": "Bewegung Schuppen Temperatur",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "00:17:88:01:06:47:61:d3-02-0402",
|
||
"device_name": "Bewegung Schuppen : ZHATemperature",
|
||
"topic": "NR/Daemmerungsschalter/Schuppen/Temperatur",
|
||
"state": "0",
|
||
"output": "always",
|
||
"outputAtStartup": true,
|
||
"x": 190,
|
||
"y": 120,
|
||
"wires": [
|
||
[
|
||
"861c7004.0b6c18"
|
||
],
|
||
[
|
||
"93ebbc85.6d13a8",
|
||
"13181e60.2e9ed2"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "861c7004.0b6c18",
|
||
"type": "debug",
|
||
"z": "336b672e.12f108",
|
||
"name": "Dämmerungsschalter Schuppen Temperatur",
|
||
"active": false,
|
||
"tosidebar": true,
|
||
"console": false,
|
||
"tostatus": false,
|
||
"complete": "true",
|
||
"x": 670,
|
||
"y": 120,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "216dc9a2.47eec6",
|
||
"type": "deconz-input",
|
||
"z": "336b672e.12f108",
|
||
"name": "Bewegung Schuppen Helligkeit",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "00:17:88:01:06:47:61:d3-02-0400",
|
||
"device_name": "Bewegung Schuppen : ZHALightLevel",
|
||
"topic": "NR/Daemmerungsschalter/Schuppen/Helligkeit",
|
||
"state": "0",
|
||
"output": "always",
|
||
"outputAtStartup": true,
|
||
"x": 190,
|
||
"y": 180,
|
||
"wires": [
|
||
[
|
||
"56d13dd8.a483ec"
|
||
],
|
||
[
|
||
"93ebbc85.6d13a8",
|
||
"13181e60.2e9ed2"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "56d13dd8.a483ec",
|
||
"type": "debug",
|
||
"z": "336b672e.12f108",
|
||
"name": "Dämmerungsschalter Schuppen Helligkeit",
|
||
"active": false,
|
||
"tosidebar": true,
|
||
"console": false,
|
||
"tostatus": false,
|
||
"complete": "true",
|
||
"x": 660,
|
||
"y": 160,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "44ef5497.8e6044",
|
||
"type": "deconz-input",
|
||
"z": "336b672e.12f108",
|
||
"name": "Bewegung Schuppen Bewegung",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "00:17:88:01:06:47:61:d3-02-0406",
|
||
"device_name": "Motion Sensor Schuppen : ZHAPresence",
|
||
"topic": "NR/Daemmerungsschalter/Schuppen/Bewegung",
|
||
"state": "0",
|
||
"output": "always",
|
||
"outputAtStartup": true,
|
||
"x": 190,
|
||
"y": 240,
|
||
"wires": [
|
||
[
|
||
"d2d934b.dcd69c8"
|
||
],
|
||
[
|
||
"93ebbc85.6d13a8",
|
||
"13181e60.2e9ed2",
|
||
"e134a7f0.05ce78"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "d2d934b.dcd69c8",
|
||
"type": "debug",
|
||
"z": "336b672e.12f108",
|
||
"name": "Dämmerungsschalter Schuppen Bewegung",
|
||
"active": false,
|
||
"tosidebar": true,
|
||
"console": false,
|
||
"tostatus": false,
|
||
"complete": "true",
|
||
"x": 670,
|
||
"y": 200,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "93ebbc85.6d13a8",
|
||
"type": "debug",
|
||
"z": "336b672e.12f108",
|
||
"name": "Dämmerungsschalter Schuppen Ausgang 2",
|
||
"active": true,
|
||
"tosidebar": true,
|
||
"console": false,
|
||
"tostatus": false,
|
||
"complete": "true",
|
||
"x": 670,
|
||
"y": 240,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "13181e60.2e9ed2",
|
||
"type": "mqtt out",
|
||
"z": "336b672e.12f108",
|
||
"name": "",
|
||
"topic": "",
|
||
"qos": "",
|
||
"retain": "",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 550,
|
||
"y": 280,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "f8061c86.fe96e8",
|
||
"type": "deconz-input",
|
||
"z": "573ae2ea.132a9c",
|
||
"name": "Tradfri Schalter",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "bc:33:ac:ff:fe:b3:47:6e-01-1000",
|
||
"device_name": "TRADFRI on/off switch : ZHASwitch",
|
||
"topic": "",
|
||
"state": "0",
|
||
"output": "always",
|
||
"outputAtStartup": true,
|
||
"x": 248,
|
||
"y": 113,
|
||
"wires": [
|
||
[
|
||
"94bc2d2.4d51bd"
|
||
],
|
||
[
|
||
"583fc99d.d81fc",
|
||
"bf0a8f9a.865f08"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "94bc2d2.4d51bd",
|
||
"type": "debug",
|
||
"z": "573ae2ea.132a9c",
|
||
"name": "Tradfri Schalter Ausgang 1",
|
||
"active": false,
|
||
"tosidebar": true,
|
||
"console": false,
|
||
"tostatus": false,
|
||
"complete": "true",
|
||
"x": 648,
|
||
"y": 113,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "583fc99d.d81fc",
|
||
"type": "debug",
|
||
"z": "573ae2ea.132a9c",
|
||
"name": "Tradfri Schalter Ausgang 2",
|
||
"active": true,
|
||
"tosidebar": true,
|
||
"console": false,
|
||
"tostatus": false,
|
||
"complete": "true",
|
||
"x": 648,
|
||
"y": 153,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "e134a7f0.05ce78",
|
||
"type": "function",
|
||
"z": "336b672e.12f108",
|
||
"name": "MotionDetector",
|
||
"func": "if (('MotionDetected' in msg.payload) &&\n (msg.payload.MotionDetected)) {\n msg.payload = \"True\"\n return msg\n}\n\nreturn",
|
||
"outputs": 1,
|
||
"noerr": 0,
|
||
"x": 360,
|
||
"y": 380,
|
||
"wires": [
|
||
[
|
||
"e3e9a156.35d758",
|
||
"3ccb3802.6e3ef8"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "e3e9a156.35d758",
|
||
"type": "mqtt out",
|
||
"z": "336b672e.12f108",
|
||
"name": "",
|
||
"topic": "NR/MotionDetector/Schuppen",
|
||
"qos": "",
|
||
"retain": "",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 670,
|
||
"y": 380,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "965ae3f2.011fd",
|
||
"type": "function",
|
||
"z": "2e5e876.fb6b4f8",
|
||
"name": "ZigbeePrep",
|
||
"func": "function typeChecker(payload, attr, reqType, defaultValue, minValue=undefined, maxValue=undefined) {\n let r\n if (attr in payload) {\n let i = payload[attr]\n let t = typeof(i)\n if (reqType == t) {\n r = i\n } else {\n node.warn(`${attr} in payload is not of type ${reqType} but ${t}`)\n r = defaultValue\n }\n if (typeof(minValue) != 'undefined' && (i < minValue)) {\n node.warn(`${attr} in payload (${r}) is less than minValue (${minValue})`)\n r = minValue\n }\n if (typeof(maxValue) != 'undefined' && (i > maxValue)) {\n node.warn(`${attr} in payload (${r}) is greater than maxValue (${maxValue})`)\n r = maxValue\n }\n } else {\n node.warn(`${attr} in payload is not available`)\n r = defaultValue\n }\n return r \n}\n\nfunction rgb2xy(red, green, blue) {\n if (red > 0.04045) { \n red = Math.pow((red + 0.055) / (1.0 + 0.055), 2.4);\n } else {\n red = (red / 12.92);\n }\n\n if (green > 0.04045) {\n green = Math.pow((green + 0.055) / (1.0 + 0.055), 2.4);\n } else {\n green = (green / 12.92);\n }\n\n if (blue > 0.04045) {\n blue = Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4);\n } else {\n blue = (blue / 12.92);\n }\n\n let X = red * 0.664511 + green * 0.154324 + blue * 0.162028;\n let Y = red * 0.283881 + green * 0.668433 + blue * 0.047685;\n let Z = red * 0.000088 + green * 0.072310 + blue * 0.986039;\n let x = X / (X + Y + Z);\n let y = Y / (X + Y + Z);\n \n return [ x, y ]\n}\n\nlet msgon = {}\nlet msgbri = {}\nlet msgct = {}\nlet msgxy = {}\n\nmsgon.payload = typeChecker(msg.payload, 'on', 'boolean', false)\nif (msgon.payload) {\n msgbri.payload = typeChecker(msg.payload, 'bri', 'number', 128, minValue=0, maxValue=255)\n msgct.payload = typeChecker(msg.payload, 'ct', 'number', 196, minValue=153, maxValue=500)\n\n if ('rgb' in msg.payload) {\n let red = typeChecker(msg.payload.rgb, 0, 'number', 0, minValue=0, maxValue=255)\n let green = typeChecker(msg.payload.rgb, 1, 'number', 0, minValue=0, maxValue=255)\n let blue = typeChecker(msg.payload.rgb, 2, 'number', 0, minValue=0, maxValue=255)\n msgxy.payload = rgb2xy(red, green, blue)\n } else {\n msgxy = null\n }\n} else {\n msgbri = null\n msgct = null\n msgxy = null\n}\n\nreturn [ msgon, msgbri, msgct, msgxy ]\n",
|
||
"outputs": 4,
|
||
"noerr": 0,
|
||
"x": 470,
|
||
"y": 280,
|
||
"wires": [
|
||
[],
|
||
[],
|
||
[],
|
||
[]
|
||
]
|
||
},
|
||
{
|
||
"id": "504ad8fb.4f9b1",
|
||
"type": "subflow:2e5e876.fb6b4f8",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"x": 490,
|
||
"y": 260,
|
||
"wires": [
|
||
[
|
||
"7b64e9ae.fc2aa8"
|
||
],
|
||
[
|
||
"54600bda.39473c"
|
||
],
|
||
[],
|
||
[]
|
||
]
|
||
},
|
||
{
|
||
"id": "10b8b236.62749e",
|
||
"type": "mqtt in",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"topic": "deconzhelper/nachtlichtpatty",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 240,
|
||
"y": 260,
|
||
"wires": [
|
||
[
|
||
"504ad8fb.4f9b1"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "7b64e9ae.fc2aa8",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Nachtlicht Patty Schlafzimmer On/Off",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_5",
|
||
"device_name": "○ Nachtlicht Patty",
|
||
"command": "on",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 770,
|
||
"y": 220,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "54600bda.39473c",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Nachtlicht Patty Schlafzimmer Bri",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_5",
|
||
"device_name": "○ Nachtlicht Patty",
|
||
"command": "bri",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 760,
|
||
"y": 260,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "5c167988.b67728",
|
||
"type": "json",
|
||
"z": "2e5e876.fb6b4f8",
|
||
"name": "",
|
||
"property": "payload",
|
||
"action": "",
|
||
"pretty": false,
|
||
"x": 310,
|
||
"y": 280,
|
||
"wires": [
|
||
[
|
||
"965ae3f2.011fd"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "77f58644.3fcae",
|
||
"type": "mqtt in",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"topic": "deconzhelper/lichtkommode",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 240,
|
||
"y": 400,
|
||
"wires": [
|
||
[
|
||
"db8b2aa8.e0078"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "db8b2aa8.e0078",
|
||
"type": "subflow:2e5e876.fb6b4f8",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"x": 490,
|
||
"y": 400,
|
||
"wires": [
|
||
[
|
||
"23160396.c333d4"
|
||
],
|
||
[
|
||
"85f6c56c.97225"
|
||
],
|
||
[],
|
||
[]
|
||
]
|
||
},
|
||
{
|
||
"id": "23160396.c333d4",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Licht Kommode Schlafzimmer On/Off",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_6",
|
||
"device_name": "○ LIcht Kommode",
|
||
"command": "on",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 770,
|
||
"y": 360,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "85f6c56c.97225",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Licht Kommode Schlafzimmer Bri",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_6",
|
||
"device_name": "○ LIcht Kommode",
|
||
"command": "bri",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 760,
|
||
"y": 400,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "7a59191a.52dc38",
|
||
"type": "mqtt in",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"topic": "deconzhelper/lichtfensterbankschlafzimmer",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 200,
|
||
"y": 540,
|
||
"wires": [
|
||
[
|
||
"9ead6ba8.cea5"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "9ead6ba8.cea5",
|
||
"type": "subflow:2e5e876.fb6b4f8",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"x": 490,
|
||
"y": 540,
|
||
"wires": [
|
||
[
|
||
"a57cfc8e.8789"
|
||
],
|
||
[
|
||
"31bbed50.ace702"
|
||
],
|
||
[],
|
||
[]
|
||
]
|
||
},
|
||
{
|
||
"id": "a57cfc8e.8789",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Licht Fensterbank Schlafzimmer On/Off",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_7",
|
||
"device_name": "○ Licht Fensterbank Schlafzimmer",
|
||
"command": "on",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 780,
|
||
"y": 500,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "31bbed50.ace702",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Licht Fensterbank Schlafzimmer Bri",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_7",
|
||
"device_name": "○ Licht Fensterbank Schlafzimmer",
|
||
"command": "bri",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 760,
|
||
"y": 540,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "a5c4d46.ba19ba8",
|
||
"type": "mqtt in",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"topic": "deconzhelper/stehlampeschlafzimmer",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 210,
|
||
"y": 120,
|
||
"wires": [
|
||
[
|
||
"5d783a28.e799d4"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "5d783a28.e799d4",
|
||
"type": "subflow:2e5e876.fb6b4f8",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"x": 490,
|
||
"y": 120,
|
||
"wires": [
|
||
[
|
||
"a692bbd9.4b4b8"
|
||
],
|
||
[
|
||
"c02bcb40.f8ab48"
|
||
],
|
||
[],
|
||
[]
|
||
]
|
||
},
|
||
{
|
||
"id": "a692bbd9.4b4b8",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Stehlampe Schlafzimmer On/Off",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_8",
|
||
"device_name": "○ Stehlampe Schlafzimmer",
|
||
"command": "on",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 750,
|
||
"y": 80,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "c02bcb40.f8ab48",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Stehlampe Schlafzimmer Bri",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_8",
|
||
"device_name": "○ Stehlampe Schlafzimmer",
|
||
"command": "bri",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 740,
|
||
"y": 120,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "bc259e61.20905",
|
||
"type": "mqtt in",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"topic": "deconzhelper/deckenlampewohnzimmer",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 200,
|
||
"y": 680,
|
||
"wires": [
|
||
[
|
||
"8f2bf2d1.f90e7"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "8f2bf2d1.f90e7",
|
||
"type": "subflow:2e5e876.fb6b4f8",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"x": 490,
|
||
"y": 680,
|
||
"wires": [
|
||
[
|
||
"f48308fb.307ed8"
|
||
],
|
||
[
|
||
"143e4249.170bbe"
|
||
],
|
||
[
|
||
"b7a03fb8.4eec98"
|
||
],
|
||
[]
|
||
]
|
||
},
|
||
{
|
||
"id": "f48308fb.307ed8",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Licht Decke Wohnzimmer On/Off",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_10",
|
||
"device_name": "○ Wohnzimmer",
|
||
"command": "on",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 760,
|
||
"y": 640,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "143e4249.170bbe",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Licht Decke Wohnzimmer Bri",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_10",
|
||
"device_name": "○ Wohnzimmer",
|
||
"command": "bri",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 740,
|
||
"y": 680,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "b7a03fb8.4eec98",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Licht Decke Wohnzimmer CT",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_10",
|
||
"device_name": "○ Wohnzimmer",
|
||
"command": "ct",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 740,
|
||
"y": 720,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "44c74a7b.9b68ac",
|
||
"type": "mqtt in",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"topic": "deconzhelper/lichtkuechetisch",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 240,
|
||
"y": 820,
|
||
"wires": [
|
||
[
|
||
"9899e973.a876b"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "9899e973.a876b",
|
||
"type": "subflow:2e5e876.fb6b4f8",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"x": 490,
|
||
"y": 820,
|
||
"wires": [
|
||
[
|
||
"962f4392.03f3"
|
||
],
|
||
[
|
||
"391af875.628ab8"
|
||
],
|
||
[],
|
||
[]
|
||
]
|
||
},
|
||
{
|
||
"id": "962f4392.03f3",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Licht Tisch Küche On/Off",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_1",
|
||
"device_name": "○ Kueche",
|
||
"command": "on",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 730,
|
||
"y": 800,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "391af875.628ab8",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Licht Tisch Küche Bri",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_1",
|
||
"device_name": "○ Kueche",
|
||
"command": "bri",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 720,
|
||
"y": 840,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "d8d8fac6.0a4d7",
|
||
"type": "mqtt in",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"topic": "deconzhelper/deckenlampeesszimmer",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 210,
|
||
"y": 960,
|
||
"wires": [
|
||
[
|
||
"6474d335.c60b5c"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "6474d335.c60b5c",
|
||
"type": "subflow:2e5e876.fb6b4f8",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"x": 490,
|
||
"y": 960,
|
||
"wires": [
|
||
[
|
||
"d4d982ce.325dc"
|
||
],
|
||
[
|
||
"97eacf27.67f29"
|
||
],
|
||
[
|
||
"ac611498.c2ce68"
|
||
],
|
||
[]
|
||
]
|
||
},
|
||
{
|
||
"id": "d4d982ce.325dc",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Licht Decke Esszimmer On/Off",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_9",
|
||
"device_name": "○ Esszimmer",
|
||
"command": "on",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 750,
|
||
"y": 920,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "97eacf27.67f29",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Licht Decke Esszimmer Bri",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_9",
|
||
"device_name": "○ Esszimmer",
|
||
"command": "bri",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 740,
|
||
"y": 960,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "ac611498.c2ce68",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Licht Decke Esszimmer CT",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_9",
|
||
"device_name": "○ Esszimmer",
|
||
"command": "ct",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 740,
|
||
"y": 1000,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "dc9dc73d.a0b928",
|
||
"type": "mqtt in",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"topic": "deconzhelper/deckenlampeanna",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 230,
|
||
"y": 1100,
|
||
"wires": [
|
||
[
|
||
"ab6d603e.66db5"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "ab6d603e.66db5",
|
||
"type": "subflow:2e5e876.fb6b4f8",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"x": 490,
|
||
"y": 1100,
|
||
"wires": [
|
||
[
|
||
"e1628c79.bcbd5"
|
||
],
|
||
[
|
||
"11cc2788.a56ac8"
|
||
],
|
||
[],
|
||
[]
|
||
]
|
||
},
|
||
{
|
||
"id": "e1628c79.bcbd5",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Licht Decke Anna On/Off",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_3",
|
||
"device_name": "○ Anna",
|
||
"command": "on",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 730,
|
||
"y": 1080,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "11cc2788.a56ac8",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Licht Decke Anna Bri",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_3",
|
||
"device_name": "○ Anna",
|
||
"command": "bri",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 720,
|
||
"y": 1120,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "f2e7ada9.1869c8",
|
||
"type": "mqtt in",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"topic": "deconzhelper/stehlampeesszimmer",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 200,
|
||
"y": 1240,
|
||
"wires": [
|
||
[
|
||
"97566293.357c8"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "97566293.357c8",
|
||
"type": "subflow:2e5e876.fb6b4f8",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"x": 490,
|
||
"y": 1240,
|
||
"wires": [
|
||
[
|
||
"7f9b9d6a.e9174c"
|
||
],
|
||
[
|
||
"9d4b9c59.d0df88"
|
||
],
|
||
[
|
||
"2ac0bdb8.a666a2"
|
||
],
|
||
[]
|
||
]
|
||
},
|
||
{
|
||
"id": "7f9b9d6a.e9174c",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Stehlampe Esszimmer On/Off",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_17",
|
||
"device_name": "○ Esszimmer Stehlampe",
|
||
"command": "on",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 750,
|
||
"y": 1200,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "9d4b9c59.d0df88",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Stehlampe Esszimmer Bri",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_17",
|
||
"device_name": "○ Esszimmer Stehlampe",
|
||
"command": "bri",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 730,
|
||
"y": 1240,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "2ac0bdb8.a666a2",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Stehlampe Esszimmer CT",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_17",
|
||
"device_name": "○ Esszimmer Stehlampe",
|
||
"command": "ct",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 730,
|
||
"y": 1280,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "db3177a6.5fb568",
|
||
"type": "mqtt in",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"topic": "deconzhelper/leselampeesszimmer",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 240,
|
||
"y": 1380,
|
||
"wires": [
|
||
[
|
||
"4ad360b4.a882c"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "4ad360b4.a882c",
|
||
"type": "subflow:2e5e876.fb6b4f8",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"x": 490,
|
||
"y": 1380,
|
||
"wires": [
|
||
[
|
||
"f566fd94.0f859"
|
||
],
|
||
[
|
||
"606fd961.b433"
|
||
],
|
||
[],
|
||
[]
|
||
]
|
||
},
|
||
{
|
||
"id": "f566fd94.0f859",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Leselampe Esszimmer On/Off",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_18",
|
||
"device_name": "○ Esszimmer Leselampe",
|
||
"command": "on",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 750,
|
||
"y": 1360,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "606fd961.b433",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Leselampe Esszimmer Bri",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_18",
|
||
"device_name": "○ Esszimmer Leselampe",
|
||
"command": "bri",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 730,
|
||
"y": 1400,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "d6747d6e.01c2d",
|
||
"type": "deconz-input",
|
||
"z": "336b672e.12f108",
|
||
"name": "Bewegung Studierzimmer Bewegung",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "00:17:88:01:08:67:d4:20-02-0406",
|
||
"device_name": "Motion Sensor Studierzimmer : ZHAPresence",
|
||
"topic": "NR/Daemmerungsschalter/Studierzimmer/Bewegung",
|
||
"state": "0",
|
||
"output": "always",
|
||
"outputAtStartup": true,
|
||
"x": 200,
|
||
"y": 500,
|
||
"wires": [
|
||
[],
|
||
[
|
||
"60e7aaa8.99c7fc",
|
||
"adc49e2d.893b28"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "60e7aaa8.99c7fc",
|
||
"type": "function",
|
||
"z": "336b672e.12f108",
|
||
"name": "MotionDetector",
|
||
"func": "if (('MotionDetected' in msg.payload) &&\n (msg.payload.MotionDetected)) {\n msg.payload = \"True\"\n return msg\n}\n\nreturn",
|
||
"outputs": 1,
|
||
"noerr": 0,
|
||
"x": 500,
|
||
"y": 500,
|
||
"wires": [
|
||
[
|
||
"592d2da3.bff084",
|
||
"60b4e333.03da84"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "592d2da3.bff084",
|
||
"type": "mqtt out",
|
||
"z": "336b672e.12f108",
|
||
"name": "",
|
||
"topic": "NR/MotionDetector/Studierzimmer",
|
||
"qos": "",
|
||
"retain": "",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 820,
|
||
"y": 500,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "60b4e333.03da84",
|
||
"type": "debug",
|
||
"z": "336b672e.12f108",
|
||
"name": "Studierzimmer Bewegung",
|
||
"active": true,
|
||
"tosidebar": true,
|
||
"console": false,
|
||
"tostatus": false,
|
||
"complete": "true",
|
||
"x": 790,
|
||
"y": 540,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "3ccb3802.6e3ef8",
|
||
"type": "debug",
|
||
"z": "336b672e.12f108",
|
||
"name": "Schuppen Bewegung",
|
||
"active": false,
|
||
"tosidebar": true,
|
||
"console": false,
|
||
"tostatus": false,
|
||
"complete": "true",
|
||
"x": 640,
|
||
"y": 420,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "adc49e2d.893b28",
|
||
"type": "debug",
|
||
"z": "336b672e.12f108",
|
||
"name": "",
|
||
"active": false,
|
||
"tosidebar": true,
|
||
"console": false,
|
||
"tostatus": false,
|
||
"complete": "true",
|
||
"x": 380,
|
||
"y": 600,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "93e10a7.54bd678",
|
||
"type": "mqtt in",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"topic": "deconzhelper/schreibtischlampeeg",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 240,
|
||
"y": 1520,
|
||
"wires": [
|
||
[
|
||
"391948b4.77e39"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "391948b4.77e39",
|
||
"type": "subflow:2e5e876.fb6b4f8",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"x": 490,
|
||
"y": 1520,
|
||
"wires": [
|
||
[
|
||
"b64179d6.9f814"
|
||
],
|
||
[
|
||
"bf2eac07.82406"
|
||
],
|
||
[],
|
||
[]
|
||
]
|
||
},
|
||
{
|
||
"id": "ae582cd7.eb644",
|
||
"type": "mqtt in",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"topic": "deconzhelper/spiegellampe",
|
||
"qos": "2",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 170,
|
||
"y": 1680,
|
||
"wires": [
|
||
[
|
||
"eaa2163f.c59c08"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "eaa2163f.c59c08",
|
||
"type": "subflow:2e5e876.fb6b4f8",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "",
|
||
"x": 490,
|
||
"y": 1680,
|
||
"wires": [
|
||
[
|
||
"a445bc41.f2ada"
|
||
],
|
||
[
|
||
"da99a887.e54158"
|
||
],
|
||
[
|
||
"5fec0a21.84aa34"
|
||
],
|
||
[]
|
||
]
|
||
},
|
||
{
|
||
"id": "a445bc41.f2ada",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Spiegellampe On/Off",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_20",
|
||
"device_name": "○ Lampe Spiegel",
|
||
"command": "on",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 720,
|
||
"y": 1640,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "da99a887.e54158",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Spiegellampe Bri",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_20",
|
||
"device_name": "○ Lampe Spiegel",
|
||
"command": "bri",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 710,
|
||
"y": 1680,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "5fec0a21.84aa34",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Spiegellampe CT",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_20",
|
||
"device_name": "○ Lampe Spiegel",
|
||
"command": "ct",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 710,
|
||
"y": 1720,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "a775d024.f1086",
|
||
"type": "mqtt out",
|
||
"z": "573ae2ea.132a9c",
|
||
"name": "",
|
||
"topic": "NR/Bedroom/BedlightPatty",
|
||
"qos": "",
|
||
"retain": "",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 650,
|
||
"y": 260,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "bf0a8f9a.865f08",
|
||
"type": "function",
|
||
"z": "573ae2ea.132a9c",
|
||
"name": "switch",
|
||
"func": "if (msg.payload.ServiceLabelIndex == 1) {\n msg.payload.on = true\n} else if (msg.payload.ServiceLabelIndex == 2) {\n msg.payload.on = false\n}\nreturn msg;",
|
||
"outputs": 1,
|
||
"noerr": 0,
|
||
"x": 360,
|
||
"y": 260,
|
||
"wires": [
|
||
[
|
||
"a775d024.f1086"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "b64179d6.9f814",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Schreibtischlampe EG On/Off",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_19",
|
||
"device_name": "○ Schreibtischlampe EG",
|
||
"command": "on",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 740,
|
||
"y": 1480,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "bf2eac07.82406",
|
||
"type": "deconz-output",
|
||
"z": "494660ad.86d1d8",
|
||
"name": "Schreibtischlampe EG Bri",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "group_19",
|
||
"device_name": "○ Schreibtischlampe EG",
|
||
"command": "bri",
|
||
"commandType": "deconz_cmd",
|
||
"payload": "payload",
|
||
"payloadType": "msg",
|
||
"transitionTime": "",
|
||
"x": 730,
|
||
"y": 1520,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "65e2f161.3e26c",
|
||
"type": "deconz-input",
|
||
"z": "fdb3ecaa.03eda",
|
||
"name": "MultiSensorWaschkuecheFeuchte",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "00:15:8d:00:04:49:f3:bc-01-0405",
|
||
"device_name": "Multi Sensor Waschküche : ZHAHumidity",
|
||
"topic": "",
|
||
"state": "0",
|
||
"output": "always",
|
||
"outputAtStartup": true,
|
||
"x": 360,
|
||
"y": 220,
|
||
"wires": [
|
||
[],
|
||
[
|
||
"bd6269f21acb1cac"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "8a367d57.831f2",
|
||
"type": "deconz-input",
|
||
"z": "fdb3ecaa.03eda",
|
||
"name": "MultiSensorWaschkuecheTemperatur",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "00:15:8d:00:04:49:f3:bc-01-0402",
|
||
"device_name": "Multi Sensor Waschküche : ZHATemperature",
|
||
"topic": "",
|
||
"state": "0",
|
||
"output": "always",
|
||
"outputAtStartup": true,
|
||
"x": 370,
|
||
"y": 260,
|
||
"wires": [
|
||
[],
|
||
[
|
||
"bd6269f21acb1cac"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "1c7b501f.d79",
|
||
"type": "function",
|
||
"z": "d68bb8c4.1e4db8",
|
||
"name": "HumidityTemperatureJoiner",
|
||
"func": "let retMsg = null\n\nif (msg.topic == 'trigger') {\n let humidity = context.get('Humidity')\n let temperature = context.get('Temperature')\n let location = env.get('Location')\n \n let status = 'Error'\n if ((humidity !== undefined) && (temperature !== undefined)) {\n status = 'Ok'\n }\n \n retMsg = {\n \"payload\" : {\n \"temperature\": temperature,\n \"humidity\": humidity,\n \"status\": status,\n \"location\": location\n }\n }\n} else {\n if ('CurrentRelativeHumidity' in msg.payload) {\n humidity = msg.payload.CurrentRelativeHumidity\n context.set('Humidity', humidity)\n }\n \n if ('CurrentTemperature' in msg.payload) {\n temperature = msg.payload.CurrentTemperature\n context.set('Temperature', temperature)\n }\n}\n\nreturn retMsg\n\n",
|
||
"outputs": 1,
|
||
"noerr": 0,
|
||
"initialize": "",
|
||
"finalize": "",
|
||
"libs": [],
|
||
"x": 600,
|
||
"y": 340,
|
||
"wires": [
|
||
[
|
||
"ec9f626de687beb6"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "65999885.b0d058",
|
||
"type": "inject",
|
||
"z": "d68bb8c4.1e4db8",
|
||
"name": "",
|
||
"props": [
|
||
{
|
||
"p": "payload"
|
||
},
|
||
{
|
||
"p": "topic",
|
||
"vt": "str"
|
||
}
|
||
],
|
||
"repeat": "60",
|
||
"crontab": "",
|
||
"once": false,
|
||
"onceDelay": 0.1,
|
||
"topic": "trigger",
|
||
"payload": "true",
|
||
"payloadType": "bool",
|
||
"x": 330,
|
||
"y": 380,
|
||
"wires": [
|
||
[
|
||
"1c7b501f.d79"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "ec9f626de687beb6",
|
||
"type": "template",
|
||
"z": "d68bb8c4.1e4db8",
|
||
"name": "Status",
|
||
"field": "payload",
|
||
"fieldType": "msg",
|
||
"format": "handlebars",
|
||
"syntax": "mustache",
|
||
"template": "S: {{payload.status}}, T:{{payload.temperature}}°C, H:{{payload.humidity}}%",
|
||
"output": "str",
|
||
"x": 630,
|
||
"y": 440,
|
||
"wires": [
|
||
[]
|
||
]
|
||
},
|
||
{
|
||
"id": "bd6269f21acb1cac",
|
||
"type": "subflow:d68bb8c4.1e4db8",
|
||
"z": "fdb3ecaa.03eda",
|
||
"name": "Waschkueche",
|
||
"env": [
|
||
{
|
||
"name": "Location",
|
||
"value": "Waschkueche",
|
||
"type": "str"
|
||
}
|
||
],
|
||
"x": 730,
|
||
"y": 240,
|
||
"wires": [
|
||
[
|
||
"494b61e7793bae7a"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "bc46a253d34d24ab",
|
||
"type": "deconz-input",
|
||
"z": "fdb3ecaa.03eda",
|
||
"name": "MultiSensorAnnaFeuchte",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "00:15:8d:00:05:43:fb:99-01-0405",
|
||
"device_name": "Multi Sensor Anna : ZHAHumidity",
|
||
"topic": "NR/Multisensor/Anna/Feuchte",
|
||
"state": "0",
|
||
"output": "always",
|
||
"outputAtStartup": true,
|
||
"x": 330,
|
||
"y": 360,
|
||
"wires": [
|
||
[],
|
||
[
|
||
"f02edfe28bf23b60"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "e19619eabcc7f09c",
|
||
"type": "deconz-input",
|
||
"z": "fdb3ecaa.03eda",
|
||
"name": "MultiSensorAnnaTemperatur",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "00:15:8d:00:05:43:fb:99-01-0402",
|
||
"device_name": "Multi Sensor Anna : ZHATemperature",
|
||
"topic": "NR/Multisensor/Anna/Temperatur",
|
||
"state": "0",
|
||
"output": "always",
|
||
"outputAtStartup": true,
|
||
"x": 340,
|
||
"y": 400,
|
||
"wires": [
|
||
[],
|
||
[
|
||
"f02edfe28bf23b60"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "a2700eeb16be74ce",
|
||
"type": "deconz-input",
|
||
"z": "fdb3ecaa.03eda",
|
||
"name": "MultiSensorMatthiasFeuchte",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "00:15:8d:00:03:f0:52:b7-01-0405",
|
||
"device_name": "Multi Sensor Matthias : ZHAHumidity",
|
||
"topic": "NR/Multisensor/Matthias/Feuchte",
|
||
"state": "0",
|
||
"output": "always",
|
||
"outputAtStartup": true,
|
||
"x": 340,
|
||
"y": 500,
|
||
"wires": [
|
||
[],
|
||
[
|
||
"cd0886d5cf1333d3"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "67f48a6562059fb6",
|
||
"type": "deconz-input",
|
||
"z": "fdb3ecaa.03eda",
|
||
"name": "MultiSensorMatthiasTemperatur",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "00:15:8d:00:03:f0:52:b7-01-0402",
|
||
"device_name": "Multi Sensor Matthias : ZHATemperature",
|
||
"topic": "NR/Multisensor/Matthias/Temperatur",
|
||
"state": "0",
|
||
"output": "always",
|
||
"outputAtStartup": true,
|
||
"x": 350,
|
||
"y": 540,
|
||
"wires": [
|
||
[],
|
||
[
|
||
"cd0886d5cf1333d3"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "f02edfe28bf23b60",
|
||
"type": "subflow:d68bb8c4.1e4db8",
|
||
"z": "fdb3ecaa.03eda",
|
||
"name": "Anna",
|
||
"env": [
|
||
{
|
||
"name": "Location",
|
||
"value": "Anna",
|
||
"type": "str"
|
||
}
|
||
],
|
||
"x": 710,
|
||
"y": 380,
|
||
"wires": [
|
||
[
|
||
"494b61e7793bae7a"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "cd0886d5cf1333d3",
|
||
"type": "subflow:d68bb8c4.1e4db8",
|
||
"z": "fdb3ecaa.03eda",
|
||
"name": "Matthias",
|
||
"env": [
|
||
{
|
||
"name": "Location",
|
||
"value": "Matthias",
|
||
"type": "str"
|
||
}
|
||
],
|
||
"x": 720,
|
||
"y": 520,
|
||
"wires": [
|
||
[
|
||
"494b61e7793bae7a"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "cca690bb2d4d95b5",
|
||
"type": "deconz-battery",
|
||
"z": "fdb3ecaa.03eda",
|
||
"name": "",
|
||
"server": "9072089b.a7c1a",
|
||
"device": "00:15:8d:00:04:49:f3:bc-01-0402",
|
||
"device_name": "Multi Sensor Waschküche : ZHATemperature",
|
||
"outputAtStartup": true,
|
||
"x": 390,
|
||
"y": 640,
|
||
"wires": [
|
||
[
|
||
"c0e9fe6f20dc52b6"
|
||
],
|
||
[
|
||
"c0e9fe6f20dc52b6"
|
||
]
|
||
]
|
||
},
|
||
{
|
||
"id": "c0e9fe6f20dc52b6",
|
||
"type": "debug",
|
||
"z": "fdb3ecaa.03eda",
|
||
"name": "",
|
||
"active": true,
|
||
"tosidebar": true,
|
||
"console": false,
|
||
"tostatus": false,
|
||
"complete": "true",
|
||
"targetType": "full",
|
||
"statusVal": "",
|
||
"statusType": "auto",
|
||
"x": 730,
|
||
"y": 640,
|
||
"wires": []
|
||
},
|
||
{
|
||
"id": "494b61e7793bae7a",
|
||
"type": "mqtt out",
|
||
"z": "fdb3ecaa.03eda",
|
||
"name": "",
|
||
"topic": "nr/climate",
|
||
"qos": "",
|
||
"retain": "",
|
||
"respTopic": "",
|
||
"contentType": "",
|
||
"userProps": "",
|
||
"correl": "",
|
||
"expiry": "",
|
||
"broker": "51edc7eb.9519d8",
|
||
"x": 980,
|
||
"y": 240,
|
||
"wires": []
|
||
}
|
||
] |