1 line
150 KiB
JSON
1 line
150 KiB
JSON
[{"id":"6d5dc8fd.c55a08","type":"tab","label":"Lightscenes","disabled":false,"info":""},{"id":"e6c415e8.d33198","type":"tab","label":"Geofences","disabled":false,"info":""},{"id":"c6facb84.d5d508","type":"tab","label":"Measurements","disabled":false,"info":""},{"id":"5cd559ac.c75c38","type":"tab","label":"WindowContacts","disabled":false,"info":""},{"id":"85e980fb.9ac9c","type":"tab","label":"Heating","disabled":false,"info":""},{"id":"b87987c6.54a068","type":"tab","label":"Battery Warning","disabled":false,"info":""},{"id":"6b5c93bb.11334c","type":"tab","label":"Lights Basement","disabled":false,"info":""},{"id":"7fea4240.a21f4c","type":"tab","label":"Lights DiningRoom","disabled":false,"info":""},{"id":"48b46b5c.6f68a4","type":"tab","label":"Lights LivingRoom","disabled":false,"info":""},{"id":"1668233b.c34ead","type":"tab","label":"Lights Kitchen and Hallway","disabled":false,"info":""},{"id":"1ae50636.3172ca","type":"tab","label":"Lights Anna and Matthias","disabled":false,"info":""},{"id":"fc92c0f1.7a70d","type":"tab","label":"Lights Bedroom","disabled":false,"info":""},{"id":"850935f2.6a0a98","type":"tab","label":"MailTo","disabled":false,"info":""},{"id":"49993405.10e67c","type":"tab","label":"Mqtt433Gateway","disabled":false,"info":""},{"id":"9986fd8e.55a57","type":"tab","label":"MqttWatchDog","disabled":false,"info":""},{"id":"252a6a94.1a4126","type":"ui_base","theme":{"name":"theme-dark","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":true,"reset":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","reset":false},"themeState":{"base-color":{"default":"#097479","value":"#097479","edited":false},"page-titlebar-backgroundColor":{"value":"#097479","edited":false},"page-backgroundColor":{"value":"#111111","edited":false},"page-sidebar-backgroundColor":{"value":"#000000","edited":false},"group-textColor":{"value":"#0eb8c0","edited":false},"group-borderColor":{"value":"#555555","edited":false},"group-backgroundColor":{"value":"#333333","edited":false},"widget-textColor":{"value":"#eeeeee","edited":false},"widget-backgroundColor":{"value":"#097479","edited":false},"widget-borderColor":{"value":"#333333","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}}},"site":{"name":"SmarthomeController","hideToolbar":"false","allowSwipe":"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":"8e11452e.2aeb98","type":"ui_group","z":"","name":"Küche","tab":"df6bfb9d.8b36e8","disp":true,"width":"6","collapse":false},{"id":"1c0f8b52.7ec605","type":"mqtt-broker","z":"","name":"localhost","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"df6bfb9d.8b36e8","type":"ui_tab","z":"","name":"Heizung","icon":"dashboard","order":2},{"id":"3fd34d49.7fa762","type":"ui_group","z":"","name":"Schlafzimmer","tab":"df6bfb9d.8b36e8","disp":true,"width":"6","collapse":true},{"id":"681096b9.5dc178","type":"ui_tab","z":"","name":"Fenster","icon":"dashboard","order":4},{"id":"c24b21a0.85e69","type":"ui_group","z":"","name":"Default","tab":"681096b9.5dc178","disp":true,"width":"6","collapse":false},{"id":"dccde73d.b40188","type":"ui_group","z":"","name":"Bad oben","tab":"df6bfb9d.8b36e8","disp":true,"width":"6","collapse":true},{"id":"544f71e2.655ff","type":"ui_group","z":"","name":"Anna","tab":"df6bfb9d.8b36e8","disp":true,"width":"6","collapse":true},{"id":"4a42dcdc.6ad814","type":"ui_group","z":"","name":"Matthias","tab":"df6bfb9d.8b36e8","disp":true,"width":"6","collapse":true},{"id":"ec369366.dd277","type":"ui_tab","z":"","name":"Matthias","icon":"dashboard","order":5},{"id":"11a5edf4.9f9712","type":"ui_group","z":"","name":"Heizung","tab":"ec369366.dd277","disp":true,"width":"6","collapse":false},{"id":"54130f2d.89e12","type":"ui_tab","z":"","name":"Licht","icon":"dashboard","order":3},{"id":"e4f7893f.aca378","type":"ui_group","z":"","name":"Küche","tab":"54130f2d.89e12","disp":true,"width":"6","collapse":true},{"id":"4a344740.e1c3b8","type":"ui_group","z":"","name":"Flur","tab":"54130f2d.89e12","disp":true,"width":"6","collapse":true},{"id":"f57f4462.6d9f78","type":"ui_tab","z":"","name":"Start","icon":"dashboard","order":1},{"id":"36da8460.3fe9fc","type":"influxdb","z":"","hostname":"172.16.3.15","port":"8086","protocol":"http","database":"smarthome","name":"smarthome","usetls":false,"tls":""},{"id":"8cc27fbd.d4e6e","type":"ui_group","z":"","name":"Außentemperatur","tab":"f57f4462.6d9f78","order":8,"disp":false,"width":"6","collapse":false},{"id":"da3bb206.e2c6e","type":"ui_group","z":"","name":"Messungen 1","tab":"26fc0353.7ec3bc","disp":false,"width":"6","collapse":false},{"id":"26fc0353.7ec3bc","type":"ui_tab","z":"","name":"Messungen","icon":"dashboard","order":6},{"id":"9347b2ed.f80bd","type":"ui_group","z":"","name":"Esszimmer","tab":"54130f2d.89e12","disp":true,"width":"6","collapse":true},{"id":"35e7bab9.5775a6","type":"ui_group","z":"","name":"Wohnzimmer","tab":"54130f2d.89e12","disp":true,"width":"6","collapse":true},{"id":"6cef045a.5bbc3c","type":"ui_group","z":"","name":"Keller","tab":"54130f2d.89e12","disp":true,"width":"6","collapse":true},{"id":"1e19a625.a0dcaa","type":"ui_group","z":"","name":"Spacer","tab":"54130f2d.89e12","disp":false,"width":"18","collapse":false},{"id":"c431ece7.2c699","type":"ui_group","z":"","name":"Spacer2","tab":"54130f2d.89e12","disp":false,"width":"18","collapse":false},{"id":"ccabe237.9400d","type":"ui_group","z":"","name":"Default","tab":"","disp":false,"width":"18","collapse":false},{"id":"44127700.e8c588","type":"ui_group","z":"","name":"Fenster","tab":"f57f4462.6d9f78","order":12,"disp":true,"width":"6","collapse":false},{"id":"3d085adf.259bf6","type":"ui_group","z":"","name":"Schlafzimmer","tab":"54130f2d.89e12","disp":true,"width":"6","collapse":false},{"id":"21a8124.41d67ee","type":"ui_group","z":"","name":"Esszimmer","tab":"df6bfb9d.8b36e8","disp":true,"width":"6","collapse":true},{"id":"7f9b568e.788de8","type":"ui_group","z":"","name":"Wohnzimmer","tab":"df6bfb9d.8b36e8","disp":true,"width":"6","collapse":true},{"id":"7e99ddbf.fc8a04","type":"mqtt-broker","z":"","name":"mac","broker":"172.16.3.15","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"552fd1db.fec08","type":"ui_group","z":"","name":"Group 8","tab":"f57f4462.6d9f78","order":2,"disp":false,"width":"6","collapse":false},{"id":"75c07dde.d93824","type":"ui_group","z":"","name":"Group 2","tab":"26fc0353.7ec3bc","order":2,"disp":false,"width":"6","collapse":false},{"id":"b5936fe2.9bee5","type":"ui_group","z":"","name":"Group 3","tab":"26fc0353.7ec3bc","order":3,"disp":false,"width":"6","collapse":false},{"id":"5a8b6836.d7c218","type":"combine-logic","z":"5cd559ac.c75c38","name":"","topic":"","operator":"nor","defer":250,"timeout":0,"distinction":"topic","x":680,"y":180,"wires":[["47c60556.9e9bdc","1d1ed5c1.43011a"]]},{"id":"a285f1ca.44ccb","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Kueche Garten","topic":"homegear/instance1/plain/37/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":260,"y":120,"wires":[["65dbf3c8.330e2c"]]},{"id":"754ebc6c.967f04","type":"mqtt in","z":"5cd559ac.c75c38","name":"Terassentuer","topic":"homegear/instance1/plain/36/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":290,"y":160,"wires":[["65dbf3c8.330e2c"]]},{"id":"88710eab.848cb","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Kueche Strasse","topic":"homegear/instance1/plain/38/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":250,"y":200,"wires":[["65dbf3c8.330e2c"]]},{"id":"ea42e420.745848","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Kueche Strasse","topic":"homegear/instance1/plain/13/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":250,"y":240,"wires":[["65dbf3c8.330e2c"]]},{"id":"65dbf3c8.330e2c","type":"change","z":"5cd559ac.c75c38","name":"toBoolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":180,"wires":[["5a8b6836.d7c218","cc47888c.1b4878"]]},{"id":"cc47888c.1b4878","type":"debug","z":"5cd559ac.c75c38","name":"Windows Kitchen","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":710,"y":120,"wires":[]},{"id":"47c60556.9e9bdc","type":"link out","z":"5cd559ac.c75c38","name":"WindowsKitchenClosed","links":["157597ee.5a6a68"],"x":815,"y":180,"wires":[]},{"id":"7d4cc77.ba31438","type":"http in","z":"e6c415e8.d33198","name":"Geofences","url":"/geofences","method":"post","upload":false,"swaggerDoc":"","x":100,"y":160,"wires":[["bad6f037.3538c","821abfdc.e1dc7","ce633f3a.0253c"]]},{"id":"bad6f037.3538c","type":"template","z":"e6c415e8.d33198","name":"Prepare Response","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Ok, thank you very much.","output":"str","x":310,"y":160,"wires":[["f5204e53.fc4dd"]]},{"id":"f5204e53.fc4dd","type":"http response","z":"e6c415e8.d33198","name":"","statusCode":"","headers":{},"x":510,"y":160,"wires":[]},{"id":"821abfdc.e1dc7","type":"debug","z":"e6c415e8.d33198","name":"Geofences Input Raw","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":310,"y":60,"wires":[]},{"id":"ce633f3a.0253c","type":"change","z":"e6c415e8.d33198","name":"Prepare Data","rules":[{"t":"set","p":"result.person","pt":"msg","to":"payload.device","tot":"msg"},{"t":"set","p":"result.direction","pt":"msg","to":"payload.entry","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":280,"y":260,"wires":[["68f6fae6.327314"]]},{"id":"68f6fae6.327314","type":"change","z":"e6c415e8.d33198","name":"Find Person","rules":[{"t":"change","p":"result.person","pt":"msg","from":"386D105B-80D0-4708-95AB-77B4D1E36D0E","fromt":"str","to":"Wolfgang","tot":"str"},{"t":"change","p":"result.person","pt":"msg","from":"E24E910A-ED0A-444E-8290-794339BC887C","fromt":"str","to":"Matthias","tot":"str"},{"t":"change","p":"result.person","pt":"msg","from":"D7352171-FCF5-4E21-8FD3-8C34FF0F2F15","fromt":"str","to":"Anna","tot":"str"},{"t":"change","p":"result.person","pt":"msg","from":"F05D98D9-621E-408D-9C09-CA9A54D78C3E","fromt":"str","to":"Patricia","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":260,"wires":[["bf1bb8ae.32c158"]]},{"id":"bf1bb8ae.32c158","type":"change","z":"e6c415e8.d33198","name":"Find Direction","rules":[{"t":"change","p":"result.direction","pt":"msg","from":"0","fromt":"str","to":"leaves","tot":"str"},{"t":"change","p":"result.direction","pt":"msg","from":"1","fromt":"str","to":"arrives","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":260,"wires":[["f324f5d6.9a8238","7cfb8661.3461d8","56437000.34f21","2d1c0fb1.a5701"]]},{"id":"f324f5d6.9a8238","type":"debug","z":"e6c415e8.d33198","name":"Geofences Result","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":920,"y":200,"wires":[]},{"id":"7cfb8661.3461d8","type":"template","z":"e6c415e8.d33198","name":"GeofencesMail","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Person: {{result.person}}, direction: {{result.direction}}","output":"str","x":900,"y":320,"wires":[["61c95e7d.c0ecf"]]},{"id":"a01d4a25.912828","type":"e-mail","z":"850935f2.6a0a98","server":"smtprelaypool.ispgateway.de","port":"25","secure":false,"name":"wolfgang.hottgenroth@icloud.com","dname":"df.eu","x":510,"y":180,"wires":[]},{"id":"61c95e7d.c0ecf","type":"link out","z":"e6c415e8.d33198","name":"GeofencesMail","links":["375253e0.ed183c"],"x":1055,"y":320,"wires":[]},{"id":"375253e0.ed183c","type":"link in","z":"850935f2.6a0a98","name":"MailTo","links":["61c95e7d.c0ecf","915f2891.a2bb38","e852d6e5.c78478","bc7d342.cc096c8"],"x":335,"y":180,"wires":[["a01d4a25.912828","d8590952.c02758"]]},{"id":"d8590952.c02758","type":"debug","z":"850935f2.6a0a98","name":"MailTo","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":510,"y":260,"wires":[]},{"id":"d7540f4a.43852","type":"change","z":"7fea4240.a21f4c","name":"DiningRoomSmallLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"69653 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"69652 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":140,"wires":[["bcfa5f70.6da02"]]},{"id":"80cda255.8b27","type":"inject","z":"7fea4240.a21f4c","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":100,"wires":[["9e882abc.5ab138"]]},{"id":"a3aac33f.f12d","type":"inject","z":"7fea4240.a21f4c","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":140,"wires":[["9e882abc.5ab138"]]},{"id":"61796ebb.66c89","type":"mqtt in","z":"7fea4240.a21f4c","name":"","topic":"nodered/diningroomSmallLight","qos":"2","broker":"1c0f8b52.7ec605","x":170,"y":200,"wires":[["7ef53bdd.4b9fa4"]]},{"id":"7ef53bdd.4b9fa4","type":"change","z":"7fea4240.a21f4c","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":200,"wires":[["d7540f4a.43852"]]},{"id":"dbfc2623.dda678","type":"mqtt in","z":"7fea4240.a21f4c","name":"","topic":"nodered/diningroomStandLight","qos":"2","broker":"1c0f8b52.7ec605","x":170,"y":400,"wires":[["331b4699.61a53a"]]},{"id":"efd2d7.0436fd28","type":"change","z":"7fea4240.a21f4c","name":"DiningRoomStandLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"86037 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"86036 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":340,"wires":[["bb44273a.16f358"]]},{"id":"331b4699.61a53a","type":"change","z":"7fea4240.a21f4c","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":400,"wires":[["efd2d7.0436fd28"]]},{"id":"217c9f0c.c17f9","type":"inject","z":"7fea4240.a21f4c","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":300,"wires":[["64b49204.34e3cc"]]},{"id":"9ae48b29.b68d58","type":"inject","z":"7fea4240.a21f4c","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":340,"wires":[["64b49204.34e3cc"]]},{"id":"2b14cf8a.d27f6","type":"mqtt in","z":"7fea4240.a21f4c","name":"","topic":"nodered/diningroomCupboardLight","qos":"2","broker":"1c0f8b52.7ec605","x":180,"y":600,"wires":[["fb2e1a30.558b48"]]},{"id":"fb2e1a30.558b48","type":"change","z":"7fea4240.a21f4c","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":600,"wires":[["310dbf39.56f68"]]},{"id":"bc4ebe16.01593","type":"inject","z":"7fea4240.a21f4c","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":500,"wires":[["a8eb85cc.a8c188"]]},{"id":"79dd3f8a.a5454","type":"inject","z":"7fea4240.a21f4c","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":540,"wires":[["a8eb85cc.a8c188"]]},{"id":"310dbf39.56f68","type":"change","z":"7fea4240.a21f4c","name":"DiningRoomCupboardLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"65813 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"65812 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":860,"y":540,"wires":[["2babaa81.01d906"]]},{"id":"fbad5c96.b346e","type":"mqtt in","z":"7fea4240.a21f4c","name":"","topic":"nodered/diningroomShelfLight","qos":"2","broker":"1c0f8b52.7ec605","x":160,"y":800,"wires":[["2ba184a8.b4c94c"]]},{"id":"2ba184a8.b4c94c","type":"change","z":"7fea4240.a21f4c","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":800,"wires":[["fb0932be.f696e"]]},{"id":"9681ba7a.eedac8","type":"inject","z":"7fea4240.a21f4c","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":700,"wires":[["4b352197.9285b"]]},{"id":"675c2358.e2eb9c","type":"inject","z":"7fea4240.a21f4c","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":740,"wires":[["4b352197.9285b"]]},{"id":"a7e85216.31aa1","type":"change","z":"7fea4240.a21f4c","name":"TrueFalse2OnOff","rules":[{"t":"change","p":"command","pt":"msg","from":"true","fromt":"bool","to":"ON","tot":"str"},{"t":"change","p":"command","pt":"msg","from":"false","fromt":"bool","to":"OFF","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"command","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":800,"wires":[["c8c47a7d.8623e8"]]},{"id":"c8c47a7d.8623e8","type":"mqtt out","z":"7fea4240.a21f4c","name":"DiningRoomShelfLight","topic":"IoT/WifiRelay1/State","qos":"","retain":"true","broker":"1c0f8b52.7ec605","x":840,"y":860,"wires":[]},{"id":"fb0932be.f696e","type":"change","z":"7fea4240.a21f4c","name":"Payload2Command","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":740,"wires":[["a7e85216.31aa1"]]},{"id":"1af6706a.36218","type":"inject","z":"9986fd8e.55a57","name":"PeriodicalTrigger 1sec","topic":"","payload":"WauWau!","payloadType":"str","repeat":"1","crontab":"","once":true,"onceDelay":"1","x":210,"y":160,"wires":[["67e3c82e.d258f8"]]},{"id":"67e3c82e.d258f8","type":"mqtt out","z":"9986fd8e.55a57","name":"","topic":"IoT/Watchdog","qos":"","retain":"","broker":"1c0f8b52.7ec605","x":590,"y":160,"wires":[]},{"id":"8d864c70.ccf97","type":"mqtt out","z":"49993405.10e67c","name":"Mqtt433Gateway","topic":"IoT/Mqtt433Gateway/Message","qos":"","retain":"true","broker":"1c0f8b52.7ec605","x":630,"y":240,"wires":[]},{"id":"715e7527.ceccbc","type":"link in","z":"49993405.10e67c","name":"Mqtt433Gateway","links":["bcfa5f70.6da02","bb44273a.16f358","2babaa81.01d906","c90fe532.965918","b763b1d8.13b18","41eaf9b4.875c78","f274f733.a4fa28","313af4d9.b90b1c","ae6b8bd6.d4bd28","1f4c2106.b880ef","c35c4f2f.1545b","8353d24b.60ce1","b2cc7ff8.bdbe5","18645ebf.6f5691","f9293492.123a38","449f9f8e.d2ee8","f4140ac3.bc1ea8","e9d1bd65.01a4e","37702829.3aad48","c4cbb6df.293088","f937b6f5.7505f8","82da07d6.f8acd8","fc4ba941.c1fa48","156ce92d.45fc27"],"x":320,"y":240,"wires":[["8d864c70.ccf97"]]},{"id":"ede99dfa.734fb","type":"mqtt in","z":"48b46b5c.6f68a4","name":"","topic":"nodered/livingRoomLarge","qos":"2","broker":"1c0f8b52.7ec605","x":150,"y":160,"wires":[["bef5b1e2.7fb9"]]},{"id":"bef5b1e2.7fb9","type":"change","z":"48b46b5c.6f68a4","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":160,"wires":[["6b0b0651.2e6638"]]},{"id":"87c2e787.77e038","type":"inject","z":"48b46b5c.6f68a4","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":60,"wires":[["2be03518.d1a5da"]]},{"id":"c2f6977.826de68","type":"inject","z":"48b46b5c.6f68a4","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":100,"wires":[["2be03518.d1a5da"]]},{"id":"6b0b0651.2e6638","type":"change","z":"48b46b5c.6f68a4","name":"LivingRoomLargeLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"65557 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"65556 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":100,"wires":[["c90fe532.965918"]]},{"id":"1c2d7c2f.34e574","type":"mqtt in","z":"48b46b5c.6f68a4","name":"","topic":"nodered/livingroomSmallLight","qos":"2","broker":"1c0f8b52.7ec605","x":160,"y":360,"wires":[["7c42b92c.6bf788"]]},{"id":"7c42b92c.6bf788","type":"change","z":"48b46b5c.6f68a4","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":360,"wires":[["181e29df.1bc466"]]},{"id":"92beed96.e3245","type":"inject","z":"48b46b5c.6f68a4","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":260,"wires":[["b37985b2.7b8218"]]},{"id":"9e90510a.a56f7","type":"inject","z":"48b46b5c.6f68a4","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":300,"wires":[["b37985b2.7b8218"]]},{"id":"181e29df.1bc466","type":"change","z":"48b46b5c.6f68a4","name":"LivingRoomSmallLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"87061 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"87060 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":300,"wires":[["b763b1d8.13b18"]]},{"id":"52cd030f.fba89c","type":"mqtt in","z":"48b46b5c.6f68a4","name":"","topic":"nodered/livingroomStars","qos":"2","broker":"1c0f8b52.7ec605","x":150,"y":560,"wires":[["149744a7.a2cd6b"]]},{"id":"149744a7.a2cd6b","type":"change","z":"48b46b5c.6f68a4","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":560,"wires":[["f2dd0a54.aee2b8"]]},{"id":"577dcd4c.73a6f4","type":"inject","z":"48b46b5c.6f68a4","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":460,"wires":[["df2fd4a.ba24628"]]},{"id":"3180d1ce.862c0e","type":"inject","z":"48b46b5c.6f68a4","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":500,"wires":[["df2fd4a.ba24628"]]},{"id":"f2dd0a54.aee2b8","type":"change","z":"48b46b5c.6f68a4","name":"LivingRoomStarsLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"69909 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"69908 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":500,"wires":[["41eaf9b4.875c78"]]},{"id":"8415ce58.2ad6b","type":"mqtt in","z":"48b46b5c.6f68a4","name":"","topic":"nodered/livingroomStandLight","qos":"2","broker":"1c0f8b52.7ec605","x":160,"y":760,"wires":[["66a50bb2.6adc24"]]},{"id":"66a50bb2.6adc24","type":"change","z":"48b46b5c.6f68a4","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":760,"wires":[["759f5010.14dea"]]},{"id":"38ea17a7.8f88e8","type":"inject","z":"48b46b5c.6f68a4","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":660,"wires":[["ce4bb227.a54c2"]]},{"id":"aa2e8232.3ba79","type":"inject","z":"48b46b5c.6f68a4","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":700,"wires":[["ce4bb227.a54c2"]]},{"id":"759f5010.14dea","type":"change","z":"48b46b5c.6f68a4","name":"LivingRoomStandLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"81941 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"81940 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":700,"wires":[["f274f733.a4fa28"]]},{"id":"bcfa5f70.6da02","type":"link out","z":"7fea4240.a21f4c","name":"LightCmdDiningRoom","links":["715e7527.ceccbc"],"x":915,"y":200,"wires":[]},{"id":"bb44273a.16f358","type":"link out","z":"7fea4240.a21f4c","name":"LightCmdDiningRoom","links":["715e7527.ceccbc"],"x":915,"y":400,"wires":[]},{"id":"2babaa81.01d906","type":"link out","z":"7fea4240.a21f4c","name":"LightCmdDiningRoom","links":["715e7527.ceccbc"],"x":915,"y":600,"wires":[]},{"id":"c90fe532.965918","type":"link out","z":"48b46b5c.6f68a4","name":"LightCmdLivingRoom","links":["715e7527.ceccbc"],"x":915,"y":160,"wires":[]},{"id":"b763b1d8.13b18","type":"link out","z":"48b46b5c.6f68a4","name":"LightCmdLivingRoom","links":["715e7527.ceccbc"],"x":915,"y":360,"wires":[]},{"id":"41eaf9b4.875c78","type":"link out","z":"48b46b5c.6f68a4","name":"LightCmdLivingRoom","links":["715e7527.ceccbc"],"x":915,"y":560,"wires":[]},{"id":"f274f733.a4fa28","type":"link out","z":"48b46b5c.6f68a4","name":"LightCmdLivingRoom","links":["715e7527.ceccbc"],"x":915,"y":760,"wires":[]},{"id":"adfdcb55.b32598","type":"inject","z":"6b5c93bb.11334c","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":160,"wires":[["6cfcdb98.bba5b4"]]},{"id":"a20b86de.398708","type":"mqtt in","z":"6b5c93bb.11334c","name":"","topic":"nodered/basementSmallLight","qos":"2","broker":"1c0f8b52.7ec605","x":160,"y":100,"wires":[["eed175d5.181418"]]},{"id":"eed175d5.181418","type":"change","z":"6b5c93bb.11334c","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":430,"y":100,"wires":[["6cfcdb98.bba5b4"]]},{"id":"1edc4d91.df1fc2","type":"mqtt out","z":"6b5c93bb.11334c","name":"BasementSmallLightCommand","topic":"homegear/instance1/set/35/1/STATE","qos":"","retain":"true","broker":"1c0f8b52.7ec605","x":1230,"y":300,"wires":[]},{"id":"597eba1c.d510e4","type":"change","z":"6b5c93bb.11334c","name":"TrueFalse2String","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"true","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"false","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":950,"y":300,"wires":[["1edc4d91.df1fc2","86c8ffcf.546ae"]]},{"id":"a90e4223.51527","type":"trigger","z":"6b5c93bb.11334c","op1":"","op2":"false","op1type":"pay","op2type":"bool","duration":"3","extend":false,"units":"min","reset":"","bytopic":"all","name":"Timer","x":570,"y":300,"wires":[["b3a1bb03.748ba8","2edff4ba.35a70c"]]},{"id":"cd6d053a.cd1578","type":"function","z":"6b5c93bb.11334c","name":"ResetIfFalse","func":"if (! msg.payload) {\n msg.reset = true\n}\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":300,"wires":[["a90e4223.51527","4236da96.665574"]]},{"id":"10b52e85.e5c141","type":"change","z":"6b5c93bb.11334c","name":"TrueFalse2String","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"true","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"false","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":870,"y":900,"wires":[["71efadff.75c7e4"]]},{"id":"71efadff.75c7e4","type":"mqtt out","z":"6b5c93bb.11334c","name":"BasementLargeLightCommand","topic":"homegear/instance1/set/35/2/STATE","qos":"","retain":"true","broker":"1c0f8b52.7ec605","x":950,"y":980,"wires":[]},{"id":"c4cb20b1.c23ea","type":"change","z":"6b5c93bb.11334c","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":190,"y":860,"wires":[["102bc055.761f3"]]},{"id":"308f0b1f.46ac34","type":"mqtt in","z":"6b5c93bb.11334c","name":"","topic":"nodered/basementLargeLight","qos":"2","broker":"1c0f8b52.7ec605","x":140,"y":800,"wires":[["c4cb20b1.c23ea"]]},{"id":"2da971f6.b6d25e","type":"inject","z":"6b5c93bb.11334c","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":230,"y":920,"wires":[["102bc055.761f3"]]},{"id":"96e6378b.79d278","type":"inject","z":"6b5c93bb.11334c","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":230,"y":960,"wires":[["102bc055.761f3"]]},{"id":"adc22718.320768","type":"function","z":"6b5c93bb.11334c","name":"ForwardResetIfTrue","func":"if (msg.payload) {\n msg.reset = true\n} else {\n msg = undefined\n}\nreturn msg;","outputs":1,"noerr":0,"x":500,"y":500,"wires":[["a90e4223.51527"]]},{"id":"f279ce5d.333b","type":"function","z":"6b5c93bb.11334c","name":"ForwardIfFalse","func":"if (msg.payload) {\n msg = undefined\n}\nreturn msg;","outputs":1,"noerr":0,"x":940,"y":360,"wires":[["102bc055.761f3"]]},{"id":"2d0e0be3.6cc314","type":"change","z":"6b5c93bb.11334c","name":"TrueFalse2String","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"true","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"false","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":890,"y":1220,"wires":[["24af8ae3.c4b266"]]},{"id":"24af8ae3.c4b266","type":"mqtt out","z":"6b5c93bb.11334c","name":"BasementWorkshopLightCommand","topic":"homegear/instance1/set/5/1/STATE","qos":"","retain":"true","broker":"1c0f8b52.7ec605","x":940,"y":1280,"wires":[]},{"id":"16795627.07cf4a","type":"change","z":"6b5c93bb.11334c","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":1260,"wires":[["a013bca8.2113"]]},{"id":"1f9dfc1f.59e244","type":"mqtt in","z":"6b5c93bb.11334c","name":"","topic":"nodered/basementWorkshop","qos":"2","broker":"1c0f8b52.7ec605","x":120,"y":1260,"wires":[["16795627.07cf4a"]]},{"id":"fc9bd94d.22cb68","type":"inject","z":"6b5c93bb.11334c","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":70,"y":1180,"wires":[["a013bca8.2113"]]},{"id":"ae48b4b8.104818","type":"inject","z":"6b5c93bb.11334c","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":70,"y":1220,"wires":[["a013bca8.2113"]]},{"id":"4175887c.81c5e8","type":"change","z":"6b5c93bb.11334c","name":"TrueFalse2Boolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":1400,"wires":[["7dbf268c.0198a8"]]},{"id":"d8a124c8.553348","type":"mqtt in","z":"6b5c93bb.11334c","name":"BasementWorkshopLightSwitch","topic":"homegear/instance1/plain/5/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":130,"y":1400,"wires":[["4175887c.81c5e8"]]},{"id":"f766a9.50035958","type":"mqtt in","z":"6b5c93bb.11334c","name":"BasementLargeLightSwitch","topic":"homegear/instance1/plain/35/2/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":160,"y":680,"wires":[["6775459c.0f59fc"]]},{"id":"6775459c.0f59fc","type":"change","z":"6b5c93bb.11334c","name":"TrueFalse2Boolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":180,"y":740,"wires":[["c01196ad.f8d898"]]},{"id":"2602df14.d9da4","type":"mqtt in","z":"6b5c93bb.11334c","name":"BasementSmallLightSwitch","topic":"homegear/instance1/plain/35/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":170,"y":40,"wires":[["f94fa337.a8336"]]},{"id":"f94fa337.a8336","type":"change","z":"6b5c93bb.11334c","name":"TrueFalse2Boolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":40,"wires":[["cd6d053a.cd1578","f279ce5d.333b"]]},{"id":"87101c84.ff0ed","type":"combine-logic","z":"5cd559ac.c75c38","name":"","topic":"","operator":"nor","defer":250,"timeout":0,"distinction":"topic","x":680,"y":400,"wires":[["d4ac6506.f0b608","55506414.268f5c"]]},{"id":"e94ac7b7.f0f408","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Anna","topic":"homegear/instance1/plain/20/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":290,"y":340,"wires":[["9e5f84a9.bdddd8"]]},{"id":"9e5f84a9.bdddd8","type":"change","z":"5cd559ac.c75c38","name":"toBoolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":400,"wires":[["87101c84.ff0ed","f6ff3f39.63504"]]},{"id":"f6ff3f39.63504","type":"debug","z":"5cd559ac.c75c38","name":"Windows Anna","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":710,"y":340,"wires":[]},{"id":"d4ac6506.f0b608","type":"link out","z":"5cd559ac.c75c38","name":"WindowsAnnaClosed","links":["8d0f297c.4dcb28"],"x":815,"y":400,"wires":[]},{"id":"8e70be2b.7b976","type":"combine-logic","z":"5cd559ac.c75c38","name":"","topic":"","operator":"nor","defer":250,"timeout":0,"distinction":"topic","x":680,"y":560,"wires":[["de43097c.b4aac8","4647cb67.13f1c4"]]},{"id":"4b2c0a12.0ee064","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Matthias","topic":"homegear/instance1/plain/24/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":280,"y":500,"wires":[["1df982c3.69726d"]]},{"id":"1df982c3.69726d","type":"change","z":"5cd559ac.c75c38","name":"toBoolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":560,"wires":[["8e70be2b.7b976","3fad751d.ed5b4a"]]},{"id":"3fad751d.ed5b4a","type":"debug","z":"5cd559ac.c75c38","name":"Windows Matthias","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":720,"y":500,"wires":[]},{"id":"de43097c.b4aac8","type":"link out","z":"5cd559ac.c75c38","name":"WindowsMatthiasClosed","links":["67b37a28.783d64"],"x":815,"y":560,"wires":[]},{"id":"2e12b6e9.637e5a","type":"combine-logic","z":"5cd559ac.c75c38","name":"","topic":"","operator":"nor","defer":250,"timeout":0,"distinction":"topic","x":680,"y":780,"wires":[["880b2967.8cb078","449b9df.4a3f764"]]},{"id":"ee3f104f.a4bb7","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Wohnzimmer","topic":"homegear/instance1/plain/28/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":260,"y":720,"wires":[["61ab16a.7d8c2e8"]]},{"id":"61ab16a.7d8c2e8","type":"change","z":"5cd559ac.c75c38","name":"toBoolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":780,"wires":[["2e12b6e9.637e5a","bd2e2c90.6c69a"]]},{"id":"bd2e2c90.6c69a","type":"debug","z":"5cd559ac.c75c38","name":"Windows Livingroom","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":730,"y":720,"wires":[]},{"id":"880b2967.8cb078","type":"link out","z":"5cd559ac.c75c38","name":"WindowsLivingroomClosed","links":["45ad2d9f.751da4"],"x":815,"y":780,"wires":[]},{"id":"d6dea0bf.948ab","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Wohnzimmer","topic":"homegear/instance1/plain/29/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":260,"y":760,"wires":[["61ab16a.7d8c2e8"]]},{"id":"76bdb6b1.c78848","type":"combine-logic","z":"5cd559ac.c75c38","name":"","topic":"","operator":"nor","defer":250,"timeout":0,"distinction":"topic","x":680,"y":960,"wires":[["8eee890a.b9f758","a00275e8.02d298"]]},{"id":"ad0223e0.a9756","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Esszimmer","topic":"homegear/instance1/plain/26/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":250,"y":900,"wires":[["7674ec85.ef8ad4"]]},{"id":"7674ec85.ef8ad4","type":"change","z":"5cd559ac.c75c38","name":"toBoolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":960,"wires":[["76bdb6b1.c78848","30467ecc.982a82"]]},{"id":"30467ecc.982a82","type":"debug","z":"5cd559ac.c75c38","name":"Windows Diningroom","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":730,"y":900,"wires":[]},{"id":"8eee890a.b9f758","type":"link out","z":"5cd559ac.c75c38","name":"WindowsDiningroomClosed","links":["b3ab0b64.8c9eb8"],"x":815,"y":960,"wires":[]},{"id":"f4a84a0a.1aee88","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Esszimmer","topic":"homegear/instance1/plain/27/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":250,"y":940,"wires":[["7674ec85.ef8ad4"]]},{"id":"21e48881.d4c628","type":"combine-logic","z":"5cd559ac.c75c38","name":"","topic":"","operator":"nor","defer":250,"timeout":0,"distinction":"topic","x":680,"y":1160,"wires":[["54e43eda.37cff","24d36073.34237"]]},{"id":"5bf5b0e2.d60b5","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Schlafzimmer Strasse","topic":"homegear/instance1/plain/17/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":220,"y":1100,"wires":[["b71ad50e.b20428"]]},{"id":"b71ad50e.b20428","type":"change","z":"5cd559ac.c75c38","name":"toBoolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":1160,"wires":[["21e48881.d4c628","66fb98e0.5e8a68"]]},{"id":"66fb98e0.5e8a68","type":"debug","z":"5cd559ac.c75c38","name":"Windows Bedroom","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":720,"y":1100,"wires":[]},{"id":"54e43eda.37cff","type":"link out","z":"5cd559ac.c75c38","name":"WindowsBedroomClosed","links":["73310700.3627f8"],"x":815,"y":1160,"wires":[]},{"id":"65b86cf7.51c454","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Schlafzimmer Garten","topic":"homegear/instance1/plain/18/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":220,"y":1140,"wires":[["b71ad50e.b20428"]]},{"id":"af2fc46f.8a6978","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Schlafzimmer Garten","topic":"homegear/instance1/plain/22/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":220,"y":1180,"wires":[["b71ad50e.b20428"]]},{"id":"85f5f90c.e5e188","type":"combine-logic","z":"5cd559ac.c75c38","name":"","topic":"","operator":"nor","defer":250,"timeout":0,"distinction":"topic","x":680,"y":1380,"wires":[["5419a4d1.6f5a9c","cb94a611.fe9ac8"]]},{"id":"dde746b0.2ffcf8","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Bad unten","topic":"homegear/instance1/plain/44/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":250,"y":1320,"wires":[["e68b0d1c.99e52"]]},{"id":"e68b0d1c.99e52","type":"change","z":"5cd559ac.c75c38","name":"toBoolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":1380,"wires":[["85f5f90c.e5e188","e0b0f3d3.9fece"]]},{"id":"e0b0f3d3.9fece","type":"debug","z":"5cd559ac.c75c38","name":"Windows Bathroom Groundfloor","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":760,"y":1320,"wires":[]},{"id":"5419a4d1.6f5a9c","type":"link out","z":"5cd559ac.c75c38","name":"WindowsBathroomGroundFloorClosed","links":[],"x":815,"y":1380,"wires":[]},{"id":"f8d0da85.3bb258","type":"combine-logic","z":"5cd559ac.c75c38","name":"","topic":"","operator":"nor","defer":250,"timeout":0,"distinction":"topic","x":680,"y":1560,"wires":[["3f3f8622.44caba","6dd2f0d4.34bf7"]]},{"id":"dd2cb212.7516","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Bad oben","topic":"homegear/instance1/plain/2/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":250,"y":1500,"wires":[["6e76ef6d.03466"]]},{"id":"6e76ef6d.03466","type":"change","z":"5cd559ac.c75c38","name":"toBoolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":1560,"wires":[["f8d0da85.3bb258","bcf1c5eb.f6edf8"]]},{"id":"bcf1c5eb.f6edf8","type":"debug","z":"5cd559ac.c75c38","name":"Windows Bathroom First Floor","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":760,"y":1500,"wires":[]},{"id":"3f3f8622.44caba","type":"link out","z":"5cd559ac.c75c38","name":"WindowsBathroomFirstFloorClosed","links":["b753b933.0a6158"],"x":815,"y":1560,"wires":[]},{"id":"296f848a.76891c","type":"combine-logic","z":"5cd559ac.c75c38","name":"","topic":"","operator":"nor","defer":250,"timeout":0,"distinction":"topic","x":680,"y":1780,"wires":[["7d2a8cef.5317d4","ebb38c70.f8461"]]},{"id":"d31b7511.a42088","type":"mqtt in","z":"5cd559ac.c75c38","name":"Haustuer","topic":"homegear/instance1/plain/23/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":280,"y":1720,"wires":[["666a7f6a.c222b"]]},{"id":"666a7f6a.c222b","type":"change","z":"5cd559ac.c75c38","name":"toBoolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":1780,"wires":[["296f848a.76891c","5ed2b99f.d64078"]]},{"id":"5ed2b99f.d64078","type":"debug","z":"5cd559ac.c75c38","name":"Frontdoor","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":690,"y":1720,"wires":[]},{"id":"7d2a8cef.5317d4","type":"link out","z":"5cd559ac.c75c38","name":"FrontdoorClosed","links":[],"x":815,"y":1780,"wires":[]},{"id":"ebf2ff60.c8b5e","type":"change","z":"1668233b.c34ead","name":"KitchenWindowLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"66837 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"66836 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":120,"wires":[["ae6b8bd6.d4bd28"]]},{"id":"fa95c31f.0e259","type":"inject","z":"1668233b.c34ead","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":80,"wires":[["1ed070a.7ba238f"]]},{"id":"b16e383f.0f7648","type":"inject","z":"1668233b.c34ead","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":120,"wires":[["1ed070a.7ba238f"]]},{"id":"cabd642a.081628","type":"mqtt in","z":"1668233b.c34ead","name":"","topic":"nodered/kitchenWindowLight","qos":"2","broker":"1c0f8b52.7ec605","x":140,"y":180,"wires":[["9aa78cff.aa8cb"]]},{"id":"9aa78cff.aa8cb","type":"change","z":"1668233b.c34ead","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":180,"wires":[["ebf2ff60.c8b5e"]]},{"id":"ae6b8bd6.d4bd28","type":"link out","z":"1668233b.c34ead","name":"LightCmdKitchenRoom","links":["715e7527.ceccbc"],"x":895,"y":180,"wires":[]},{"id":"76c00293.607f8c","type":"change","z":"1668233b.c34ead","name":"KitchenCeilingLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"82197 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"82196 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":300,"wires":[["1f4c2106.b880ef"]]},{"id":"7b61b7ff.036f28","type":"inject","z":"1668233b.c34ead","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":260,"wires":[["8e311245.91f2b"]]},{"id":"4db1bf93.efd6b","type":"inject","z":"1668233b.c34ead","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":300,"wires":[["8e311245.91f2b"]]},{"id":"e17683e5.44f2b","type":"mqtt in","z":"1668233b.c34ead","name":"","topic":"nodered/kitchenCeilingLight","qos":"2","broker":"1c0f8b52.7ec605","x":140,"y":360,"wires":[["1d4e92f3.c5ca9d"]]},{"id":"1d4e92f3.c5ca9d","type":"change","z":"1668233b.c34ead","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":360,"wires":[["76c00293.607f8c"]]},{"id":"1f4c2106.b880ef","type":"link out","z":"1668233b.c34ead","name":"LightCmdKitchenRoom","links":["715e7527.ceccbc"],"x":895,"y":360,"wires":[]},{"id":"8d88bce6.4ac67","type":"change","z":"1668233b.c34ead","name":"HallwayDeskLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"83221 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"83220 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":480,"wires":[["c35c4f2f.1545b"]]},{"id":"9366277e.98afa8","type":"inject","z":"1668233b.c34ead","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":440,"wires":[["559fc54d.9b66ac"]]},{"id":"1a618607.b0ddaa","type":"inject","z":"1668233b.c34ead","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":480,"wires":[["559fc54d.9b66ac"]]},{"id":"5da02e27.6f202","type":"mqtt in","z":"1668233b.c34ead","name":"","topic":"nodered/hallwayDeskLight","qos":"2","broker":"1c0f8b52.7ec605","x":130,"y":540,"wires":[["22648249.303ade"]]},{"id":"22648249.303ade","type":"change","z":"1668233b.c34ead","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":540,"wires":[["8d88bce6.4ac67"]]},{"id":"c35c4f2f.1545b","type":"link out","z":"1668233b.c34ead","name":"LightCmdHallwayRoom","links":["715e7527.ceccbc"],"x":895,"y":540,"wires":[]},{"id":"3eb84a07.7de566","type":"change","z":"1668233b.c34ead","name":"HallwayStandLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"8704914 24 5","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"8793154 24 5","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":660,"wires":[["8353d24b.60ce1"]]},{"id":"fadcac53.f26ac","type":"inject","z":"1668233b.c34ead","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":620,"wires":[["7364a75e.9b3a68"]]},{"id":"f5366385.34083","type":"inject","z":"1668233b.c34ead","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":660,"wires":[["7364a75e.9b3a68"]]},{"id":"17280833.eab6b8","type":"mqtt in","z":"1668233b.c34ead","name":"HallwayStandLightCommand","topic":"nodered/hallwayStandLight","qos":"2","broker":"1c0f8b52.7ec605","x":140,"y":720,"wires":[["f73432b8.111f9"]]},{"id":"f73432b8.111f9","type":"change","z":"1668233b.c34ead","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":720,"wires":[["3eb84a07.7de566"]]},{"id":"8353d24b.60ce1","type":"link out","z":"1668233b.c34ead","name":"LightCmdHallwayRoom","links":["715e7527.ceccbc"],"x":895,"y":720,"wires":[]},{"id":"78646777.40f898","type":"change","z":"1668233b.c34ead","name":"HallwayWardrobeLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"66581 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"66580 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":840,"wires":[["b2cc7ff8.bdbe5"]]},{"id":"21a8c658.d852fa","type":"inject","z":"1668233b.c34ead","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":800,"wires":[["4519d1ec.7f536"]]},{"id":"ad0867ec.af41b8","type":"inject","z":"1668233b.c34ead","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":840,"wires":[["4519d1ec.7f536"]]},{"id":"842f83d0.63785","type":"mqtt in","z":"1668233b.c34ead","name":"","topic":"nodered/hallwayWardrobeLight","qos":"2","broker":"1c0f8b52.7ec605","x":150,"y":900,"wires":[["f0e4e9ac.8cc4e8"]]},{"id":"f0e4e9ac.8cc4e8","type":"change","z":"1668233b.c34ead","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":900,"wires":[["78646777.40f898"]]},{"id":"b2cc7ff8.bdbe5","type":"link out","z":"1668233b.c34ead","name":"LightCmdHallwayRoom","links":["715e7527.ceccbc"],"x":895,"y":900,"wires":[]},{"id":"f120f3ab.20a02","type":"change","z":"1ae50636.3172ca","name":"MatthiasStandLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"7 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"6 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":100,"wires":[["18645ebf.6f5691"]]},{"id":"45ebc13f.6e461","type":"inject","z":"1ae50636.3172ca","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":490,"y":140,"wires":[["f120f3ab.20a02"]]},{"id":"cbf3f6e.b499b08","type":"inject","z":"1ae50636.3172ca","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":490,"y":180,"wires":[["f120f3ab.20a02"]]},{"id":"b11d93e8.63474","type":"mqtt in","z":"1ae50636.3172ca","name":"","topic":"nodered/matthiasStandLight","qos":"2","broker":"1c0f8b52.7ec605","x":140,"y":100,"wires":[["8e816b51.699e08"]]},{"id":"8e816b51.699e08","type":"change","z":"1ae50636.3172ca","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":100,"wires":[["f120f3ab.20a02"]]},{"id":"18645ebf.6f5691","type":"link out","z":"1ae50636.3172ca","name":"LightCmdMatthiasRoom","links":["715e7527.ceccbc"],"x":1095,"y":100,"wires":[]},{"id":"73b5c91f.304528","type":"change","z":"1ae50636.3172ca","name":"MatthiasBedLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"15 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"14 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":260,"wires":[["f9293492.123a38"]]},{"id":"8c4abde0.82ac4","type":"inject","z":"1ae50636.3172ca","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":490,"y":300,"wires":[["73b5c91f.304528"]]},{"id":"f4e0e9cb.cbfa28","type":"inject","z":"1ae50636.3172ca","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":490,"y":340,"wires":[["73b5c91f.304528"]]},{"id":"c70a2345.b726a","type":"mqtt in","z":"1ae50636.3172ca","name":"","topic":"nodered/matthiasBedLight","qos":"2","broker":"1c0f8b52.7ec605","x":130,"y":260,"wires":[["2ee85f40.63025"]]},{"id":"2ee85f40.63025","type":"change","z":"1ae50636.3172ca","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":260,"wires":[["73b5c91f.304528"]]},{"id":"f9293492.123a38","type":"link out","z":"1ae50636.3172ca","name":"LightCmdMatthiasRoom","links":["715e7527.ceccbc"],"x":1095,"y":260,"wires":[]},{"id":"5d7d5280.8e3c7c","type":"change","z":"1ae50636.3172ca","name":"MatthiasSpeaker","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"11 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"10 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":420,"wires":[["449f9f8e.d2ee8"]]},{"id":"8bfa9860.045f68","type":"inject","z":"1ae50636.3172ca","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":490,"y":460,"wires":[["5d7d5280.8e3c7c"]]},{"id":"a15207ef.eedee8","type":"inject","z":"1ae50636.3172ca","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":490,"y":500,"wires":[["5d7d5280.8e3c7c"]]},{"id":"607ad1f8.221ae","type":"mqtt in","z":"1ae50636.3172ca","name":"","topic":"nodered/matthiasSpeaker","qos":"2","broker":"1c0f8b52.7ec605","x":130,"y":420,"wires":[["e2312f6.3dd68d"]]},{"id":"e2312f6.3dd68d","type":"change","z":"1ae50636.3172ca","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":420,"wires":[["5d7d5280.8e3c7c"]]},{"id":"449f9f8e.d2ee8","type":"link out","z":"1ae50636.3172ca","name":"LightCmdMatthiasRoom","links":["715e7527.ceccbc"],"x":1095,"y":420,"wires":[]},{"id":"36455391.5c678c","type":"change","z":"1ae50636.3172ca","name":"AnnaBedLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"14668116 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"14668113 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":580,"wires":[["f4140ac3.bc1ea8"]]},{"id":"8ddbc9e4.ce3848","type":"inject","z":"1ae50636.3172ca","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":490,"y":620,"wires":[["36455391.5c678c"]]},{"id":"898ad758.f6cdf8","type":"inject","z":"1ae50636.3172ca","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":490,"y":660,"wires":[["36455391.5c678c"]]},{"id":"140bd830.5a6868","type":"mqtt in","z":"1ae50636.3172ca","name":"","topic":"nodered/annaBedLight","qos":"2","broker":"1c0f8b52.7ec605","x":120,"y":580,"wires":[["46053e83.8c31d"]]},{"id":"46053e83.8c31d","type":"change","z":"1ae50636.3172ca","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":580,"wires":[["36455391.5c678c"]]},{"id":"f4140ac3.bc1ea8","type":"link out","z":"1ae50636.3172ca","name":"LightCmdAnnaRoom","links":["715e7527.ceccbc"],"x":1095,"y":580,"wires":[]},{"id":"b1e8f43.e088308","type":"change","z":"1ae50636.3172ca","name":"AnnaAquariumLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"14665044 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"14665041 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":740,"wires":[["e9d1bd65.01a4e"]]},{"id":"9f3632dd.d3b79","type":"inject","z":"1ae50636.3172ca","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":490,"y":780,"wires":[["b1e8f43.e088308"]]},{"id":"f13410bd.745f4","type":"inject","z":"1ae50636.3172ca","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":490,"y":820,"wires":[["b1e8f43.e088308"]]},{"id":"74f757eb.9ca1b8","type":"mqtt in","z":"1ae50636.3172ca","name":"","topic":"nodered/annaAquariumLight","qos":"2","broker":"1c0f8b52.7ec605","x":140,"y":740,"wires":[["47f01880.b59d18"]]},{"id":"47f01880.b59d18","type":"change","z":"1ae50636.3172ca","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":740,"wires":[["b1e8f43.e088308"]]},{"id":"e9d1bd65.01a4e","type":"link out","z":"1ae50636.3172ca","name":"LightCmdAnnaRoom","links":["715e7527.ceccbc"],"x":1095,"y":740,"wires":[]},{"id":"2889c7af.8f1718","type":"inject","z":"1ae50636.3172ca","name":"Morning On Weekday","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"00 07 * * 1,2,3,4,5","once":false,"onceDelay":0.1,"x":430,"y":880,"wires":[["b1e8f43.e088308"]]},{"id":"ee06e14f.a060a","type":"inject","z":"1ae50636.3172ca","name":"Morning On Weekend","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"00 09 * * 6,0","once":false,"onceDelay":0.1,"x":430,"y":920,"wires":[["b1e8f43.e088308"]]},{"id":"2553d2f5.dd10ae","type":"inject","z":"1ae50636.3172ca","name":"Night Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"00 22 * * *","once":false,"onceDelay":0.1,"x":470,"y":960,"wires":[["b1e8f43.e088308"]]},{"id":"14d5c37b.1302bd","type":"change","z":"fc92c0f1.7a70d","name":"BedroomWolfgangsSideLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"13976916 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"13976913 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":860,"y":220,"wires":[["37702829.3aad48"]]},{"id":"6c5552fa.99a29c","type":"inject","z":"fc92c0f1.7a70d","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":140,"wires":[["16eef555.aaa51b"]]},{"id":"8f91a152.b97d1","type":"inject","z":"fc92c0f1.7a70d","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":180,"wires":[["16eef555.aaa51b"]]},{"id":"85f8c0c4.0e38b","type":"mqtt in","z":"fc92c0f1.7a70d","name":"","topic":"nodered/bedroomWolfgangsSide","qos":"2","broker":"1c0f8b52.7ec605","x":170,"y":220,"wires":[["c56b0065.bdb2"]]},{"id":"c56b0065.bdb2","type":"change","z":"fc92c0f1.7a70d","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":220,"wires":[["14d5c37b.1302bd"]]},{"id":"37702829.3aad48","type":"link out","z":"fc92c0f1.7a70d","name":"LightCmdBedRoom","links":["715e7527.ceccbc"],"x":1115,"y":220,"wires":[]},{"id":"3aae165.9e5e5ea","type":"change","z":"fc92c0f1.7a70d","name":"BedroomPattysSideLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"13980756 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"13980753 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":380,"wires":[["c4cbb6df.293088"]]},{"id":"af5181f4.b3479","type":"inject","z":"fc92c0f1.7a70d","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":300,"wires":[["c646ccd7.5b4c6"]]},{"id":"52156374.3b9c1c","type":"inject","z":"fc92c0f1.7a70d","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":340,"wires":[["c646ccd7.5b4c6"]]},{"id":"818ba072.1767e","type":"mqtt in","z":"fc92c0f1.7a70d","name":"","topic":"nodered/bedroomPattysSide","qos":"2","broker":"1c0f8b52.7ec605","x":160,"y":380,"wires":[["f54d1469.b0cab8"]]},{"id":"f54d1469.b0cab8","type":"change","z":"fc92c0f1.7a70d","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":380,"wires":[["3aae165.9e5e5ea"]]},{"id":"c4cbb6df.293088","type":"link out","z":"fc92c0f1.7a70d","name":"LightCmdBedRoom","links":["715e7527.ceccbc"],"x":1115,"y":380,"wires":[]},{"id":"df4170b5.2c8c4","type":"change","z":"fc92c0f1.7a70d","name":"BedroomWindowLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"13979988 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"13979985 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":540,"wires":[["f937b6f5.7505f8"]]},{"id":"8b835dfc.024b9","type":"inject","z":"fc92c0f1.7a70d","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":460,"wires":[["94cf6f8a.0fc54"]]},{"id":"46e9c8bd.0eada8","type":"inject","z":"fc92c0f1.7a70d","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":500,"wires":[["94cf6f8a.0fc54"]]},{"id":"840cb58e.9a3e48","type":"mqtt in","z":"fc92c0f1.7a70d","name":"","topic":"nodered/bedroomWindowLight","qos":"2","broker":"1c0f8b52.7ec605","x":170,"y":540,"wires":[["107acc9f.1f7223"]]},{"id":"107acc9f.1f7223","type":"change","z":"fc92c0f1.7a70d","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":540,"wires":[["df4170b5.2c8c4"]]},{"id":"f937b6f5.7505f8","type":"link out","z":"fc92c0f1.7a70d","name":"LightCmdBedRoom","links":["715e7527.ceccbc"],"x":1115,"y":540,"wires":[]},{"id":"56437000.34f21","type":"switch","z":"e6c415e8.d33198","name":"PresenceSwitch","property":"result.person","propertyType":"msg","rules":[{"t":"eq","v":"Wolfgang","vt":"str"},{"t":"eq","v":"Patricia","vt":"str"},{"t":"eq","v":"Matthias","vt":"str"},{"t":"eq","v":"Anna","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":480,"y":480,"wires":[["be5022dd.9aecd"],["812ca75a.479af8"],["3e2a9d44.0d9bd2"],["fd1838a1.aa1428"]]},{"id":"be5022dd.9aecd","type":"change","z":"e6c415e8.d33198","name":"IsWolfgangPresent","rules":[{"t":"set","p":"payload","pt":"msg","to":"result.direction","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"leaves","fromt":"str","to":"false","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"arrives","fromt":"str","to":"true","tot":"bool"},{"t":"set","p":"topic","pt":"msg","to":"result.person","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":730,"y":440,"wires":[["da96f01e.dc529"]]},{"id":"812ca75a.479af8","type":"change","z":"e6c415e8.d33198","name":"IsPatriciaPresent","rules":[{"t":"set","p":"payload","pt":"msg","to":"result.direction","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"leaves","fromt":"str","to":"false","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"arrives","fromt":"str","to":"true","tot":"bool"},{"t":"set","p":"topic","pt":"msg","to":"result.person","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":730,"y":540,"wires":[["6e451e68.cb576"]]},{"id":"3e2a9d44.0d9bd2","type":"change","z":"e6c415e8.d33198","name":"IsMatthiasPresent","rules":[{"t":"set","p":"payload","pt":"msg","to":"result.direction","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"leaves","fromt":"str","to":"false","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"arrives","fromt":"str","to":"true","tot":"bool"},{"t":"set","p":"topic","pt":"msg","to":"result.person","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":730,"y":640,"wires":[["65c0ab55.f13704"]]},{"id":"fd1838a1.aa1428","type":"change","z":"e6c415e8.d33198","name":"IsAnnaPresent","rules":[{"t":"set","p":"payload","pt":"msg","to":"result.direction","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"leaves","fromt":"str","to":"false","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"arrives","fromt":"str","to":"true","tot":"bool"},{"t":"set","p":"topic","pt":"msg","to":"result.person","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":740,"wires":[["ce861562.f30788"]]},{"id":"da96f01e.dc529","type":"link out","z":"e6c415e8.d33198","name":"IsWolfgangPresent","links":["4f8f77df.6ea7e8","4144496f.bd8878","41ac22f7.4c7fbc"],"x":935,"y":440,"wires":[]},{"id":"6e451e68.cb576","type":"link out","z":"e6c415e8.d33198","name":"IsPatriciaPresent","links":["4f8f77df.6ea7e8","41ac22f7.4c7fbc"],"x":935,"y":540,"wires":[]},{"id":"65c0ab55.f13704","type":"link out","z":"e6c415e8.d33198","name":"IsMatthiasPresent","links":["4f8f77df.6ea7e8","e4b81a18.54e938","c396bfdd.633e4","41ac22f7.4c7fbc"],"x":935,"y":640,"wires":[]},{"id":"ce861562.f30788","type":"link out","z":"e6c415e8.d33198","name":"IsAnnaPresent","links":["4f8f77df.6ea7e8","5769857b.2342bc","41ac22f7.4c7fbc"],"x":935,"y":740,"wires":[]},{"id":"4f8f77df.6ea7e8","type":"link in","z":"e6c415e8.d33198","name":"WhoIsPresent","links":["65c0ab55.f13704","6e451e68.cb576","ce861562.f30788","da96f01e.dc529"],"x":1055,"y":440,"wires":[["5759fef1.d3294"]]},{"id":"5759fef1.d3294","type":"debug","z":"e6c415e8.d33198","name":"WhoIsPresent","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":1210,"y":440,"wires":[]},{"id":"cac0ea1a.f46ed8","type":"mqtt out","z":"85e980fb.9ac9c","name":"Heating Bedroom","topic":"homegear/instance1/set/39/1/SET_TEMPERATURE","qos":"","retain":"","broker":"1c0f8b52.7ec605","x":910,"y":160,"wires":[]},{"id":"ad16e41b.7ba2e8","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"HIGH","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":120,"wires":[["d089e13f.3e349"]]},{"id":"4c1bf884.5b7268","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"OFF","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":200,"wires":[["b301f5ab.3dcbf8"]]},{"id":"46570889.2b4eb8","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"LOW","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":160,"wires":[["38c6f657.ad568a"]]},{"id":"7a24fcec.eff614","type":"debug","z":"85e980fb.9ac9c","name":"Heating Bedroom","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":920,"y":240,"wires":[]},{"id":"73310700.3627f8","type":"link in","z":"85e980fb.9ac9c","name":"","links":["54e43eda.37cff"],"x":215,"y":60,"wires":[["e265d1e1.88bf9","83b8d824.901b28"]]},{"id":"cb3490a4.d945","type":"function","z":"85e980fb.9ac9c","name":"HeatingControl","func":"if ('windowStatus' in msg) {\n context.set('windowStatus', msg.windowStatus)\n node.warn(`Set windowStatus to ${msg.windowStatus}`)\n}\nif ('payload' in msg) {\n node.warn(`Got payload ${msg.payload}`)\n if (['OFF', 'HIGH', 'LOW'].indexOf(msg.payload) != -1) {\n context.set('heating', msg.payload) \n node.warn(`Set heating to ${msg.payload}`)\n }\n}\nlet windowStatus = context.get('windowStatus')\nlet heating = context.get('heating') || \"OFF\"\nnode.status({fill:(windowStatus ? \"green\" : \"red\"),shape:\"dot\",text:`${windowStatus}, ${heating}`})\nif (windowStatus) {\n msg.payload = heating\n} else {\n msg.payload = 'FORCED_OFF'\n}\nreturn msg;","outputs":1,"noerr":0,"x":500,"y":200,"wires":[["969912ea.adde3"]]},{"id":"e265d1e1.88bf9","type":"change","z":"85e980fb.9ac9c","name":"WindowStatusAdaptor","rules":[{"t":"set","p":"windowStatus","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":60,"wires":[["cb3490a4.d945"]]},{"id":"a1a3185.83808e8","type":"inject","z":"85e980fb.9ac9c","name":"HIGH_IN_EVENING","topic":"","payload":"HIGH","payloadType":"str","repeat":"","crontab":"30 19 * * *","once":false,"onceDelay":0.1,"x":200,"y":280,"wires":[["cb3490a4.d945"]]},{"id":"66355c8a.48b844","type":"inject","z":"85e980fb.9ac9c","name":"LOW_IN_NIGHT","topic":"","payload":"LOW","payloadType":"str","repeat":"","crontab":"30 00 * * *","once":false,"onceDelay":0.1,"x":190,"y":320,"wires":[["cb3490a4.d945"]]},{"id":"efadf269.4932d","type":"ui_text","z":"85e980fb.9ac9c","group":"3fd34d49.7fa762","order":1,"width":"3","height":"1","name":"TargetTemperature","label":"Soll","format":"{{msg.payload}}°C","layout":"row-left","x":910,"y":300,"wires":[]},{"id":"d089e13f.3e349","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"3fd34d49.7fa762","order":3,"width":"2","height":"1","passthru":true,"label":"Hoch","color":"","bgcolor":"","icon":"","payload":"HIGH","payloadType":"str","topic":"","x":230,"y":120,"wires":[["cb3490a4.d945"]]},{"id":"38c6f657.ad568a","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"3fd34d49.7fa762","order":4,"width":"2","height":"1","passthru":true,"label":"Niedrig","color":"","bgcolor":"","icon":"","payload":"LOW","payloadType":"str","topic":"","x":240,"y":160,"wires":[["cb3490a4.d945"]]},{"id":"b301f5ab.3dcbf8","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"3fd34d49.7fa762","order":5,"width":"2","height":"1","passthru":true,"label":"Aus","color":"","bgcolor":"","icon":"","payload":"OFF","payloadType":"str","topic":"","x":230,"y":200,"wires":[["cb3490a4.d945"]]},{"id":"54297977.e559b8","type":"mqtt out","z":"85e980fb.9ac9c","name":"Heating Kitchen","topic":"homegear/instance1/set/40/1/SET_TEMPERATURE","qos":"","retain":"","broker":"1c0f8b52.7ec605","x":900,"y":540,"wires":[]},{"id":"e40d8b1d.2de8c8","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"HIGH","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":500,"wires":[["27752b53.bebab4"]]},{"id":"d0aa5441.528968","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"OFF","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":580,"wires":[["2559e7a3.9c8d88"]]},{"id":"6df094fe.6aa28c","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"LOW","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":540,"wires":[["1d9875a9.fad35a"]]},{"id":"8d6649db.f89a38","type":"debug","z":"85e980fb.9ac9c","name":"Heating Kitchen","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":910,"y":620,"wires":[]},{"id":"157597ee.5a6a68","type":"link in","z":"85e980fb.9ac9c","name":"","links":["47c60556.9e9bdc"],"x":215,"y":440,"wires":[["c11ac5d5.bf2ec8","686a239c.dcc49c"]]},{"id":"be001959.29c8c8","type":"function","z":"85e980fb.9ac9c","name":"HeatingControl","func":"if ('windowStatus' in msg) {\n context.set('windowStatus', msg.windowStatus)\n node.warn(`Set windowStatus to ${msg.windowStatus}`)\n}\nif ('payload' in msg) {\n node.warn(`Got payload ${msg.payload}`)\n if (['OFF', 'HIGH', 'LOW'].indexOf(msg.payload) != -1) {\n context.set('heating', msg.payload) \n node.warn(`Set heating to ${msg.payload}`)\n }\n}\nlet windowStatus = context.get('windowStatus')\nlet heating = context.get('heating') || \"OFF\"\nnode.status({fill:(windowStatus ? \"green\" : \"red\"),shape:\"dot\",text:`${windowStatus}, ${heating}`})\nif (windowStatus) {\n msg.payload = heating\n} else {\n msg.payload = 'FORCED_OFF'\n}\nreturn msg;","outputs":1,"noerr":0,"x":500,"y":580,"wires":[["972acd14.edca8"]]},{"id":"c11ac5d5.bf2ec8","type":"change","z":"85e980fb.9ac9c","name":"WindowStatusAdaptor","rules":[{"t":"set","p":"windowStatus","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":440,"wires":[["be001959.29c8c8"]]},{"id":"d51beb21.c9b528","type":"ui_text","z":"85e980fb.9ac9c","group":"8e11452e.2aeb98","order":0,"width":"0","height":"0","name":"TargetTemperature","label":"Soll","format":"{{msg.payload}}°C","layout":"row-left","x":910,"y":680,"wires":[]},{"id":"27752b53.bebab4","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"8e11452e.2aeb98","order":0,"width":"2","height":"1","passthru":true,"label":"Hoch","color":"","bgcolor":"","icon":"","payload":"HIGH","payloadType":"str","topic":"","x":230,"y":500,"wires":[["be001959.29c8c8"]]},{"id":"1d9875a9.fad35a","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"8e11452e.2aeb98","order":0,"width":"2","height":"1","passthru":true,"label":"Niedrig","color":"","bgcolor":"","icon":"","payload":"LOW","payloadType":"str","topic":"","x":240,"y":540,"wires":[["be001959.29c8c8"]]},{"id":"2559e7a3.9c8d88","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"8e11452e.2aeb98","order":0,"width":"2","height":"1","passthru":true,"label":"Aus","color":"","bgcolor":"","icon":"","payload":"OFF","payloadType":"str","topic":"","x":230,"y":580,"wires":[["be001959.29c8c8"]]},{"id":"7e0d7a52.118f64","type":"inject","z":"85e980fb.9ac9c","name":"HIGH_IN_MORNING","topic":"","payload":"HIGH","payloadType":"str","repeat":"","crontab":"30 06 * * *","once":false,"onceDelay":0.1,"x":180,"y":640,"wires":[["be001959.29c8c8"]]},{"id":"fe9e8ded.8b48d","type":"inject","z":"85e980fb.9ac9c","name":"LOW_IN_NIGHT","topic":"","payload":"LOW","payloadType":"str","repeat":"","crontab":"00 23 * * *","once":false,"onceDelay":0.1,"x":170,"y":680,"wires":[["be001959.29c8c8"]]},{"id":"972acd14.edca8","type":"function","z":"85e980fb.9ac9c","name":"TempMapper","func":"let OFF_TEMP = 5.0\nlet LOW_TEMP = 15.0\nlet HIGH_TEMP = context.get('temperature') || 10.0\n\nif ('payload' in msg) {\n node.warn(`Got payload ${msg.payload}`)\n switch (msg.payload) {\n case \"OFF\":\n case \"FORCED_OFF\":\n msg.payload = OFF_TEMP\n break\n case \"LOW\":\n msg.payload = LOW_TEMP\n break\n case \"HIGH\":\n msg.payload = HIGH_TEMP\n break\n default:\n context.set('temperature', msg.payload)\n return\n break\n }\n}\nnode.status({fill:\"blue\",shape:\"dot\",text:`${msg.payload}`})\nreturn msg;","outputs":1,"noerr":0,"x":690,"y":580,"wires":[["8d6649db.f89a38","d51beb21.c9b528","54297977.e559b8"]]},{"id":"aff3a17f.1cfc9","type":"ui_numeric","z":"85e980fb.9ac9c","name":"TargetTemp","label":"Hoch / °C","group":"8e11452e.2aeb98","order":0,"width":"3","height":"1","passthru":true,"topic":"","format":"{{value}}","min":"5","max":"30","step":1,"x":610,"y":640,"wires":[["972acd14.edca8"]]},{"id":"969912ea.adde3","type":"function","z":"85e980fb.9ac9c","name":"TempMapper","func":"let OFF_TEMP = 5.0\nlet LOW_TEMP = 15.0\nlet HIGH_TEMP = context.get('temperature') || 10.0\n\nif ('payload' in msg) {\n node.warn(`Got payload ${msg.payload}`)\n switch (msg.payload) {\n case \"OFF\":\n case \"FORCED_OFF\":\n msg.payload = OFF_TEMP\n break\n case \"LOW\":\n msg.payload = LOW_TEMP\n break\n case \"HIGH\":\n msg.payload = HIGH_TEMP\n break\n default:\n context.set('temperature', msg.payload)\n return\n break\n }\n}\nnode.status({fill:\"blue\",shape:\"dot\",text:`${msg.payload}`})\nreturn msg;","outputs":1,"noerr":0,"x":690,"y":200,"wires":[["cac0ea1a.f46ed8","7a24fcec.eff614","efadf269.4932d"]]},{"id":"bb42059d.8f44d8","type":"ui_numeric","z":"85e980fb.9ac9c","name":"TargetTemp","label":"Hoch / °C","group":"3fd34d49.7fa762","order":6,"width":"3","height":"1","passthru":true,"topic":"","format":"{{value}}","min":"5","max":"30","step":1,"x":610,"y":260,"wires":[["969912ea.adde3"]]},{"id":"75321574.6b49cc","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"21","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":450,"y":260,"wires":[["bb42059d.8f44d8"]]},{"id":"d62a52d3.e82d","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"21","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":450,"y":640,"wires":[["aff3a17f.1cfc9"]]},{"id":"2730a9b9.d29886","type":"mqtt out","z":"85e980fb.9ac9c","name":"Heating Bathroom 1. Fl","topic":"homegear/instance1/set/41/1/SET_TEMPERATURE","qos":"","retain":"","broker":"1c0f8b52.7ec605","x":930,"y":900,"wires":[]},{"id":"2e37b22a.d2e18e","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"HIGH","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":860,"wires":[["79dd2820.13c5b8"]]},{"id":"66b21e4e.8ba4d","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"OFF","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":940,"wires":[["ce09584f.fac018"]]},{"id":"ddc10399.92db7","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"LOW","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":900,"wires":[["7ed7f210.b11b5c"]]},{"id":"ad7d5e98.55ac","type":"debug","z":"85e980fb.9ac9c","name":"Heating Bathroom 1. Fl","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":930,"y":980,"wires":[]},{"id":"b753b933.0a6158","type":"link in","z":"85e980fb.9ac9c","name":"","links":["3f3f8622.44caba"],"x":215,"y":800,"wires":[["867ef21a.5d51b","2f131960.96b076"]]},{"id":"4ba12276.f8dfdc","type":"function","z":"85e980fb.9ac9c","name":"HeatingControl","func":"if ('windowStatus' in msg) {\n context.set('windowStatus', msg.windowStatus)\n node.warn(`Set windowStatus to ${msg.windowStatus}`)\n}\nif ('payload' in msg) {\n node.warn(`Got payload ${msg.payload}`)\n if (['OFF', 'HIGH', 'LOW'].indexOf(msg.payload) != -1) {\n context.set('heating', msg.payload) \n node.warn(`Set heating to ${msg.payload}`)\n }\n}\nlet windowStatus = context.get('windowStatus')\nlet heating = context.get('heating') || \"OFF\"\nnode.status({fill:(windowStatus ? \"green\" : \"red\"),shape:\"dot\",text:`${windowStatus}, ${heating}`})\nif (windowStatus) {\n msg.payload = heating\n} else {\n msg.payload = 'FORCED_OFF'\n}\nreturn msg;","outputs":1,"noerr":0,"x":500,"y":940,"wires":[["60ce0444.cef48c"]]},{"id":"867ef21a.5d51b","type":"change","z":"85e980fb.9ac9c","name":"WindowStatusAdaptor","rules":[{"t":"set","p":"windowStatus","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":800,"wires":[["4ba12276.f8dfdc"]]},{"id":"ea29cca5.2029f","type":"ui_text","z":"85e980fb.9ac9c","group":"dccde73d.b40188","order":0,"width":"0","height":"0","name":"TargetTemperature","label":"Soll","format":"{{msg.payload}}°C","layout":"row-left","x":910,"y":1040,"wires":[]},{"id":"79dd2820.13c5b8","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"dccde73d.b40188","order":0,"width":"2","height":"1","passthru":true,"label":"Hoch","color":"","bgcolor":"","icon":"","payload":"HIGH","payloadType":"str","topic":"","x":230,"y":860,"wires":[["4ba12276.f8dfdc"]]},{"id":"7ed7f210.b11b5c","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"dccde73d.b40188","order":0,"width":"2","height":"1","passthru":true,"label":"Niedrig","color":"","bgcolor":"","icon":"","payload":"LOW","payloadType":"str","topic":"","x":240,"y":900,"wires":[["4ba12276.f8dfdc"]]},{"id":"ce09584f.fac018","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"dccde73d.b40188","order":0,"width":"2","height":"1","passthru":true,"label":"Aus","color":"","bgcolor":"","icon":"","payload":"OFF","payloadType":"str","topic":"","x":230,"y":940,"wires":[["4ba12276.f8dfdc"]]},{"id":"84dfe660.e5a4f8","type":"inject","z":"85e980fb.9ac9c","name":"HIGH_IN_MORNING","topic":"","payload":"HIGH","payloadType":"str","repeat":"","crontab":"00 06 * * *","once":false,"onceDelay":0.1,"x":180,"y":1000,"wires":[["4ba12276.f8dfdc"]]},{"id":"4df617b.7b09de8","type":"inject","z":"85e980fb.9ac9c","name":"LOW_LATER_IN_MORNING","topic":"","payload":"LOW","payloadType":"str","repeat":"","crontab":"00 11 * * *","once":false,"onceDelay":0.1,"x":210,"y":1040,"wires":[["4ba12276.f8dfdc"]]},{"id":"60ce0444.cef48c","type":"function","z":"85e980fb.9ac9c","name":"TempMapper","func":"let OFF_TEMP = 5.0\nlet LOW_TEMP = 15.0\nlet HIGH_TEMP = context.get('temperature') || 10.0\n\nif ('payload' in msg) {\n node.warn(`Got payload ${msg.payload}`)\n switch (msg.payload) {\n case \"OFF\":\n case \"FORCED_OFF\":\n msg.payload = OFF_TEMP\n break\n case \"LOW\":\n msg.payload = LOW_TEMP\n break\n case \"HIGH\":\n msg.payload = HIGH_TEMP\n break\n default:\n context.set('temperature', msg.payload)\n return\n break\n }\n}\nnode.status({fill:\"blue\",shape:\"dot\",text:`${msg.payload}`})\nreturn msg;","outputs":1,"noerr":0,"x":690,"y":940,"wires":[["ad7d5e98.55ac","ea29cca5.2029f","2730a9b9.d29886"]]},{"id":"953e280d.e3b038","type":"ui_numeric","z":"85e980fb.9ac9c","name":"TargetTemp","label":"Hoch / °C","group":"dccde73d.b40188","order":0,"width":"3","height":"1","passthru":true,"topic":"","format":"{{value}}","min":"5","max":"30","step":1,"x":610,"y":1000,"wires":[["60ce0444.cef48c"]]},{"id":"2abb5bf0.982364","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"21","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":450,"y":1000,"wires":[["953e280d.e3b038"]]},{"id":"83b8d824.901b28","type":"ui_text","z":"85e980fb.9ac9c","group":"3fd34d49.7fa762","order":7,"width":"3","height":"1","name":"Window","label":"Fenster","format":"{{msg.payload ? \"geschl.\" : \"offen\" }}","layout":"row-spread","x":520,"y":140,"wires":[]},{"id":"686a239c.dcc49c","type":"ui_text","z":"85e980fb.9ac9c","group":"8e11452e.2aeb98","order":0,"width":"3","height":"1","name":"Window","label":"Fenster","format":"{{msg.payload ? \"geschl.\" : \"offen\" }}","layout":"row-spread","x":520,"y":520,"wires":[]},{"id":"2f131960.96b076","type":"ui_text","z":"85e980fb.9ac9c","group":"dccde73d.b40188","order":0,"width":"3","height":"1","name":"Window","label":"Fenster","format":"{{msg.payload ? \"geschl.\" : \"offen\" }}","layout":"row-spread","x":520,"y":880,"wires":[]},{"id":"ec216f4a.72307","type":"comment","z":"85e980fb.9ac9c","name":"Bedroom","info":"","x":80,"y":60,"wires":[]},{"id":"f9234801.bc43e8","type":"comment","z":"85e980fb.9ac9c","name":"Kitchen","info":"","x":70,"y":440,"wires":[]},{"id":"90875694.2041e8","type":"comment","z":"85e980fb.9ac9c","name":"Bathroom 1. Fl","info":"","x":100,"y":800,"wires":[]},{"id":"857fbe90.c1684","type":"mqtt out","z":"85e980fb.9ac9c","name":"Heating Anna","topic":"homegear/instance1/set/42/1/SET_TEMPERATURE","qos":"","retain":"","broker":"1c0f8b52.7ec605","x":900,"y":1280,"wires":[]},{"id":"b4e951fd.8be41","type":"mqtt out","z":"85e980fb.9ac9c","name":"Heating Matthias","topic":"homegear/instance1/set/43/1/SET_TEMPERATURE","qos":"","retain":"","broker":"1c0f8b52.7ec605","x":910,"y":1900,"wires":[]},{"id":"d7e39c5b.86f8c","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"HIGH","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":1240,"wires":[["cd580071.8f0e9"]]},{"id":"b116db16.39d028","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"OFF","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":1320,"wires":[["5c362128.1e362"]]},{"id":"a248466d.315268","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"LOW","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":1280,"wires":[["9b1f9696.87a458"]]},{"id":"f893a5f0.b6f528","type":"debug","z":"85e980fb.9ac9c","name":"Heating Anna","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":900,"y":1360,"wires":[]},{"id":"8d0f297c.4dcb28","type":"link in","z":"85e980fb.9ac9c","name":"","links":["d4ac6506.f0b608"],"x":215,"y":1180,"wires":[["8dc96bf6.835238","c9660a91.f4e2c8"]]},{"id":"1223d4de.4fa77b","type":"function","z":"85e980fb.9ac9c","name":"HeatingControl","func":"if ('windowStatus' in msg) {\n context.set('windowStatus', msg.windowStatus)\n node.warn(`Set windowStatus to ${msg.windowStatus}`)\n}\nif ('payload' in msg) {\n node.warn(`Got payload ${msg.payload}`)\n if (['OFF', 'HIGH', 'LOW'].indexOf(msg.payload) != -1) {\n context.set('heating', msg.payload) \n node.warn(`Set heating to ${msg.payload}`)\n }\n}\nlet windowStatus = context.get('windowStatus')\nlet heating = context.get('heating') || \"OFF\"\nnode.status({fill:(windowStatus ? \"green\" : \"red\"),shape:\"dot\",text:`${windowStatus}, ${heating}`})\nif (windowStatus) {\n msg.payload = heating\n} else {\n msg.payload = 'FORCED_OFF'\n}\nreturn msg;","outputs":1,"noerr":0,"x":500,"y":1320,"wires":[["121bc58.81cb63b"]]},{"id":"8dc96bf6.835238","type":"change","z":"85e980fb.9ac9c","name":"WindowStatusAdaptor","rules":[{"t":"set","p":"windowStatus","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":1180,"wires":[["1223d4de.4fa77b"]]},{"id":"9130ebae.faaee8","type":"ui_text","z":"85e980fb.9ac9c","group":"544f71e2.655ff","order":0,"width":"0","height":"0","name":"TargetTemperature","label":"Soll","format":"{{msg.payload}}°C","layout":"row-left","x":910,"y":1420,"wires":[]},{"id":"cd580071.8f0e9","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"544f71e2.655ff","order":0,"width":"2","height":"1","passthru":true,"label":"Hoch","color":"","bgcolor":"","icon":"","payload":"HIGH","payloadType":"str","topic":"","x":230,"y":1240,"wires":[["1223d4de.4fa77b"]]},{"id":"9b1f9696.87a458","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"544f71e2.655ff","order":0,"width":"2","height":"1","passthru":true,"label":"Niedrig","color":"","bgcolor":"","icon":"","payload":"LOW","payloadType":"str","topic":"","x":240,"y":1280,"wires":[["1223d4de.4fa77b"]]},{"id":"5c362128.1e362","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"544f71e2.655ff","order":0,"width":"2","height":"1","passthru":true,"label":"Aus","color":"","bgcolor":"","icon":"","payload":"OFF","payloadType":"str","topic":"","x":230,"y":1320,"wires":[["1223d4de.4fa77b"]]},{"id":"121bc58.81cb63b","type":"function","z":"85e980fb.9ac9c","name":"TempMapper","func":"let OFF_TEMP = 5.0\nlet LOW_TEMP = 15.0\nlet HIGH_TEMP = context.get('temperature') || 10.0\n\nif ('payload' in msg) {\n node.warn(`Got payload ${msg.payload}`)\n switch (msg.payload) {\n case \"OFF\":\n case \"FORCED_OFF\":\n msg.payload = OFF_TEMP\n break\n case \"LOW\":\n msg.payload = LOW_TEMP\n break\n case \"HIGH\":\n msg.payload = HIGH_TEMP\n break\n default:\n context.set('temperature', msg.payload)\n return\n break\n }\n}\nnode.status({fill:\"blue\",shape:\"dot\",text:`${msg.payload}`})\nreturn msg;","outputs":1,"noerr":0,"x":690,"y":1320,"wires":[["f893a5f0.b6f528","9130ebae.faaee8","857fbe90.c1684"]]},{"id":"83fce71c.f874f8","type":"ui_numeric","z":"85e980fb.9ac9c","name":"TargetTemp","label":"Hoch / °C","group":"544f71e2.655ff","order":0,"width":"3","height":"1","passthru":true,"topic":"","format":"{{value}}","min":"5","max":"30","step":1,"x":610,"y":1380,"wires":[["121bc58.81cb63b"]]},{"id":"ef642e4.7d361d","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"21","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":450,"y":1380,"wires":[["83fce71c.f874f8"]]},{"id":"c9660a91.f4e2c8","type":"ui_text","z":"85e980fb.9ac9c","group":"544f71e2.655ff","order":0,"width":"3","height":"1","name":"Window","label":"Fenster","format":"{{msg.payload ? \"geschl.\" : \"offen\" }}","layout":"row-spread","x":520,"y":1260,"wires":[]},{"id":"416fab15.df11f4","type":"comment","z":"85e980fb.9ac9c","name":"Anna","info":"","x":70,"y":1180,"wires":[]},{"id":"b6b5b3b7.fd971","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"HIGH","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":1860,"wires":[["59a389c5.1bf138"]]},{"id":"69db6aa3.8e8e24","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"OFF","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":2060,"wires":[["3951a49f.d9bf6c"]]},{"id":"809d6d98.1ed32","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"LOW","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":1960,"wires":[["89b6b02e.7e1bd"]]},{"id":"d01d9478.47bc28","type":"debug","z":"85e980fb.9ac9c","name":"Heating Matthias","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":910,"y":1980,"wires":[]},{"id":"67b37a28.783d64","type":"link in","z":"85e980fb.9ac9c","name":"","links":["de43097c.b4aac8"],"x":215,"y":1800,"wires":[["57370766.0ffe08","1095fca.4e90b03","4c167bbf.4a1ba4"]]},{"id":"2f75366e.33c97a","type":"function","z":"85e980fb.9ac9c","name":"HeatingControl","func":"if ('windowStatus' in msg) {\n context.set('windowStatus', msg.windowStatus)\n node.warn(`Set windowStatus to ${msg.windowStatus}`)\n}\nif ('payload' in msg) {\n node.warn(`Got payload ${msg.payload}`)\n if (['OFF', 'HIGH', 'LOW'].indexOf(msg.payload) != -1) {\n context.set('heating', msg.payload) \n node.warn(`Set heating to ${msg.payload}`)\n }\n}\nlet windowStatus = context.get('windowStatus')\nlet heating = context.get('heating') || \"OFF\"\nnode.status({fill:(windowStatus ? \"green\" : \"red\"),shape:\"dot\",text:`${windowStatus}, ${heating}`})\nif (windowStatus) {\n msg.payload = heating\n} else {\n msg.payload = 'FORCED_OFF'\n}\nreturn msg;","outputs":1,"noerr":0,"x":500,"y":1940,"wires":[["4ad6c527.24617c"]]},{"id":"57370766.0ffe08","type":"change","z":"85e980fb.9ac9c","name":"WindowStatusAdaptor","rules":[{"t":"set","p":"windowStatus","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":1800,"wires":[["2f75366e.33c97a"]]},{"id":"d07f5438.c40378","type":"ui_text","z":"85e980fb.9ac9c","group":"4a42dcdc.6ad814","order":0,"width":0,"height":0,"name":"TargetTemperature","label":"Soll","format":"{{msg.payload}}°C","layout":"row-left","x":910,"y":2040,"wires":[]},{"id":"59a389c5.1bf138","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"4a42dcdc.6ad814","order":0,"width":"2","height":"1","passthru":true,"label":"Hoch","color":"","bgcolor":"","icon":"","payload":"HIGH","payloadType":"str","topic":"","x":230,"y":1860,"wires":[["4fef4856.c3fdb8"]]},{"id":"89b6b02e.7e1bd","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"4a42dcdc.6ad814","order":0,"width":"2","height":"1","passthru":true,"label":"Niedrig","color":"","bgcolor":"","icon":"","payload":"LOW","payloadType":"str","topic":"","x":240,"y":1960,"wires":[["5f655068.4bf21"]]},{"id":"3951a49f.d9bf6c","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"4a42dcdc.6ad814","order":0,"width":"2","height":"1","passthru":true,"label":"Aus","color":"","bgcolor":"","icon":"","payload":"OFF","payloadType":"str","topic":"","x":230,"y":2060,"wires":[["613f2f5c.f3f6d"]]},{"id":"4ad6c527.24617c","type":"function","z":"85e980fb.9ac9c","name":"TempMapper","func":"let OFF_TEMP = 5.0\nlet LOW_TEMP = 15.0\nlet HIGH_TEMP = context.get('temperature') || 10.0\n\nif ('payload' in msg) {\n node.warn(`Got payload ${msg.payload}`)\n switch (msg.payload) {\n case \"OFF\":\n case \"FORCED_OFF\":\n msg.payload = OFF_TEMP\n break\n case \"LOW\":\n msg.payload = LOW_TEMP\n break\n case \"HIGH\":\n msg.payload = HIGH_TEMP\n break\n default:\n context.set('temperature', msg.payload)\n return\n break\n }\n}\nnode.status({fill:\"blue\",shape:\"dot\",text:`${msg.payload}`})\nreturn msg;","outputs":1,"noerr":0,"x":690,"y":1940,"wires":[["d01d9478.47bc28","d07f5438.c40378","b4e951fd.8be41","f42f163.fadc0e8"]]},{"id":"c56aadb2.1f8fa","type":"ui_numeric","z":"85e980fb.9ac9c","name":"TargetTemp","label":"Hoch / °C","group":"4a42dcdc.6ad814","order":0,"width":"3","height":"1","passthru":true,"topic":"","format":"{{value}}","min":"5","max":"30","step":1,"x":610,"y":2000,"wires":[["4ad6c527.24617c"]]},{"id":"6599f45b.1d894c","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"21","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":450,"y":2000,"wires":[["c56aadb2.1f8fa"]]},{"id":"1095fca.4e90b03","type":"ui_text","z":"85e980fb.9ac9c","group":"4a42dcdc.6ad814","order":0,"width":"3","height":"1","name":"Window","label":"Fenster","format":"{{msg.payload ? \"geschl.\" : \"offen\" }}","layout":"row-spread","x":580,"y":1880,"wires":[]},{"id":"38a4f8bf.acccf8","type":"comment","z":"85e980fb.9ac9c","name":"Matthias","info":"","x":80,"y":1800,"wires":[]},{"id":"fc6e4821.a3ea18","type":"inject","z":"85e980fb.9ac9c","name":"true_IN_MORNING","topic":"cron","payload":"true","payloadType":"bool","repeat":"","crontab":"30 06 * * *","once":false,"onceDelay":0.1,"x":140,"y":2240,"wires":[["90bf2f88.58133"]]},{"id":"24d81f84.5c1a2","type":"inject","z":"85e980fb.9ac9c","name":"false_IN_NIGHT","topic":"cron","payload":"false","payloadType":"bool","repeat":"","crontab":"00 23 * * *","once":false,"onceDelay":0.1,"x":130,"y":2180,"wires":[["90bf2f88.58133"]]},{"id":"90bf2f88.58133","type":"combine-logic","z":"85e980fb.9ac9c","name":"","topic":"","operator":"and","defer":250,"timeout":0,"distinction":"topic","x":340,"y":2280,"wires":[["3205418c.789b8e"]]},{"id":"e4b81a18.54e938","type":"link in","z":"85e980fb.9ac9c","name":"","links":["65c0ab55.f13704"],"x":215,"y":2320,"wires":[["90bf2f88.58133"]]},{"id":"3205418c.789b8e","type":"change","z":"85e980fb.9ac9c","name":"true2HIGH/false2LOW","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"HIGH","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"LOW","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":2220,"wires":[["2f75366e.33c97a"]]},{"id":"4fef4856.c3fdb8","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"11a5edf4.9f9712","order":0,"width":0,"height":0,"passthru":true,"label":"Hoch","color":"","bgcolor":"","icon":"","payload":"HIGH","payloadType":"str","topic":"","x":230,"y":1900,"wires":[["2f75366e.33c97a"]]},{"id":"5f655068.4bf21","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"11a5edf4.9f9712","order":0,"width":0,"height":0,"passthru":true,"label":"Niedrig","color":"","bgcolor":"","icon":"","payload":"LOW","payloadType":"str","topic":"","x":240,"y":2000,"wires":[["2f75366e.33c97a"]]},{"id":"613f2f5c.f3f6d","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"11a5edf4.9f9712","order":0,"width":0,"height":0,"passthru":true,"label":"Aus","color":"","bgcolor":"","icon":"","payload":"OFF","payloadType":"str","topic":"","x":230,"y":2100,"wires":[["2f75366e.33c97a"]]},{"id":"4c167bbf.4a1ba4","type":"ui_text","z":"85e980fb.9ac9c","group":"11a5edf4.9f9712","order":0,"width":0,"height":0,"name":"Window","label":"Fenster","format":"{{msg.payload ? \"geschlossen\" : \"offen\" }}","layout":"row-spread","x":580,"y":1840,"wires":[]},{"id":"f42f163.fadc0e8","type":"ui_text","z":"85e980fb.9ac9c","group":"11a5edf4.9f9712","order":0,"width":0,"height":0,"name":"Dashboard Feedback","label":"","format":"{{msg.payload}}°C","layout":"col-center","x":920,"y":2080,"wires":[]},{"id":"23f95f6c.b120b","type":"mqtt in","z":"b87987c6.54a068","name":"","topic":"homegear/instance1/plain/+/0/LOWBAT","qos":"2","broker":"1c0f8b52.7ec605","x":280,"y":180,"wires":[["4302e11b.a0e"]]},{"id":"cce38e19.5343c","type":"debug","z":"b87987c6.54a068","name":"BatteryMail","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":880,"y":180,"wires":[]},{"id":"1ed070a.7ba238f","type":"ui_switch","z":"1668233b.c34ead","name":"Fensterbank","label":"Fensterbank","group":"e4f7893f.aca378","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":510,"y":120,"wires":[["ebf2ff60.c8b5e"]]},{"id":"8e311245.91f2b","type":"ui_switch","z":"1668233b.c34ead","name":"Decke","label":"Decke","group":"e4f7893f.aca378","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":490,"y":300,"wires":[["76c00293.607f8c"]]},{"id":"559fc54d.9b66ac","type":"ui_switch","z":"1668233b.c34ead","name":"Schreibtisch","label":"Schreibtisch","group":"4a344740.e1c3b8","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":510,"y":480,"wires":[["8d88bce6.4ac67"]]},{"id":"7364a75e.9b3a68","type":"ui_switch","z":"1668233b.c34ead","name":"Stehlampe","label":"Stehlampe","group":"4a344740.e1c3b8","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":510,"y":660,"wires":[["3eb84a07.7de566"]]},{"id":"4519d1ec.7f536","type":"ui_switch","z":"1668233b.c34ead","name":"Schrank","label":"Schrank","group":"4a344740.e1c3b8","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":500,"y":840,"wires":[["78646777.40f898"]]},{"id":"8d611830.a3e8c8","type":"switch","z":"6d5dc8fd.c55a08","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"eco","vt":"str"},{"t":"eq","v":"day","vt":"str"},{"t":"eq","v":"morning","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":350,"y":640,"wires":[["dd5b1aac.0fb068","585b5804.0e8908"],["350cb182.5e5dde","d0885ce5.866ff"],["45fe6cd1.bda344","8a00ff9a.4a554"],["6dc9af8e.4f761"]]},{"id":"dd5b1aac.0fb068","type":"change","z":"6d5dc8fd.c55a08","name":"eco true","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":520,"wires":[["f5c92d01.dd9ed"]]},{"id":"585b5804.0e8908","type":"change","z":"6d5dc8fd.c55a08","name":"eco false","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":560,"wires":[["5a9389f4.0f1a18"]]},{"id":"350cb182.5e5dde","type":"change","z":"6d5dc8fd.c55a08","name":"day true","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":620,"wires":[["8f4c92e7.d0e65"]]},{"id":"d0885ce5.866ff","type":"change","z":"6d5dc8fd.c55a08","name":"day false","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":660,"wires":[["7c5e098c.520ce8"]]},{"id":"45fe6cd1.bda344","type":"change","z":"6d5dc8fd.c55a08","name":"morning true","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":720,"wires":[["42065911.514378"]]},{"id":"8a00ff9a.4a554","type":"change","z":"6d5dc8fd.c55a08","name":"morning false","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":760,"wires":[["749a1d3c.50d5e4"]]},{"id":"6dc9af8e.4f761","type":"change","z":"6d5dc8fd.c55a08","name":"all off false","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":820,"wires":[["50631528.d34dac"]]},{"id":"8d792496.23ec68","type":"link in","z":"1668233b.c34ead","name":"LightInKitchenWindow","links":["f5c92d01.dd9ed","8f4c92e7.d0e65","42065911.514378","50631528.d34dac"],"x":375,"y":80,"wires":[["1ed070a.7ba238f"]]},{"id":"f5c92d01.dd9ed","type":"link out","z":"6d5dc8fd.c55a08","name":"eco true","links":["64c5cc7d.3673f4","81b126cd.a84f48","8d792496.23ec68","3e1f5965.d939d6","5cac823d.da3b1c","d5c11048.78928","f96c2c74.7ab2c","b7696b15.571798","bc709d18.8419e","37d349f1.e54146","85f4d30d.8b60b"],"x":735,"y":520,"wires":[]},{"id":"dbc81c50.4693e","type":"link in","z":"1668233b.c34ead","name":"LightInKitchenCeiling","links":["5a9389f4.0f1a18","8f4c92e7.d0e65","42065911.514378","50631528.d34dac"],"x":380,"y":260,"wires":[["8e311245.91f2b"]]},{"id":"5a9389f4.0f1a18","type":"link out","z":"6d5dc8fd.c55a08","name":"eco false","links":["dbc81c50.4693e","f2e1c2a0.30923","68c685de.507a9c","a698ebfc.3a2ad8"],"x":735,"y":560,"wires":[]},{"id":"81b126cd.a84f48","type":"link in","z":"1668233b.c34ead","name":"LightInHallwayDesk","links":["8f4c92e7.d0e65","42065911.514378","50631528.d34dac","f5c92d01.dd9ed"],"x":375,"y":440,"wires":[["559fc54d.9b66ac"]]},{"id":"8f4c92e7.d0e65","type":"link out","z":"6d5dc8fd.c55a08","name":"day true","links":["64c5cc7d.3673f4","81b126cd.a84f48","8d792496.23ec68","dbc81c50.4693e","f2e1c2a0.30923","3e1f5965.d939d6","5cac823d.da3b1c","d5c11048.78928","f96c2c74.7ab2c","b7696b15.571798","bc709d18.8419e","68c685de.507a9c","a698ebfc.3a2ad8","37d349f1.e54146","85f4d30d.8b60b"],"x":735,"y":620,"wires":[]},{"id":"7c5e098c.520ce8","type":"link out","z":"6d5dc8fd.c55a08","name":"day false","links":[],"x":735,"y":660,"wires":[]},{"id":"749a1d3c.50d5e4","type":"link out","z":"6d5dc8fd.c55a08","name":"morning false","links":["bc709d18.8419e","b7696b15.571798","f96c2c74.7ab2c","d5c11048.78928","5cac823d.da3b1c","68c685de.507a9c","a698ebfc.3a2ad8","37d349f1.e54146","85f4d30d.8b60b"],"x":735,"y":760,"wires":[]},{"id":"42065911.514378","type":"link out","z":"6d5dc8fd.c55a08","name":"morning true","links":["64c5cc7d.3673f4","81b126cd.a84f48","8d792496.23ec68","dbc81c50.4693e","f2e1c2a0.30923","3e1f5965.d939d6"],"x":735,"y":720,"wires":[]},{"id":"50631528.d34dac","type":"link out","z":"6d5dc8fd.c55a08","name":"all off false","links":["64c5cc7d.3673f4","81b126cd.a84f48","8d792496.23ec68","dbc81c50.4693e","f2e1c2a0.30923","3e1f5965.d939d6","5cac823d.da3b1c","d5c11048.78928","f96c2c74.7ab2c","b7696b15.571798","bc709d18.8419e","68c685de.507a9c","a698ebfc.3a2ad8","37d349f1.e54146","85f4d30d.8b60b","bfb49414.e99458"],"x":735,"y":820,"wires":[]},{"id":"f2e1c2a0.30923","type":"link in","z":"1668233b.c34ead","name":"LightInHallwayStand","links":["42065911.514378","50631528.d34dac","8f4c92e7.d0e65","5a9389f4.0f1a18"],"x":375,"y":620,"wires":[["7364a75e.9b3a68"]]},{"id":"64c5cc7d.3673f4","type":"link in","z":"1668233b.c34ead","name":"LightInHallwayWardrobe","links":["42065911.514378","50631528.d34dac","8f4c92e7.d0e65","f5c92d01.dd9ed"],"x":375,"y":800,"wires":[["4519d1ec.7f536"]]},{"id":"6a08e95d.75cbb8","type":"inject","z":"c6facb84.d5d508","name":"PeriodicalTrigger 1min","topic":"","payload":"","payloadType":"date","repeat":"60","crontab":"","once":false,"onceDelay":"1","x":150,"y":180,"wires":[["788630c.233a2d","f2ee703e.fb189","bc4aff2b.2d155"]]},{"id":"788630c.233a2d","type":"influxdb in","z":"c6facb84.d5d508","influxdb":"36da8460.3fe9fc","name":"avg_temp_hedge_last_15min","query":"select mean(value) from temperature where location = 'Hedge' and time > now() - 15m","rawOutput":false,"precision":"","retentionPolicy":"","x":470,"y":180,"wires":[["d2ba9bc6.9dd388"]]},{"id":"35e554d6.08aa6c","type":"ui_gauge","z":"c6facb84.d5d508","name":"Außentemp.","group":"8cc27fbd.d4e6e","order":0,"width":"6","height":"6","gtype":"gage","title":"Außentemp.","label":"°C","format":"{{value}}","min":"-20","max":"40","colors":["#0004b5","#33e600","#ca3838"],"seg1":"10","seg2":"30","x":910,"y":180,"wires":[]},{"id":"d2ba9bc6.9dd388","type":"function","z":"c6facb84.d5d508","name":"toFloat1Digit","func":"msg.payload = parseFloat(msg.payload[0].mean).toFixed(1);\nreturn msg;","outputs":1,"noerr":0,"x":710,"y":180,"wires":[["35e554d6.08aa6c"]]},{"id":"9d33d2ac.c2659","type":"influxdb in","z":"c6facb84.d5d508","influxdb":"36da8460.3fe9fc","name":"avg_temp_freezer_last_6h","query":"select mean(value) from temperature where location = 'freezer' and time > now() - 6h","rawOutput":false,"precision":"","retentionPolicy":"","x":460,"y":620,"wires":[["7cbef272.ad8c7c"]]},{"id":"5a69f55d.e6228c","type":"ui_gauge","z":"c6facb84.d5d508","name":"","group":"da3bb206.e2c6e","order":0,"width":"6","height":"6","gtype":"gage","title":"Gefrierschrank Keller","label":"°C","format":"{{value}}","min":"-25","max":"10","colors":["#00b500","#e6e600","#ca3838"],"seg1":"-5","seg2":"2","x":940,"y":620,"wires":[]},{"id":"7cbef272.ad8c7c","type":"function","z":"c6facb84.d5d508","name":"toFloat1Digit","func":"msg.payload = parseFloat(msg.payload[0].mean).toFixed(1);\nreturn msg;","outputs":1,"noerr":0,"x":710,"y":620,"wires":[["5a69f55d.e6228c"]]},{"id":"dcb85242.0ee6c","type":"inject","z":"c6facb84.d5d508","name":"PeriodicalTrigger 15min","topic":"","payload":"","payloadType":"date","repeat":"900","crontab":"","once":false,"onceDelay":"1","x":150,"y":620,"wires":[["9d33d2ac.c2659"]]},{"id":"f2ee703e.fb189","type":"influxdb in","z":"c6facb84.d5d508","influxdb":"36da8460.3fe9fc","name":"avg_temp_bedroom_last_15min","query":"select mean(value) from temperature where location = 'Bedroom' and time > now() - 15m","rawOutput":false,"precision":"","retentionPolicy":"","x":470,"y":300,"wires":[["2e8f30f4.fc4e2"]]},{"id":"2e8f30f4.fc4e2","type":"function","z":"c6facb84.d5d508","name":"toFloat1Digit","func":"msg.payload = parseFloat(msg.payload[0].mean).toFixed(1);\nreturn msg;","outputs":1,"noerr":0,"x":710,"y":300,"wires":[["78b0fd94.d620b4","bc0ea633.c480c8"]]},{"id":"78b0fd94.d620b4","type":"ui_gauge","z":"c6facb84.d5d508","name":"","group":"75c07dde.d93824","order":0,"width":"6","height":"6","gtype":"gage","title":"Schlafzimmer","label":"°C","format":"{{value}}","min":"5","max":"45","colors":["#0040b5","#09e600","#ca3838"],"seg1":"19","seg2":"23","x":910,"y":300,"wires":[]},{"id":"bc4aff2b.2d155","type":"influxdb in","z":"c6facb84.d5d508","influxdb":"36da8460.3fe9fc","name":"avg_temp_diningroom_last_15min","query":"select mean(value) from temperature where location = 'DiningRoom' and time > now() - 15m","rawOutput":false,"precision":"","retentionPolicy":"","x":480,"y":420,"wires":[["34d905f3.968d2a"]]},{"id":"34d905f3.968d2a","type":"function","z":"c6facb84.d5d508","name":"toFloat1Digit","func":"msg.payload = parseFloat(msg.payload[0].mean).toFixed(1);\nreturn msg;","outputs":1,"noerr":0,"x":710,"y":420,"wires":[["aac1e661.637ad8","b2fcb2e8.b41a5"]]},{"id":"5cac823d.da3b1c","type":"link in","z":"7fea4240.a21f4c","name":"LightInDiningRoomSmall","links":["50631528.d34dac","749a1d3c.50d5e4","8f4c92e7.d0e65","f5c92d01.dd9ed"],"x":395,"y":100,"wires":[["9e882abc.5ab138"]]},{"id":"9e882abc.5ab138","type":"ui_switch","z":"7fea4240.a21f4c","name":"kleine Lampe","label":"kleine Lampe","group":"9347b2ed.f80bd","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":540,"y":140,"wires":[["d7540f4a.43852"]]},{"id":"64b49204.34e3cc","type":"ui_switch","z":"7fea4240.a21f4c","name":"","label":"Standlampe","group":"9347b2ed.f80bd","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":530,"y":340,"wires":[["efd2d7.0436fd28"]]},{"id":"d5c11048.78928","type":"link in","z":"7fea4240.a21f4c","name":"LightInDiningRoomStand","links":["50631528.d34dac","749a1d3c.50d5e4","8f4c92e7.d0e65","f5c92d01.dd9ed"],"x":395,"y":300,"wires":[["64b49204.34e3cc"]]},{"id":"a8eb85cc.a8c188","type":"ui_switch","z":"7fea4240.a21f4c","name":"","label":"Schrank","group":"9347b2ed.f80bd","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":520,"y":540,"wires":[["310dbf39.56f68"]]},{"id":"f96c2c74.7ab2c","type":"link in","z":"7fea4240.a21f4c","name":"LightInDiningRoomCupboard","links":["50631528.d34dac","749a1d3c.50d5e4","8f4c92e7.d0e65","f5c92d01.dd9ed"],"x":395,"y":500,"wires":[["a8eb85cc.a8c188"]]},{"id":"4b352197.9285b","type":"ui_switch","z":"7fea4240.a21f4c","name":"","label":"Regallampe","group":"9347b2ed.f80bd","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":530,"y":740,"wires":[["fb0932be.f696e"]]},{"id":"b7696b15.571798","type":"link in","z":"7fea4240.a21f4c","name":"LightInDiningRoomShelf","links":["50631528.d34dac","749a1d3c.50d5e4","8f4c92e7.d0e65","f5c92d01.dd9ed"],"x":395,"y":700,"wires":[["4b352197.9285b"]]},{"id":"3b0401aa.b5dcce","type":"change","z":"7fea4240.a21f4c","name":"DiningRoomNaehkaestchenLight","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"86293 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"86292 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":860,"y":980,"wires":[["fc4ba941.c1fa48"]]},{"id":"e267e01c.b0fa1","type":"inject","z":"7fea4240.a21f4c","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":940,"wires":[["31b6c71a.4c3898"]]},{"id":"fb6eb559.6300e8","type":"inject","z":"7fea4240.a21f4c","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":980,"wires":[["31b6c71a.4c3898"]]},{"id":"511b0da8.761c14","type":"mqtt in","z":"7fea4240.a21f4c","name":"","topic":"nodered/diningroomNaehkaestchenLight","qos":"2","broker":"1c0f8b52.7ec605","x":180,"y":1040,"wires":[["adf1cb4f.d6fa58"]]},{"id":"adf1cb4f.d6fa58","type":"change","z":"7fea4240.a21f4c","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":1040,"wires":[["3b0401aa.b5dcce"]]},{"id":"fc4ba941.c1fa48","type":"link out","z":"7fea4240.a21f4c","name":"LightCmdDiningRoom","links":["715e7527.ceccbc"],"x":895,"y":1040,"wires":[]},{"id":"bc709d18.8419e","type":"link in","z":"7fea4240.a21f4c","name":"LightInDiningRoomNaehkaestchen","links":["50631528.d34dac","749a1d3c.50d5e4","8f4c92e7.d0e65","f5c92d01.dd9ed"],"x":375,"y":940,"wires":[["31b6c71a.4c3898"]]},{"id":"31b6c71a.4c3898","type":"ui_switch","z":"7fea4240.a21f4c","name":"","label":"Nähkästchen","group":"9347b2ed.f80bd","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":510,"y":980,"wires":[["3b0401aa.b5dcce"]]},{"id":"2be03518.d1a5da","type":"ui_switch","z":"48b46b5c.6f68a4","name":"","label":"große Lampe","group":"35e7bab9.5775a6","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":520,"y":100,"wires":[["6b0b0651.2e6638"]]},{"id":"68c685de.507a9c","type":"link in","z":"48b46b5c.6f68a4","name":"LightInLivingRoomLarge","links":["50631528.d34dac","5a9389f4.0f1a18","749a1d3c.50d5e4","8f4c92e7.d0e65"],"x":375,"y":60,"wires":[["2be03518.d1a5da"]]},{"id":"b37985b2.7b8218","type":"ui_switch","z":"48b46b5c.6f68a4","name":"","label":"kleine Lampe","group":"35e7bab9.5775a6","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":520,"y":300,"wires":[["181e29df.1bc466"]]},{"id":"a698ebfc.3a2ad8","type":"link in","z":"48b46b5c.6f68a4","name":"LightInLivingRoomSmall","links":["50631528.d34dac","5a9389f4.0f1a18","749a1d3c.50d5e4","8f4c92e7.d0e65"],"x":375,"y":260,"wires":[["b37985b2.7b8218"]]},{"id":"df2fd4a.ba24628","type":"ui_switch","z":"48b46b5c.6f68a4","name":"","label":"Sterne","group":"35e7bab9.5775a6","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":490,"y":500,"wires":[["f2dd0a54.aee2b8"]]},{"id":"37d349f1.e54146","type":"link in","z":"48b46b5c.6f68a4","name":"LightInLivingRoomStars","links":["50631528.d34dac","749a1d3c.50d5e4","8f4c92e7.d0e65","f5c92d01.dd9ed"],"x":375,"y":460,"wires":[["df2fd4a.ba24628"]]},{"id":"ce4bb227.a54c2","type":"ui_switch","z":"48b46b5c.6f68a4","name":"","label":"Standlampe","group":"35e7bab9.5775a6","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":510,"y":700,"wires":[["759f5010.14dea"]]},{"id":"85f4d30d.8b60b","type":"link in","z":"48b46b5c.6f68a4","name":"LightInLivingRoomStand","links":["50631528.d34dac","749a1d3c.50d5e4","8f4c92e7.d0e65","f5c92d01.dd9ed"],"x":375,"y":660,"wires":[["ce4bb227.a54c2"]]},{"id":"7dbf268c.0198a8","type":"ui_switch","z":"6b5c93bb.11334c","name":"","label":"Werkstatt","group":"6cef045a.5bbc3c","order":0,"width":"3","height":"1","passthru":false,"decouple":"true","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":660,"y":1280,"wires":[["2d0e0be3.6cc314","fb9a6f4e.fb18e"]]},{"id":"d7be9613.f75d08","type":"link in","z":"6b5c93bb.11334c","name":"LightInBasementWorkshop","links":[],"x":95,"y":1140,"wires":[["a013bca8.2113"]]},{"id":"d455aa4c.639798","type":"inject","z":"6b5c93bb.11334c","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":200,"wires":[["6cfcdb98.bba5b4"]]},{"id":"7a93932d.007d0c","type":"link in","z":"6b5c93bb.11334c","name":"LightInBasementSmall","links":[],"x":215,"y":240,"wires":[["6cfcdb98.bba5b4"]]},{"id":"c01196ad.f8d898","type":"ui_switch","z":"6b5c93bb.11334c","name":"","label":"großes Licht","group":"6cef045a.5bbc3c","order":0,"width":"3","height":"1","passthru":false,"decouple":"true","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":610,"y":840,"wires":[["10b52e85.e5c141","adc22718.320768"]]},{"id":"6362ebeb.e24cd4","type":"link in","z":"6b5c93bb.11334c","name":"LightInBasementLarge","links":[],"x":255,"y":1000,"wires":[["102bc055.761f3"]]},{"id":"b3a1bb03.748ba8","type":"ui_switch","z":"6b5c93bb.11334c","name":"","label":"kleines Licht","group":"6cef045a.5bbc3c","order":0,"width":"3","height":"1","passthru":false,"decouple":"true","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":730,"y":360,"wires":[["597eba1c.d510e4","f279ce5d.333b"]]},{"id":"86c8ffcf.546ae","type":"debug","z":"6b5c93bb.11334c","name":"BASEMENTLIGHT","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":1180,"y":240,"wires":[]},{"id":"fb9a6f4e.fb18e","type":"debug","z":"6b5c93bb.11334c","name":"BASEMENTWORKSHOP","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":910,"y":1140,"wires":[]},{"id":"a013bca8.2113","type":"change","z":"6b5c93bb.11334c","name":"pass","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":1180,"wires":[["7dbf268c.0198a8","2d0e0be3.6cc314","fb9a6f4e.fb18e"]]},{"id":"102bc055.761f3","type":"change","z":"6b5c93bb.11334c","name":"pass","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":940,"wires":[["c01196ad.f8d898","10b52e85.e5c141","adc22718.320768"]]},{"id":"6cfcdb98.bba5b4","type":"change","z":"6b5c93bb.11334c","name":"pass","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":160,"wires":[["cd6d053a.cd1578","597eba1c.d510e4"]]},{"id":"2edff4ba.35a70c","type":"function","z":"6b5c93bb.11334c","name":"ForwardIfFalse","func":"if (msg.payload) {\n msg = undefined\n}\nreturn msg;","outputs":1,"noerr":0,"x":740,"y":220,"wires":[["597eba1c.d510e4"]]},{"id":"4236da96.665574","type":"function","z":"6b5c93bb.11334c","name":"ForwardIfFalse","func":"if (msg.payload) {\n msg = undefined\n}\nreturn msg;","outputs":1,"noerr":0,"x":500,"y":360,"wires":[["b3a1bb03.748ba8"]]},{"id":"cf86a7ed.82fd98","type":"ui_button","z":"6d5dc8fd.c55a08","name":"","group":"552fd1db.fec08","order":2,"width":"3","height":"2","passthru":false,"label":"Morgenlicht","color":"","bgcolor":"","icon":"","payload":"morning","payloadType":"str","topic":"","x":150,"y":540,"wires":[["8d611830.a3e8c8"]]},{"id":"cc2c9ee2.7cea7","type":"ui_button","z":"6d5dc8fd.c55a08","name":"","group":"552fd1db.fec08","order":1,"width":"3","height":"2","passthru":false,"label":"Tageslicht","color":"","bgcolor":"","icon":"","payload":"day","payloadType":"str","topic":"","x":140,"y":600,"wires":[["8d611830.a3e8c8"]]},{"id":"289380cd.591be","type":"ui_button","z":"6d5dc8fd.c55a08","name":"","group":"552fd1db.fec08","order":3,"width":"3","height":"2","passthru":false,"label":"Sparlicht","color":"","bgcolor":"","icon":"","payload":"eco","payloadType":"str","topic":"","x":140,"y":660,"wires":[["8d611830.a3e8c8"]]},{"id":"1e35b581.f53eea","type":"ui_button","z":"6d5dc8fd.c55a08","name":"","group":"552fd1db.fec08","order":4,"width":"3","height":"2","passthru":false,"label":"Alles aus","color":"","bgcolor":"#4286f4","icon":"","payload":"off","payloadType":"str","topic":"","x":140,"y":720,"wires":[["8d611830.a3e8c8"]]},{"id":"aac1e661.637ad8","type":"ui_gauge","z":"c6facb84.d5d508","name":"","group":"b5936fe2.9bee5","order":0,"width":"6","height":"6","gtype":"gage","title":"Esszimmer","label":"°C","format":"{{value}}","min":"5","max":"45","colors":["#0040b5","#09e600","#ca3838"],"seg1":"19","seg2":"23","x":910,"y":420,"wires":[]},{"id":"1d1ed5c1.43011a","type":"ui_switch","z":"5cd559ac.c75c38","name":"","label":"Küche","group":"44127700.e8c588","order":0,"width":"3","height":"1","passthru":false,"decouple":"true","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"check","oncolor":"green","offvalue":"false","offvalueType":"bool","officon":"close","offcolor":"red","x":850,"y":240,"wires":[[]]},{"id":"55506414.268f5c","type":"ui_switch","z":"5cd559ac.c75c38","name":"","label":"Anna","group":"44127700.e8c588","order":0,"width":"3","height":"1","passthru":false,"decouple":"true","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"check","oncolor":"green","offvalue":"false","offvalueType":"bool","officon":"close","offcolor":"red","x":850,"y":440,"wires":[[]]},{"id":"4647cb67.13f1c4","type":"ui_switch","z":"5cd559ac.c75c38","name":"","label":"Matthias","group":"44127700.e8c588","order":0,"width":"3","height":"1","passthru":false,"decouple":"true","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"check","oncolor":"green","offvalue":"false","offvalueType":"bool","officon":"close","offcolor":"red","x":860,"y":600,"wires":[[]]},{"id":"449b9df.4a3f764","type":"ui_switch","z":"5cd559ac.c75c38","name":"","label":"Wohnz.","group":"44127700.e8c588","order":0,"width":"3","height":"1","passthru":false,"decouple":"true","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"check","oncolor":"green","offvalue":"false","offvalueType":"bool","officon":"close","offcolor":"red","x":860,"y":820,"wires":[[]]},{"id":"a00275e8.02d298","type":"ui_switch","z":"5cd559ac.c75c38","name":"","label":"Essz.","group":"44127700.e8c588","order":0,"width":"3","height":"1","passthru":false,"decouple":"true","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"check","oncolor":"green","offvalue":"false","offvalueType":"bool","officon":"close","offcolor":"red","x":850,"y":1000,"wires":[[]]},{"id":"24d36073.34237","type":"ui_switch","z":"5cd559ac.c75c38","name":"","label":"Schlafz.","group":"44127700.e8c588","order":0,"width":"3","height":"1","passthru":false,"decouple":"true","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"check","oncolor":"green","offvalue":"false","offvalueType":"bool","officon":"close","offcolor":"red","x":860,"y":1200,"wires":[[]]},{"id":"cb94a611.fe9ac8","type":"ui_switch","z":"5cd559ac.c75c38","name":"","label":"Bad unten","group":"44127700.e8c588","order":0,"width":"3","height":"1","passthru":false,"decouple":"true","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"check","oncolor":"green","offvalue":"false","offvalueType":"bool","officon":"close","offcolor":"red","x":870,"y":1420,"wires":[[]]},{"id":"6dd2f0d4.34bf7","type":"ui_switch","z":"5cd559ac.c75c38","name":"","label":"Bad oben","group":"44127700.e8c588","order":0,"width":"3","height":"1","passthru":false,"decouple":"true","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"check","oncolor":"green","offvalue":"false","offvalueType":"bool","officon":"close","offcolor":"red","x":860,"y":1600,"wires":[[]]},{"id":"ebb38c70.f8461","type":"ui_switch","z":"5cd559ac.c75c38","name":"","label":"Haustür","group":"44127700.e8c588","order":0,"width":"3","height":"1","passthru":false,"decouple":"true","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"check","oncolor":"green","offvalue":"false","offvalueType":"bool","officon":"close","offcolor":"red","x":860,"y":1820,"wires":[[]]},{"id":"8e127a08.2cf118","type":"combine-logic","z":"5cd559ac.c75c38","name":"","topic":"","operator":"nor","defer":250,"timeout":0,"distinction":"topic","x":680,"y":2020,"wires":[["c894e27e.63407","278c021b.ce802e"]]},{"id":"51724b49.331124","type":"mqtt in","z":"5cd559ac.c75c38","name":"Fenster Flur","topic":"homegear/instance1/plain/25/1/STATE","qos":"2","broker":"1c0f8b52.7ec605","x":290,"y":1960,"wires":[["2b84842f.a5259c"]]},{"id":"2b84842f.a5259c","type":"change","z":"5cd559ac.c75c38","name":"toBoolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":2020,"wires":[["8e127a08.2cf118","b0f341b5.66113"]]},{"id":"b0f341b5.66113","type":"debug","z":"5cd559ac.c75c38","name":"Window Hallway","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":710,"y":1960,"wires":[]},{"id":"c894e27e.63407","type":"link out","z":"5cd559ac.c75c38","name":"FrontdoorClosed","links":[],"x":815,"y":2020,"wires":[]},{"id":"278c021b.ce802e","type":"ui_switch","z":"5cd559ac.c75c38","name":"","label":"Flur","group":"44127700.e8c588","order":0,"width":"3","height":"1","passthru":false,"decouple":"true","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"check","oncolor":"green","offvalue":"false","offvalueType":"bool","officon":"close","offcolor":"red","x":850,"y":2060,"wires":[[]]},{"id":"16eef555.aaa51b","type":"ui_switch","z":"fc92c0f1.7a70d","name":"","label":"Wolfgangs Seite","group":"3d085adf.259bf6","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":480,"y":160,"wires":[["14d5c37b.1302bd"]]},{"id":"c646ccd7.5b4c6","type":"ui_switch","z":"fc92c0f1.7a70d","name":"","label":"Pattys Seite","group":"3d085adf.259bf6","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":470,"y":320,"wires":[["3aae165.9e5e5ea"]]},{"id":"94cf6f8a.0fc54","type":"ui_switch","z":"fc92c0f1.7a70d","name":"","label":"Fensterbank","group":"3d085adf.259bf6","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":470,"y":480,"wires":[["df4170b5.2c8c4"]]},{"id":"33272a1c.6226b6","type":"mqtt out","z":"85e980fb.9ac9c","name":"Heating Diningroom","topic":"homegear/instance1/set/45/1/SET_TEMPERATURE","qos":"","retain":"","broker":"1c0f8b52.7ec605","x":920,"y":2580,"wires":[]},{"id":"7084c698.1b7f38","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"HIGH","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":2540,"wires":[["1c5d87ef.d12338"]]},{"id":"7961a187.2d295","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"OFF","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":2620,"wires":[["70db121.c507bec"]]},{"id":"c55a347b.eab378","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"LOW","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":2580,"wires":[["b6c6893f.dd7c98"]]},{"id":"eaaeffbc.f4b6d","type":"debug","z":"85e980fb.9ac9c","name":"Heating Diningroom","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":920,"y":2660,"wires":[]},{"id":"b3ab0b64.8c9eb8","type":"link in","z":"85e980fb.9ac9c","name":"","links":["8eee890a.b9f758"],"x":215,"y":2480,"wires":[["643d6716.5ca7e8","828c530.4ef28b"]]},{"id":"e3d4b047.ad199","type":"function","z":"85e980fb.9ac9c","name":"HeatingControl","func":"if ('windowStatus' in msg) {\n context.set('windowStatus', msg.windowStatus)\n node.warn(`Set windowStatus to ${msg.windowStatus}`)\n}\nif ('payload' in msg) {\n node.warn(`Got payload ${msg.payload}`)\n if (['OFF', 'HIGH', 'LOW'].indexOf(msg.payload) != -1) {\n context.set('heating', msg.payload) \n node.warn(`Set heating to ${msg.payload}`)\n }\n}\nlet windowStatus = context.get('windowStatus')\nlet heating = context.get('heating') || \"OFF\"\nnode.status({fill:(windowStatus ? \"green\" : \"red\"),shape:\"dot\",text:`${windowStatus}, ${heating}`})\nif (windowStatus) {\n msg.payload = heating\n} else {\n msg.payload = 'FORCED_OFF'\n}\nreturn msg;","outputs":1,"noerr":0,"x":500,"y":2620,"wires":[["356355d2.a57cca"]]},{"id":"643d6716.5ca7e8","type":"change","z":"85e980fb.9ac9c","name":"WindowStatusAdaptor","rules":[{"t":"set","p":"windowStatus","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":2480,"wires":[["e3d4b047.ad199"]]},{"id":"87c9e3f0.066ca","type":"ui_text","z":"85e980fb.9ac9c","group":"21a8124.41d67ee","order":1,"width":"3","height":"1","name":"TargetTemperature","label":"Soll","format":"{{msg.payload}}°C","layout":"row-left","x":910,"y":2720,"wires":[]},{"id":"1c5d87ef.d12338","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"21a8124.41d67ee","order":3,"width":"2","height":"1","passthru":true,"label":"Hoch","color":"","bgcolor":"","icon":"","payload":"HIGH","payloadType":"str","topic":"","x":230,"y":2540,"wires":[["e3d4b047.ad199"]]},{"id":"b6c6893f.dd7c98","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"21a8124.41d67ee","order":4,"width":"2","height":"1","passthru":true,"label":"Niedrig","color":"","bgcolor":"","icon":"","payload":"LOW","payloadType":"str","topic":"","x":240,"y":2580,"wires":[["e3d4b047.ad199"]]},{"id":"70db121.c507bec","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"21a8124.41d67ee","order":5,"width":"2","height":"1","passthru":true,"label":"Aus","color":"","bgcolor":"","icon":"","payload":"OFF","payloadType":"str","topic":"","x":230,"y":2620,"wires":[["e3d4b047.ad199"]]},{"id":"356355d2.a57cca","type":"function","z":"85e980fb.9ac9c","name":"TempMapper","func":"let OFF_TEMP = 5.0\nlet LOW_TEMP = 15.0\nlet HIGH_TEMP = context.get('temperature') || 10.0\n\nif ('payload' in msg) {\n node.warn(`Got payload ${msg.payload}`)\n switch (msg.payload) {\n case \"OFF\":\n case \"FORCED_OFF\":\n msg.payload = OFF_TEMP\n break\n case \"LOW\":\n msg.payload = LOW_TEMP\n break\n case \"HIGH\":\n msg.payload = HIGH_TEMP\n break\n default:\n context.set('temperature', msg.payload)\n return\n break\n }\n}\nnode.status({fill:\"blue\",shape:\"dot\",text:`${msg.payload}`})\nreturn msg;","outputs":1,"noerr":0,"x":690,"y":2620,"wires":[["eaaeffbc.f4b6d","87c9e3f0.066ca","33272a1c.6226b6"]]},{"id":"913e570e.a66d68","type":"ui_numeric","z":"85e980fb.9ac9c","name":"TargetTemp","label":"Hoch / °C","group":"21a8124.41d67ee","order":6,"width":"3","height":"1","passthru":true,"topic":"","format":"{{value}}","min":"5","max":"30","step":1,"x":610,"y":2680,"wires":[["356355d2.a57cca"]]},{"id":"3832288.79473d8","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"21","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":450,"y":2680,"wires":[["913e570e.a66d68"]]},{"id":"828c530.4ef28b","type":"ui_text","z":"85e980fb.9ac9c","group":"21a8124.41d67ee","order":7,"width":"3","height":"1","name":"Window","label":"Fenster","format":"{{msg.payload ? \"geschl.\" : \"offen\" }}","layout":"row-spread","x":520,"y":2560,"wires":[]},{"id":"b2f0ba64.de9e98","type":"comment","z":"85e980fb.9ac9c","name":"Esszimmer","info":"","x":80,"y":2480,"wires":[]},{"id":"86020d1d.2d221","type":"mqtt out","z":"85e980fb.9ac9c","name":"Heating Livingroom","topic":"homegear/instance1/set/46/1/SET_TEMPERATURE","qos":"","retain":"","broker":"1c0f8b52.7ec605","x":910,"y":3140,"wires":[]},{"id":"2faef6f9.a2bd6a","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"HIGH","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":3100,"wires":[["14a469b1.54e236"]]},{"id":"a5069fd1.2f12d","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"OFF","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":3180,"wires":[["5c4e9d97.537c94"]]},{"id":"5e484099.bbd4a","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"LOW","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":3140,"wires":[["c0b4c944.230978"]]},{"id":"8e414f5f.f89ad","type":"debug","z":"85e980fb.9ac9c","name":"Heating Livingroom","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":920,"y":3220,"wires":[]},{"id":"45ad2d9f.751da4","type":"link in","z":"85e980fb.9ac9c","name":"","links":["880b2967.8cb078"],"x":215,"y":3040,"wires":[["918d5826.d8dba8","cfefe4e8.eded98"]]},{"id":"1c55002a.2020e","type":"function","z":"85e980fb.9ac9c","name":"HeatingControl","func":"if ('windowStatus' in msg) {\n context.set('windowStatus', msg.windowStatus)\n node.warn(`Set windowStatus to ${msg.windowStatus}`)\n}\nif ('payload' in msg) {\n node.warn(`Got payload ${msg.payload}`)\n if (['OFF', 'HIGH', 'LOW'].indexOf(msg.payload) != -1) {\n context.set('heating', msg.payload) \n node.warn(`Set heating to ${msg.payload}`)\n }\n}\nlet windowStatus = context.get('windowStatus')\nlet heating = context.get('heating') || \"OFF\"\nnode.status({fill:(windowStatus ? \"green\" : \"red\"),shape:\"dot\",text:`${windowStatus}, ${heating}`})\nif (windowStatus) {\n msg.payload = heating\n} else {\n msg.payload = 'FORCED_OFF'\n}\nreturn msg;","outputs":1,"noerr":0,"x":500,"y":3180,"wires":[["42906b3c.41a724"]]},{"id":"918d5826.d8dba8","type":"change","z":"85e980fb.9ac9c","name":"WindowStatusAdaptor","rules":[{"t":"set","p":"windowStatus","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":3040,"wires":[["1c55002a.2020e"]]},{"id":"8a4ef1a0.0dfef","type":"ui_text","z":"85e980fb.9ac9c","group":"7f9b568e.788de8","order":0,"width":0,"height":0,"name":"TargetTemperature","label":"Soll","format":"{{msg.payload}}°C","layout":"row-left","x":910,"y":3280,"wires":[]},{"id":"14a469b1.54e236","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"7f9b568e.788de8","order":0,"width":"2","height":"1","passthru":true,"label":"Hoch","color":"","bgcolor":"","icon":"","payload":"HIGH","payloadType":"str","topic":"","x":230,"y":3100,"wires":[["1c55002a.2020e"]]},{"id":"c0b4c944.230978","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"7f9b568e.788de8","order":0,"width":"2","height":"1","passthru":true,"label":"Niedrig","color":"","bgcolor":"","icon":"","payload":"LOW","payloadType":"str","topic":"","x":240,"y":3140,"wires":[["1c55002a.2020e"]]},{"id":"5c4e9d97.537c94","type":"ui_button","z":"85e980fb.9ac9c","name":"","group":"7f9b568e.788de8","order":0,"width":"2","height":"1","passthru":true,"label":"Aus","color":"","bgcolor":"","icon":"","payload":"OFF","payloadType":"str","topic":"","x":230,"y":3180,"wires":[["1c55002a.2020e"]]},{"id":"42906b3c.41a724","type":"function","z":"85e980fb.9ac9c","name":"TempMapper","func":"let OFF_TEMP = 5.0\nlet LOW_TEMP = 15.0\nlet HIGH_TEMP = context.get('temperature') || 10.0\n\nif ('payload' in msg) {\n node.warn(`Got payload ${msg.payload}`)\n switch (msg.payload) {\n case \"OFF\":\n case \"FORCED_OFF\":\n msg.payload = OFF_TEMP\n break\n case \"LOW\":\n msg.payload = LOW_TEMP\n break\n case \"HIGH\":\n msg.payload = HIGH_TEMP\n break\n default:\n context.set('temperature', msg.payload)\n return\n break\n }\n}\nnode.status({fill:\"blue\",shape:\"dot\",text:`${msg.payload}`})\nreturn msg;","outputs":1,"noerr":0,"x":690,"y":3180,"wires":[["8e414f5f.f89ad","8a4ef1a0.0dfef","86020d1d.2d221"]]},{"id":"717c6ce5.47a714","type":"ui_numeric","z":"85e980fb.9ac9c","name":"TargetTemp","label":"Hoch / °C","group":"7f9b568e.788de8","order":0,"width":"3","height":"1","passthru":true,"topic":"","format":"{{value}}","min":"5","max":"30","step":1,"x":610,"y":3240,"wires":[["42906b3c.41a724"]]},{"id":"83f1d2d0.94404","type":"inject","z":"85e980fb.9ac9c","name":"","topic":"","payload":"21","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":450,"y":3240,"wires":[["717c6ce5.47a714"]]},{"id":"cfefe4e8.eded98","type":"ui_text","z":"85e980fb.9ac9c","group":"7f9b568e.788de8","order":0,"width":"3","height":"1","name":"Window","label":"Fenster","format":"{{msg.payload ? \"geschl.\" : \"offen\" }}","layout":"row-spread","x":520,"y":3120,"wires":[]},{"id":"1a3bf198.d3048e","type":"comment","z":"85e980fb.9ac9c","name":"Wohnzimmer","info":"","x":90,"y":3040,"wires":[]},{"id":"10d6bc1.2d3ab44","type":"inject","z":"85e980fb.9ac9c","name":"false_IN_NIGHT","topic":"cron","payload":"false","payloadType":"bool","repeat":"","crontab":"30 00 * * *","once":false,"onceDelay":0.1,"x":130,"y":2800,"wires":[["d25f5f41.66328"]]},{"id":"d25f5f41.66328","type":"combine-logic","z":"85e980fb.9ac9c","name":"","topic":"","operator":"and","defer":250,"timeout":0,"distinction":"topic","x":180,"y":2740,"wires":[["2a69fdbd.2c9ac2"]]},{"id":"2a69fdbd.2c9ac2","type":"change","z":"85e980fb.9ac9c","name":"true2HIGH/false2LOW","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"HIGH","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"LOW","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":220,"y":2680,"wires":[["e3d4b047.ad199"]]},{"id":"9e7b9f83.570bf","type":"change","z":"85e980fb.9ac9c","name":"true2HIGH/false2LOW","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"HIGH","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"LOW","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":220,"y":3240,"wires":[["1c55002a.2020e"]]},{"id":"7e9c4add.9aae74","type":"combine-logic","z":"85e980fb.9ac9c","name":"","topic":"","operator":"and","defer":250,"timeout":0,"distinction":"topic","x":180,"y":3300,"wires":[["9e7b9f83.570bf"]]},{"id":"835850c0.9ac28","type":"inject","z":"85e980fb.9ac9c","name":"false_IN_NIGHT","topic":"cron","payload":"false","payloadType":"bool","repeat":"","crontab":"30 00 * * *","once":false,"onceDelay":0.1,"x":130,"y":3360,"wires":[["7e9c4add.9aae74"]]},{"id":"fa3b2bc0.f1ada8","type":"inject","z":"85e980fb.9ac9c","name":"false_IN_NIGHT","topic":"cron","payload":"false","payloadType":"bool","repeat":"","crontab":"00 23 * * *","once":false,"onceDelay":0.1,"x":130,"y":1480,"wires":[["4f3db20e.3edb9c"]]},{"id":"103bdcab.a40423","type":"inject","z":"85e980fb.9ac9c","name":"true_IN_MORNING","topic":"cron","payload":"true","payloadType":"bool","repeat":"","crontab":"30 06 * * *","once":false,"onceDelay":0.1,"x":140,"y":1540,"wires":[["4f3db20e.3edb9c"]]},{"id":"5769857b.2342bc","type":"link in","z":"85e980fb.9ac9c","name":"","links":["ce861562.f30788"],"x":215,"y":1620,"wires":[["4f3db20e.3edb9c"]]},{"id":"4f3db20e.3edb9c","type":"combine-logic","z":"85e980fb.9ac9c","name":"","topic":"","operator":"and","defer":250,"timeout":0,"distinction":"topic","x":340,"y":1580,"wires":[["623da059.3d086"]]},{"id":"623da059.3d086","type":"change","z":"85e980fb.9ac9c","name":"true2HIGH/false2LOW","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"HIGH","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"LOW","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":1520,"wires":[["1223d4de.4fa77b"]]},{"id":"bc0ea633.c480c8","type":"link out","z":"c6facb84.d5d508","name":"TemperatureBedroom","links":["6d81ec3c.2db954","3272922.c44ec6e"],"x":895,"y":260,"wires":[]},{"id":"a168c303.5a1ce","type":"ui_text","z":"85e980fb.9ac9c","group":"3fd34d49.7fa762","order":2,"width":"3","height":"1","name":"CurrentTemperature","label":"Ist","format":"{{msg.payload}}°C","layout":"row-left","x":920,"y":340,"wires":[]},{"id":"3272922.c44ec6e","type":"link in","z":"85e980fb.9ac9c","name":"","links":["bc0ea633.c480c8"],"x":715,"y":340,"wires":[["a168c303.5a1ce"]]},{"id":"b2fcb2e8.b41a5","type":"link out","z":"c6facb84.d5d508","name":"TemperatureDiningroom","links":["b717c5d9.c68458"],"x":895,"y":360,"wires":[]},{"id":"2afbf499.b4b86c","type":"ui_text","z":"85e980fb.9ac9c","group":"21a8124.41d67ee","order":2,"width":"3","height":"1","name":"CurrentTemperature","label":"Ist","format":"{{msg.payload}}°C","layout":"row-left","x":920,"y":2760,"wires":[]},{"id":"b717c5d9.c68458","type":"link in","z":"85e980fb.9ac9c","name":"","links":["b2fcb2e8.b41a5"],"x":735,"y":2760,"wires":[["2afbf499.b4b86c"]]},{"id":"ebb26fb1.1086","type":"inject","z":"9986fd8e.55a57","name":"PeriodicalTrigger 10sec","topic":"","payload":"PiAlive!","payloadType":"str","repeat":"10","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":260,"wires":[["f554e010.0407f","558c19ac.003b88"]]},{"id":"514ace98.db182","type":"rpi-gpio out","z":"9986fd8e.55a57","name":"","pin":"36","set":true,"level":"0","freq":"","out":"out","x":660,"y":260,"wires":[]},{"id":"f554e010.0407f","type":"trigger","z":"9986fd8e.55a57","op1":"true","op2":"false","op1type":"bool","op2type":"bool","duration":"100","extend":false,"units":"ms","reset":"","bytopic":"all","name":"Pulse","x":450,"y":260,"wires":[["514ace98.db182"]]},{"id":"558c19ac.003b88","type":"mqtt out","z":"9986fd8e.55a57","name":"","topic":"IoT/PiAlive","qos":"","retain":"","broker":"7e99ddbf.fc8a04","x":480,"y":340,"wires":[]},{"id":"462f0200.5be24","type":"mqtt in","z":"9986fd8e.55a57","name":"","topic":"IoT/PiAlive","qos":"2","broker":"7e99ddbf.fc8a04","x":160,"y":440,"wires":[["c9353b49.cc0448"]]},{"id":"c9353b49.cc0448","type":"trigger","z":"9986fd8e.55a57","op1":"true","op2":"false","op1type":"bool","op2type":"bool","duration":"100","extend":false,"units":"ms","reset":"","bytopic":"all","name":"Pulse","x":450,"y":440,"wires":[["fb61e5cc.f36398"]]},{"id":"fb61e5cc.f36398","type":"rpi-gpio out","z":"9986fd8e.55a57","name":"","pin":"37","set":true,"level":"0","freq":"","out":"out","x":660,"y":440,"wires":[]},{"id":"4302e11b.a0e","type":"function","z":"b87987c6.54a068","name":"ForwardIfStrTrue","func":"if (msg.payload == \"false\") {\n msg = undefined\n}\nreturn msg;","outputs":1,"noerr":0,"x":610,"y":180,"wires":[["cce38e19.5343c","e852d6e5.c78478"]]},{"id":"e852d6e5.c78478","type":"link out","z":"b87987c6.54a068","name":"","links":["375253e0.ed183c"],"x":820,"y":260,"wires":[]},{"id":"10bce0ad.4bd1cf","type":"influxdb out","z":"e6c415e8.d33198","influxdb":"36da8460.3fe9fc","name":"","measurement":"presence","precision":"","retentionPolicy":"","x":180,"y":460,"wires":[]},{"id":"2d1c0fb1.a5701","type":"function","z":"e6c415e8.d33198","name":"PreparePresenceData","func":"msg.payload = [\n { \"value\": msg.result.direction },\n { \"person\": msg.result.person }\n]\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":400,"wires":[["10bce0ad.4bd1cf"]]},{"id":"8aeb10af.4633b","type":"change","z":"1668233b.c34ead","name":"KitchenEspresso","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"},{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"87317 24 1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"87316 24 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1120,"wires":[["156ce92d.45fc27"]]},{"id":"606ee0c3.2a411","type":"inject","z":"1668233b.c34ead","name":"true","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":570,"y":1060,"wires":[["8aeb10af.4633b"]]},{"id":"3b3d40bd.009ca","type":"inject","z":"1668233b.c34ead","name":"false","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":570,"y":1180,"wires":[["8aeb10af.4633b"]]},{"id":"4ffa9d26.bff0f4","type":"mqtt in","z":"1668233b.c34ead","name":"","topic":"nodered/kitchenEspresso","qos":"2","broker":"1c0f8b52.7ec605","x":130,"y":1120,"wires":[["513c2780.344d88"]]},{"id":"513c2780.344d88","type":"change","z":"1668233b.c34ead","name":"OnOff2TrueFalse","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":1120,"wires":[["8aeb10af.4633b"]]},{"id":"156ce92d.45fc27","type":"link out","z":"1668233b.c34ead","name":"LightCmdHallwayRoom","links":["715e7527.ceccbc"],"x":975,"y":1120,"wires":[]},{"id":"bfb49414.e99458","type":"link in","z":"1668233b.c34ead","name":"LightInHallwayWardrobe","links":["50631528.d34dac"],"x":755,"y":1180,"wires":[["8aeb10af.4633b"]]},{"id":"743afb50.db95e4","type":"ui_button","z":"1668233b.c34ead","name":"","group":"552fd1db.fec08","order":5,"width":"3","height":"2","passthru":false,"label":"Espressomaschine","color":"","bgcolor":"#61210B","icon":"","payload":"true","payloadType":"bool","topic":"","x":530,"y":1020,"wires":[["8aeb10af.4633b"]]},{"id":"ff9974b7.c7a748","type":"inject","z":"1668233b.c34ead","name":"Off at midnight","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"00 00 * * *","once":false,"onceDelay":0.1,"x":540,"y":1220,"wires":[["8aeb10af.4633b"]]},{"id":"4144496f.bd8878","type":"link in","z":"1668233b.c34ead","name":"","links":["da96f01e.dc529"],"x":415,"y":1280,"wires":[["64d5756c.b06e5c"]]},{"id":"64d5756c.b06e5c","type":"function","z":"1668233b.c34ead","name":"ForwardIfFalse","func":"if (msg.payload) {\n msg = undefined\n}\nreturn msg;","outputs":1,"noerr":0,"x":540,"y":1280,"wires":[["8aeb10af.4633b"]]},{"id":"1386145.66017ec","type":"mqtt in","z":"6d5dc8fd.c55a08","name":"","topic":"homegear/instance1/plain/47/2/PRESS","qos":"2","broker":"1c0f8b52.7ec605","x":240,"y":960,"wires":[["350cb182.5e5dde"]]},{"id":"e28aec59.2faf","type":"mqtt in","z":"6d5dc8fd.c55a08","name":"","topic":"homegear/instance1/plain/47/1/PRESS","qos":"2","broker":"1c0f8b52.7ec605","x":240,"y":1020,"wires":[["6dc9af8e.4f761"]]},{"id":"96aa7fd.036908","type":"sun events","z":"6d5dc8fd.c55a08","testmode":false,"verbose":true,"topic":"","name":"","x":160,"y":40,"wires":[["52099c88.cfe484","66c26d7.21c1e94"]]},{"id":"52099c88.cfe484","type":"debug","z":"6d5dc8fd.c55a08","name":"SunEvents","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":360,"y":40,"wires":[]},{"id":"d2cc200f.b6d15","type":"combine-logic","z":"6d5dc8fd.c55a08","name":"NoOneAtHome","topic":"NoOneAtHome","operator":"nor","defer":250,"timeout":0,"distinction":"topic","x":200,"y":160,"wires":[["a89401ab.3ef28","aad0ca41.a64bf8"]]},{"id":"41ac22f7.4c7fbc","type":"link in","z":"6d5dc8fd.c55a08","name":"","links":["65c0ab55.f13704","6e451e68.cb576","ce861562.f30788","da96f01e.dc529"],"x":55,"y":160,"wires":[["d2cc200f.b6d15"]]},{"id":"66c26d7.21c1e94","type":"function","z":"6d5dc8fd.c55a08","name":"ForwardTrueIfSunset","func":"if (msg.payload != \"sunset\") {\n msg = undefined\n} else {\n msg.payload = true\n msg.topic = \"ForwardTrueIfSunset\"\n}\nreturn msg;","outputs":1,"noerr":0,"x":220,"y":100,"wires":[["a89401ab.3ef28","de4bd6df.5a7588"]]},{"id":"a89401ab.3ef28","type":"combine-logic","z":"6d5dc8fd.c55a08","name":"","topic":"","operator":"and","defer":250,"timeout":0,"distinction":"topic","x":440,"y":160,"wires":[["af3aa25d.2b38d"]]},{"id":"4bf25061.efe32","type":"debug","z":"6d5dc8fd.c55a08","name":"SunsetAndNoOneAtHome","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":720,"y":220,"wires":[]},{"id":"aad0ca41.a64bf8","type":"debug","z":"6d5dc8fd.c55a08","name":"x1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":230,"y":220,"wires":[]},{"id":"de4bd6df.5a7588","type":"debug","z":"6d5dc8fd.c55a08","name":"x2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":470,"y":100,"wires":[]},{"id":"af3aa25d.2b38d","type":"function","z":"6d5dc8fd.c55a08","name":"ForwardIfTrue","func":"if (msg.payload == false) {\n msg = undefined\n}\nreturn msg;","outputs":1,"noerr":0,"x":440,"y":220,"wires":[["4bf25061.efe32","dd5b1aac.0fb068","93dd133c.6a68b"]]},{"id":"93dd133c.6a68b","type":"template","z":"6d5dc8fd.c55a08","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Lights on because of sunset and no one at home","output":"str","x":660,"y":160,"wires":[["bc7d342.cc096c8"]]},{"id":"bc7d342.cc096c8","type":"link out","z":"6d5dc8fd.c55a08","name":"","links":["375253e0.ed183c"],"x":840,"y":160,"wires":[]}] |