[{"id":"736d9976.059418","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"9ad45696.eb7ed8","type":"tab","label":"Flow 2"},{"id":"f603c93f.3ed45","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"bd94b505.f9ecc","type":"tab","label":"Kroll Zwave","disabled":false,"info":""},{"id":"4ffc5234.053094","type":"zwave-controller","z":"","port":"/dev/ttyACM0","driverattempts":"3","pollinterval":"10000","allowunreadyupdates":false,"networkkey":"","logging":"full"},{"id":"e0bb527e.f53258","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"}}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","dateFormat":"DD/MM/YYYY","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"e1bfc250.ddbba8","type":"zwave-controller","z":"","port":"/dev/ttyACM0","driverattempts":"3","pollinterval":"10000","allowunreadyupdates":true,"networkkey":"","logging":"full"},{"id":"60d09a52.2b3fe4","type":"mqtt-broker","z":"","name":"localhost","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"61294b1c.6d5c04","type":"ui_group","z":"","name":"Test","tab":"5015191f.a3178","order":2,"disp":true,"width":"6","collapse":false},{"id":"cea4c5b1.2c8e18","type":"mqtt-broker","z":"","name":"192.168.178.211","broker":"192.168.178.211","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"5015191f.a3178","type":"ui_tab","z":"","name":"Home","icon":"dashboard"},{"id":"af2ad59b.deec78","type":"zwave-controller","z":"","port":"/dev/ttyACM0","driverattempts":"3","pollinterval":"10000","allowunreadyupdates":true,"networkkey":"","logging":true},{"id":"4ad36d94.6031b4","type":"ui_group","z":"","name":"Seleziona nodo","tab":"cb75f516.d1cdd8","disp":true,"width":"6"},{"id":"4b8dda10.47aeec","type":"ui_group","z":"","name":"Config","tab":"cb75f516.d1cdd8","disp":true,"width":"20"},{"id":"cb75f516.d1cdd8","type":"ui_tab","z":"","name":"Configurazione","icon":"dashboard"},{"id":"a1020e89.8af3e8","type":"zwave-controller","z":"","port":"/dev/ttyACM0","driverattempts":"3","pollinterval":"10000","allowunreadyupdates":true,"networkkey":"","logging":"full"},{"id":"15671146.4c402f","type":"ui_group","z":"","name":"Seleziona nodo","tab":"112c6d6.2afb493","disp":true,"width":"6"},{"id":"28cba139.74e4ae","type":"ui_group","z":"","name":"Config","tab":"112c6d6.2afb493","disp":true,"width":"20"},{"id":"112c6d6.2afb493","type":"ui_tab","z":"","name":"Configurazione","icon":"dashboard"},{"id":"d63dff80.948c98","type":"zwave-controller","z":"f603c93f.3ed45","port":"/dev/ttyUSB0","driverattempts":"3","pollinterval":"500"},{"id":"8eedfc54.7710c","type":"profile","z":"","name":"test","time1":"00:00","temp1":"23","time2":"18:25","temp2":"25.8","time3":"23:59","temp3":"24","time4":"","temp4":"","time5":"","temp5":"","time6":"","temp6":"","time7":"","temp7":"","time8":"","temp8":"","time9":"","temp9":"","time10":"","temp10":""},{"id":"abad0f35.4cd178","type":"mqtt-broker","z":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"d3381b9d.195a88","type":"ui_group","z":"","name":"Medidas","tab":"a5820406.d6db28","order":3,"disp":true,"width":"6"},{"id":"c87e2797.9258d8","type":"ui_group","z":"","name":"Gráficas","tab":"a5820406.d6db28","order":2,"disp":true,"width":"6"},{"id":"a717b2e0.0c1cc8","type":"ui_group","z":"","name":"Control Tersmostato","tab":"a5820406.d6db28","order":1,"disp":true,"width":"6"},{"id":"a5820406.d6db28","type":"ui_tab","z":"","name":"Termostato IOT","icon":"dashboard"},{"id":"201811c5.60d71e","type":"zwave-in","z":"736d9976.059418","name":"zwave-in","controller":"4ffc5234.053094","x":360,"y":160,"wires":[["4c3a02e9.cac494"]]},{"id":"4c3a02e9.cac494","type":"debug","z":"736d9976.059418","name":"zwave-in debug","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":760,"y":220,"wires":[]},{"id":"5c353b86.4996bc","type":"inject","z":"736d9976.059418","name":"Light ON","topic":"switch on","payload":"{\"nodeid\":2}","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":360,"y":360,"wires":[["64cd1d13.6557f4"]]},{"id":"54b80374.26bcc4","type":"inject","z":"736d9976.059418","name":"Light OFF","topic":"switch off","payload":"{\"nodeid\":1}","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":360,"y":440,"wires":[["64cd1d13.6557f4"]]},{"id":"64cd1d13.6557f4","type":"zwave-out","z":"736d9976.059418","name":"zwave-out","controller":"e1bfc250.ddbba8","x":740,"y":400,"wires":[[]]},{"id":"3a9473c0.8e8124","type":"debug","z":"736d9976.059418","name":"","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","x":1050,"y":180,"wires":[]},{"id":"2dc0c0a8.393878","type":"switch","z":"736d9976.059418","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"zwave: value changed","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":550,"y":120,"wires":[["552122e3.0015d4"]]},{"id":"3e55712f.ac987e","type":"zwave-in","z":"9ad45696.eb7ed8","name":"read_zwave","controller":"a1020e89.8af3e8","x":194,"y":180,"wires":[["a461f8da.f129c8","141ab655.fc10c2"]]},{"id":"a461f8da.f129c8","type":"debug","z":"9ad45696.eb7ed8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":416,"y":74,"wires":[]},{"id":"5c9f6834.c6fa2","type":"function","z":"9ad45696.eb7ed8","name":"init nodes","func":"flow.set(\"nodes\", []);\nflow.set(\"scanComplete\", false);\n\n","outputs":"0","noerr":0,"x":698,"y":77,"wires":[]},{"id":"b62fb7cd.df4ae8","type":"function","z":"9ad45696.eb7ed8","name":"add node","func":"var nodes = flow.get(\"nodes\");\nmsg.payload.values = [];\nmsg.payload.ready = false;\n\nnodes.push(msg.payload);\n\n","outputs":"0","noerr":0,"x":697,"y":111,"wires":[]},{"id":"50b5e058.4fcea8","type":"function","z":"9ad45696.eb7ed8","name":"add value to node","func":"var nodes = flow.get(\"nodes\");\n\nvar n = nodes.find(n => n.nodeid == msg.payload.nodeid);\n\nvar value = msg.payload.value;\n\nn.values.push(value);\n\n//optionally send enablepool \nif(value.label == \"Temperature\"){\n node.send({topic: \"enablePool\", payload: {\"args\": [value.nodeid, value.cmdclass]}});\n}\n\n\n","outputs":"1","noerr":0,"x":727,"y":147,"wires":[["db50edb8.f5356"]]},{"id":"f4a66084.89962","type":"function","z":"9ad45696.eb7ed8","name":"notification","func":"var nodes = flow.get(\"nodes\");\nvar nodeid = msg.payload.nodeid;\nvar n = nodes.find(n => n.nodeid == nodeid);\n\nswitch (msg.payload.notification) {\n case 0:\n console.log('node%d: message complete', nodeid);\n break;\n case 1:\n console.log('node%d: timeout', nodeid);\n break;\n case 2:\n console.log('node%d: nop', nodeid);\n break;\n case 3:\n console.log('node%d: node awake', nodeid);\n break;\n case 4:\n console.log('node%d: node sleep', nodeid);\n break;\n case 5:\n console.log('node%d: node dead', nodeid);\n n.ready = false;\n node.send({topic: \"node_status\", nodeid: nodeid, payload: false});\n break;\n case 6:\n console.log('node%d: node alive', nodeid);\n n.ready = true;\n node.send({topic: \"node_status\", nodeid: nodeid, payload: true});\n break;\n }\n","outputs":1,"noerr":0,"x":705,"y":186,"wires":[[]]},{"id":"52c881a9.bde92","type":"function","z":"9ad45696.eb7ed8","name":"value changed","func":"var nodes = flow.get(\"nodes\");\n\nvar node = nodes.find(n => n.nodeid == msg.payload.nodeid);\n\nvar value = node.values.find(v => v.value_id == msg.payload.value.value_id);\n\nvalue.value = msg.payload.value.value;\n\n\nmsg.payload = value;\nmsg.topic = \"value_changed\";\n\nreturn msg;","outputs":"1","noerr":0,"x":713,"y":227,"wires":[["d646a3b6.1b02","eb4ed94c.647a68"]]},{"id":"9b8ff8ae.3f653","type":"function","z":"9ad45696.eb7ed8","name":"node ready","func":"var nodes = flow.get(\"nodes\");\n\nvar n = nodes.find(n => n.nodeid == msg.payload.nodeid);\n\nn.ready = true;\nn.type = msg.payload.nodeinfo.type;\n\n/* NODEINFO\n{\"manufacturer\":\"Qubino\",\"manufacturerid\":\"0x0159\",\"product\":\"ZMNHKDx Flush Heat and Cool thermostat\",\"producttype\":\"0x0005\",\"productid\":\"0x0052\",\"type\":\"Thermostat HVAC\",\"name\":\"\",\"loc\":\"\"}\n*/","outputs":"0","noerr":0,"x":705,"y":266,"wires":[]},{"id":"7cb4656c.dc8ebc","type":"function","z":"9ad45696.eb7ed8","name":"scan complete","func":"var nodes = flow.get(\"nodes\");\n\nflow.set(\"scanComplete\", true);\n\nreturn [{payload:{}, topic: \"writeConfig\"}, {payload: nodes, topic: \"init\"}];","outputs":"2","noerr":0,"x":714,"y":304,"wires":[["80eb8857.078168"],[]]},{"id":"88462231.51a5f8","type":"link in","z":"9ad45696.eb7ed8","name":"zwaveWrite","links":["7b8727ee.57daf","b0d8ac6c.83c3f","fc8bf0de.42f83"],"x":975,"y":480,"wires":[["41c7b381.075b44"]]},{"id":"41c7b381.075b44","type":"zwave-out","z":"9ad45696.eb7ed8","name":"write","controller":"a1020e89.8af3e8","x":1090,"y":480,"wires":[["3731abae.577d14"]]},{"id":"9ffd22f0.c1451","type":"ui_dropdown","z":"9ad45696.eb7ed8","name":"","label":"Nodes","place":"Select a node","group":"15671146.4c402f","order":0,"width":0,"height":0,"passthru":false,"options":[{"label":"","value":"","type":"str"}],"payload":"","topic":"","x":340,"y":480,"wires":[["c6f06f21.caf0a"]]},{"id":"1d6b71bb.82fc76","type":"function","z":"9ad45696.eb7ed8","name":"parse options","func":"var nodes = msg.payload;\nvar options = [];\n\nfor(var i=0;i n.nodeid == msg.payload);\n\nmsg.payload = n.values;\n\nmsg.topic = \"init\";\n\nreturn msg;","outputs":1,"noerr":0,"x":485,"y":480,"wires":[["877571fd.5906c"]]},{"id":"877571fd.5906c","type":"ui_template","z":"9ad45696.eb7ed8","group":"28cba139.74e4ae","name":"config","order":0,"width":"20","height":"20","format":"\n\n
\n \n
\n\n\n","storeOutMessages":false,"fwdInMessages":false,"templateScope":"local","x":625,"y":480,"wires":[["51881589.0f7adc"]]},{"id":"51881589.0f7adc","type":"switch","z":"9ad45696.eb7ed8","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"setValue","vt":"str"},{"t":"eq","v":"load","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":767,"y":480,"wires":[["b0d8ac6c.83c3f"],["35995642.d590aa"]]},{"id":"b0d8ac6c.83c3f","type":"link out","z":"9ad45696.eb7ed8","name":"writeConfig","links":["88462231.51a5f8"],"x":876,"y":480,"wires":[]},{"id":"1dc58874.f886c8","type":"link in","z":"9ad45696.eb7ed8","name":"configs","links":["d646a3b6.1b02"],"x":565,"y":420,"wires":[["877571fd.5906c"]]},{"id":"35995642.d590aa","type":"change","z":"9ad45696.eb7ed8","name":"load","rules":[{"t":"set","p":"payload","pt":"msg","to":"nodes","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":480,"y":560,"wires":[["1d6b71bb.82fc76"]]},{"id":"d646a3b6.1b02","type":"link out","z":"9ad45696.eb7ed8","name":"value_changed","links":["1dc58874.f886c8"],"x":895,"y":240,"wires":[]},{"id":"4b1b396.496ac48","type":"inject","z":"9ad45696.eb7ed8","name":"","topic":"","payload":"nodes","payloadType":"flow","repeat":"","crontab":"","once":false,"onceDelay":"","x":120,"y":280,"wires":[["4bc989a6.7e56b"]]},{"id":"4bc989a6.7e56b","type":"debug","z":"9ad45696.eb7ed8","name":"","active":true,"console":"false","complete":"false","x":305,"y":280,"wires":[]},{"id":"13df69fe.5a6d86","type":"inject","z":"9ad45696.eb7ed8","name":"healNetwork","topic":"healNetwork","payload":"{}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":"","x":132,"y":327,"wires":[["fc8bf0de.42f83"]]},{"id":"fc8bf0de.42f83","type":"link out","z":"9ad45696.eb7ed8","name":"healNetwork","links":["88462231.51a5f8"],"x":275,"y":320,"wires":[]},{"id":"e939eedb.74c9c","type":"inject","z":"9ad45696.eb7ed8","name":"softReset","topic":"softReset","payload":"{}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":"","x":120,"y":371,"wires":[["7b8727ee.57daf"]]},{"id":"7b8727ee.57daf","type":"link out","z":"9ad45696.eb7ed8","name":"softReset","links":["88462231.51a5f8"],"x":281,"y":371,"wires":[]},{"id":"67f407a7.b1232","type":"zwave-in","z":"9ad45696.eb7ed8","name":"zwave-in","controller":"4ffc5234.053094","x":200,"y":100,"wires":[[]]},{"id":"d744cde9.aac088","type":"debug","z":"9ad45696.eb7ed8","name":"zwave-in debug","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":340,"y":20,"wires":[]},{"id":"141ab655.fc10c2","type":"switch","z":"9ad45696.eb7ed8","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"zwave: driver ready","vt":"str"},{"t":"eq","v":"zwave: node added","vt":"str"},{"t":"eq","v":"zwave: value added","vt":"str"},{"t":"eq","v":"zwave: notification","vt":"str"},{"t":"eq","v":"zwave: value changed","vt":"str"},{"t":"eq","v":"zwave: node ready","vt":"str"},{"t":"eq","v":"zwave: scan complete","vt":"str"}],"checkall":"true","repair":false,"outputs":7,"x":490,"y":180,"wires":[["5c9f6834.c6fa2"],["b62fb7cd.df4ae8"],["50b5e058.4fcea8"],["f4a66084.89962"],["52c881a9.bde92"],["9b8ff8ae.3f653"],["7cb4656c.dc8ebc"]]},{"id":"db50edb8.f5356","type":"debug","z":"9ad45696.eb7ed8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1100,"y":160,"wires":[]},{"id":"552122e3.0015d4","type":"function","z":"736d9976.059418","name":"node2","func":"var nodes = flow.get(\"nodes\");\n\nvar node = nodes.find(n => n.nodeid == msg.payload.nodeid);\n\nvar value = node.values.find(v => v.value_id == msg.payload.value.value_id);\n\nvalue.value = msg.payload.value.value;\n\n\nmsg.payload = value;\nmsg.topic = \"value_changed\";\n\nreturn msg;","outputs":1,"noerr":0,"x":750,"y":140,"wires":[["3a9473c0.8e8124"]]},{"id":"3731abae.577d14","type":"debug","z":"9ad45696.eb7ed8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1110,"y":400,"wires":[]},{"id":"80eb8857.078168","type":"debug","z":"9ad45696.eb7ed8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":980,"y":300,"wires":[]},{"id":"eb4ed94c.647a68","type":"debug","z":"9ad45696.eb7ed8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1020,"y":240,"wires":[]},{"id":"e43f861f.513d1","type":"inject","z":"f603c93f.3ed45","name":"1 hr update interval","topic":"setValue","payload":"{\"nodeid\" : 6, \"cmdclass\": 112, \"cmdidx\" : 111, \"value\" : 3600}","payloadType":"json","repeat":"","crontab":"","once":true,"x":320,"y":340,"wires":[["62ad57a.0e216a8","69326a3f.944814"]]},{"id":"41d998dd.1ed5c8","type":"inject","z":"f603c93f.3ed45","name":"Heizen AN","topic":"setValue","payload":"{\"nodeid\":5,\"cmdclass\":64,\"cmdidx\":0,\"value\":\"Heat\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":"","x":280,"y":160,"wires":[["62ad57a.0e216a8","69326a3f.944814"]]},{"id":"4d9a3c54.ce21c4","type":"inject","z":"f603c93f.3ed45","name":"Set Motion Sensivity 4","topic":"setValue","payload":"{\"nodeid\" : 6, \"cmdclass\": 112, \"cmdidx\" : 4, \"value\" : 4}","payloadType":"json","repeat":"","crontab":"","once":true,"onceDelay":"","x":331,"y":109,"wires":[["62ad57a.0e216a8"]]},{"id":"69326a3f.944814","type":"debug","z":"f603c93f.3ed45","name":"","active":false,"console":"false","complete":"true","x":656,"y":198,"wires":[]},{"id":"62ad57a.0e216a8","type":"zwave-out","z":"f603c93f.3ed45","name":"ZWave Out","controller":"4ffc5234.053094","x":677,"y":137,"wires":[[]]},{"id":"7e7e4153.1082","type":"debug","z":"f603c93f.3ed45","name":"","active":false,"tosidebar":true,"console":false,"complete":"payload","x":1130,"y":560,"wires":[]},{"id":"3a6b70e3.07c4e","type":"zwave-in","z":"f603c93f.3ed45","name":"ZWave In","controller":"d63dff80.948c98","x":166,"y":436,"wires":[["95269dfc.4aaaf"]]},{"id":"72649a72.82e854","type":"switch","z":"f603c93f.3ed45","name":"Temperature","property":"payload.label","propertyType":"msg","rules":[{"t":"eq","v":"Temperature","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":641,"y":301,"wires":[["c5aee582.692898","7ea4fd5d.12a1f4"]]},{"id":"c5aee582.692898","type":"template","z":"f603c93f.3ed45","name":"Display Temp","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Temperature is now {{payload.value.value}}","x":860,"y":320,"wires":[["7e7e4153.1082"]]},{"id":"8f5c120c.d2e6e","type":"switch","z":"f603c93f.3ed45","name":"Humidity","property":"payload.label","propertyType":"msg","rules":[{"t":"eq","v":"Relative Humidity","vt":"str"}],"checkall":"true","outputs":1,"x":634,"y":381,"wires":[["fe77ec86.655f7","49b64609.847ab"]]},{"id":"88e628f9.12291","type":"switch","z":"f603c93f.3ed45","name":"Battery","property":"payload.label","propertyType":"msg","rules":[{"t":"eq","v":"Battery Level","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":633,"y":441,"wires":[["1b746a6e.5cfb26","37c947bc.800fb","e619288a.98e708"]]},{"id":"1aaa00.79ee8601","type":"switch","z":"f603c93f.3ed45","name":"Luminance","property":"payload.label","propertyType":"msg","rules":[{"t":"eq","v":"Luminance","vt":"str"}],"checkall":"true","outputs":1,"x":634,"y":529,"wires":[["d7a22858.dc3b48","917d0d43.ec2d18"]]},{"id":"fbd9c651.2d04c","type":"switch","z":"f603c93f.3ed45","name":"UV","property":"payload.label","propertyType":"msg","rules":[{"t":"eq","v":"Ultraviolet","vt":"str"}],"checkall":"true","outputs":1,"x":628,"y":598,"wires":[["2ea964e2.8c389c","ce7f29cf.00bf98"]]},{"id":"fe77ec86.655f7","type":"template","z":"f603c93f.3ed45","name":"Display Humidity","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Humidity is now {{payload.value.value}}","x":873,"y":401,"wires":[["7e7e4153.1082"]]},{"id":"d7a22858.dc3b48","type":"template","z":"f603c93f.3ed45","name":"Display Lux","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Luminance is now {{payload.value.value}}","x":854,"y":548,"wires":[["7e7e4153.1082"]]},{"id":"1b746a6e.5cfb26","type":"template","z":"f603c93f.3ed45","name":"Display Battery","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Battery is now {{payload.value.value}}","x":862,"y":476,"wires":[["7e7e4153.1082"]]},{"id":"2ea964e2.8c389c","type":"template","z":"f603c93f.3ed45","name":"Display UV","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"UV is now {{payload.value.value}}","x":853,"y":616,"wires":[["7e7e4153.1082"]]},{"id":"dc10e878.6d569","type":"file","z":"f603c93f.3ed45","name":"/tmp/sensor.log","filename":"/tmp/sensor.log","appendNewline":true,"createDir":false,"overwriteFile":"false","x":880,"y":700,"wires":[]},{"id":"3d60dc38.fac9bc","type":"change","z":"f603c93f.3ed45","name":"Timestamp","rules":[{"t":"set","p":"payload.timestamp","pt":"msg","to":"timestamp","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":645,"y":674,"wires":[["dc10e878.6d569"]]},{"id":"9c68f2c7.4c06f8","type":"file","z":"f603c93f.3ed45","name":"/tmp/temperature","filename":"/tmp/temperature","appendNewline":false,"createDir":false,"overwriteFile":"true","x":1120,"y":282,"wires":[]},{"id":"7ea4fd5d.12a1f4","type":"template","z":"f603c93f.3ed45","name":"Log Temp","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{timestamp}} {{payload.value.value}}","x":840,"y":280,"wires":[["9c68f2c7.4c06f8"]]},{"id":"75f5e5d9.18c004","type":"file","z":"f603c93f.3ed45","name":"/tmp/humidity","filename":"/tmp/humidity","appendNewline":false,"createDir":false,"overwriteFile":"true","x":1111,"y":358,"wires":[]},{"id":"49b64609.847ab","type":"template","z":"f603c93f.3ed45","name":"Log Humidity","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{timestamp}} {{payload.value.value}}","x":859,"y":361,"wires":[["75f5e5d9.18c004"]]},{"id":"37c947bc.800fb","type":"template","z":"f603c93f.3ed45","name":"Log Battery","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{timestamp}} {{payload.value.value}}","x":852,"y":437,"wires":[["e8ed9134.794ba8"]]},{"id":"e8ed9134.794ba8","type":"file","z":"f603c93f.3ed45","name":"/tmp/battery","filename":"/tmp/battery","appendNewline":false,"createDir":false,"overwriteFile":"true","x":1330,"y":440,"wires":[]},{"id":"917d0d43.ec2d18","type":"template","z":"f603c93f.3ed45","name":"Log Lux","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{timestamp}} {{payload.value.value}}","x":841,"y":512,"wires":[["1d1b8e6.4614572"]]},{"id":"1d1b8e6.4614572","type":"file","z":"f603c93f.3ed45","name":"/tmp/lux","filename":"/tmp/lux","appendNewline":false,"createDir":false,"overwriteFile":"true","x":1098,"y":506,"wires":[]},{"id":"ce7f29cf.00bf98","type":"template","z":"f603c93f.3ed45","name":"Log UV","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{timestamp}} {{payload.value.value}}","x":842,"y":581,"wires":[["3a587397.b654b4"]]},{"id":"3a587397.b654b4","type":"file","z":"f603c93f.3ed45","name":"/tmp/uv","filename":"/tmp/uv","appendNewline":false,"createDir":false,"overwriteFile":"true","x":1103,"y":609,"wires":[]},{"id":"e619288a.98e708","type":"debug","z":"f603c93f.3ed45","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":890,"y":220,"wires":[]},{"id":"dae7cc7b.05b6a8","type":"inject","z":"f603c93f.3ed45","name":"Heizen AUS","topic":"setValue","payload":"{\"nodeid\":5,\"cmdclass\":64,\"cmdidx\":0,\"value\":\"Off\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":"","x":290,"y":220,"wires":[["62ad57a.0e216a8"]]},{"id":"57899523.ffa9d4","type":"inject","z":"f603c93f.3ed45","name":"Heizen AUS","topic":"setmax","payload":"{\"nodeid\":3,\"cmdclass\":64,\"cmdidx\":0,\"max\":24}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":"","x":290,"y":280,"wires":[["62ad57a.0e216a8"]]},{"id":"95269dfc.4aaaf","type":"timestamp","z":"f603c93f.3ed45","name":"","x":270,"y":560,"wires":[["3d60dc38.fac9bc","9413835b.df0a1"]]},{"id":"9413835b.df0a1","type":"deduplicate","z":"f603c93f.3ed45","name":"","keyproperty":"label","expiry":"120","x":395,"y":425,"wires":[["fbd9c651.2d04c","1aaa00.79ee8601","88e628f9.12291","8f5c120c.d2e6e","72649a72.82e854"],[]]},{"id":"7258cd7c.dbf77c","type":"zwave-in","z":"bd94b505.f9ecc","name":"ZWave In","controller":"d63dff80.948c98","x":80,"y":220,"wires":[["2dcef490.2b7d84"]]},{"id":"2dcef490.2b7d84","type":"switch","z":"bd94b505.f9ecc","name":"","property":"payload.nodeid","propertyType":"msg","rules":[{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":250,"y":220,"wires":[["17db3130.9a4b2f"],["f00ec121.71533"],["6ad39fc3.5ee6d"]]},{"id":"c8aed0c7.37aa58","type":"debug","z":"bd94b505.f9ecc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":1150,"y":20,"wires":[]},{"id":"17db3130.9a4b2f","type":"switch","z":"bd94b505.f9ecc","name":"Filter nach Sensor","property":"payload.label","propertyType":"msg","rules":[{"t":"eq","v":"Sensor","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":470,"y":120,"wires":[["aadba3e6.9dde4"]]},{"id":"aadba3e6.9dde4","type":"template","z":"bd94b505.f9ecc","name":"Filter value.value","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.value.value}}","x":710,"y":120,"wires":[["a62a848.1843f78"]]},{"id":"a62a848.1843f78","type":"change","z":"bd94b505.f9ecc","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"Fenster geschlossen","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"Fenster offen","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":960,"y":120,"wires":[["c8aed0c7.37aa58","7d0df69b.27af88"]]},{"id":"7d0df69b.27af88","type":"ui_text","z":"bd94b505.f9ecc","group":"61294b1c.6d5c04","order":0,"width":0,"height":0,"name":"","label":"Status","format":"{{msg.payload}}","layout":"col-center","x":1150,"y":120,"wires":[]},{"id":"6ad39fc3.5ee6d","type":"debug","z":"bd94b505.f9ecc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":730,"y":320,"wires":[]},{"id":"f00ec121.71533","type":"switch","z":"bd94b505.f9ecc","name":"Filter nach Temperature","property":"payload.label","propertyType":"msg","rules":[{"t":"eq","v":"Temperature","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":471,"y":220,"wires":[["fbda93ef.451fa8"]]},{"id":"fbda93ef.451fa8","type":"template","z":"bd94b505.f9ecc","name":"payload.value.value","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.value.value}}","x":720,"y":220,"wires":[["a995eb82.d85da8"]]},{"id":"a995eb82.d85da8","type":"ui_gauge","z":"bd94b505.f9ecc","name":"","group":"61294b1c.6d5c04","order":0,"width":0,"height":0,"gtype":"gage","title":"Temperatur","label":"units","format":"{{value}}","min":0,"max":"40","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":960,"y":220,"wires":[]},{"id":"89cf5e12.f6b75","type":"zwave-out","z":"bd94b505.f9ecc","name":"ZWave Out","controller":"4ffc5234.053094","x":930,"y":400,"wires":[["22a6ca00.7dd956"]]},{"id":"f992dbb5.e4fe8","type":"inject","z":"bd94b505.f9ecc","name":"Heat Econ","topic":"setValue","payload":"{\"nodeid\":5,\"cmdclass\":67,\"base\":0,\"index\":1,\"instance\":1,\"value\":\"24.0\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":"","x":700,"y":420,"wires":[["22a6ca00.7dd956","89cf5e12.f6b75"]]},{"id":"a3cc7137.717118","type":"inject","z":"bd94b505.f9ecc","name":"OFF","topic":"setValue","payload":"{\"nodeid\":5,\"cmdclass\":64,\"cmdidx\":0,\"value\":\"Off\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":"","x":690,"y":500,"wires":[["89cf5e12.f6b75"]]},{"id":"22a6ca00.7dd956","type":"debug","z":"bd94b505.f9ecc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1200,"y":420,"wires":[]},{"id":"78b83c26.cf3ea4","type":"inject","z":"bd94b505.f9ecc","name":"Heat ","topic":"setValue","payload":"{\"nodeid\":5,\"cmdclass\":64,\"cmdidx\":0,\"value\":\"Heat\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":"","x":690,"y":460,"wires":[["22a6ca00.7dd956"]]}]