[ { "id": "9ea6b6a9.a9b5e8", "type": "tab", "label": "Netatmo Thermostat ", "disabled": false, "info": "" }, { "id": "414d2e50.0b625", "type": "inject", "z": "9ea6b6a9.a9b5e8", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "10", "crontab": "", "once": true, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 130, "y": 20, "wires": [ [ "cf48039e.3c2ea8" ] ] }, { "id": "abd8d719.a9f5", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Küchen Ist Temp.", "func": "var ist_temp = msg.payload.home.rooms[0].therm_measured_temperature;\nmsg.payload = + ist_temp;\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 440, "y": 20, "wires": [ [ "9a081224.299c98" ] ] }, { "id": "cf48039e.3c2ea8", "type": "homestatus", "z": "9ea6b6a9.a9b5e8", "name": "Status", "auth": "d0322ff8.d371f", "home_id": "xxx", "device_types": "", "x": 120, "y": 150, "wires": [ [ "abd8d719.a9f5", "f84b1988.59eb78", "9487f800.784d6", "38b54969.fbed4e", "e7eeb6f9.5e0fd", "36e3d9ee.b57016", "85d17dcf.ebf89", "497502e3.0638b4", "6a436626.4e3fb", "8ac9cec.f2b5eb", "bde0702a.fab0e", "2ee28bb1.ef5b74", "89ccf785.22663", "a4e48a2e.61169", "ab5a4072.ba1c78", "7b17e4ed.506cec", "2251953d.29f07a" ] ] }, { "id": "9a081224.299c98", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Ist_Temp", "topic": "0_userdata.0.Heizung.Küche.Ist_Temp", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 880, "y": 20, "wires": [] }, { "id": "f84b1988.59eb78", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Küche Soll Temp.", "func": "var soll_temp = msg.payload.home.rooms[0].therm_setpoint_temperature;\nmsg.payload = + soll_temp;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 440, "y": 50, "wires": [ [ "4ea65d0c.59673c" ] ] }, { "id": "4ea65d0c.59673c", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Soll_Temp", "topic": "0_userdata.0.Heizung.Küche.Soll_Temp", "ack": "true", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 890, "y": 50, "wires": [] }, { "id": "9487f800.784d6", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Battery Status", "func": "var battery = msg.payload.home.modules[1].battery_level ;\nif (battery <= 2250)\n{battery = 2250}\nif (battery >= 4500)\n{battery = 4500}\nmsg.payload = Math.round(+ ((battery- 2250) * 100) / 2250) ;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 430, "y": 80, "wires": [ [ "ce21b151.e15b68" ] ] }, { "id": "ce21b151.e15b68", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Battery_Status", "topic": "0_userdata.0.Heizung.Küche.Batterie", "ack": "true", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 900, "y": 80, "wires": [] }, { "id": "38b54969.fbed4e", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Kinder Ist Temp.", "func": "var ist_temp = msg.payload.home.rooms[1].therm_measured_temperature;\nmsg.payload = + ist_temp;\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 430, "y": 110, "wires": [ [ "d2da7b08.380718" ] ] }, { "id": "d2da7b08.380718", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Ist_Temp", "topic": "0_userdata.0.Heizung.Kinderzimmer.Ist_Temp", "ack": "true", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "number", "readonly": "true", "stateUnit": "°C", "stateMin": "-10", "stateMax": "50", "x": 880, "y": 110, "wires": [] }, { "id": "3ff25320.9d48f4", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Soll_Temp", "topic": "0_userdata.0.Heizung.Kinderzimmer.Soll_Temp", "ack": "true", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 890, "y": 140, "wires": [] }, { "id": "e7eeb6f9.5e0fd", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Kinder Soll Temp.", "func": "var soll_temp = msg.payload.home.rooms[1].therm_setpoint_temperature;\nmsg.payload = + soll_temp;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 440, "y": 140, "wires": [ [ "3ff25320.9d48f4" ] ] }, { "id": "36e3d9ee.b57016", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Battery Status", "func": "var battery = msg.payload.home.modules[1].battery_level ;\nif (battery <= 1500)\n{battery = 1500}\nif (battery >= 3000)\n{battery = 3000}\nmsg.payload = Math.round(+ ((battery- 1500) * 100) / 1500) ;\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 430, "y": 170, "wires": [ [ "c3498d0d.846ba" ] ] }, { "id": "c3498d0d.846ba", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Battery_Status", "topic": "0_userdata.0.Heizung.Kinderzimmer.Batterie", "ack": "true", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 900, "y": 170, "wires": [] }, { "id": "85d17dcf.ebf89", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Bad Ist Temp.", "func": "var ist_temp = msg.payload.home.rooms[3].therm_measured_temperature;\nmsg.payload = + ist_temp;\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 430, "y": 200, "wires": [ [ "11583a00.ebd3f6" ] ] }, { "id": "497502e3.0638b4", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Bad Soll Temp.", "func": "var soll_temp = msg.payload.home.rooms[3].therm_setpoint_temperature;\nmsg.payload = + soll_temp;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 430, "y": 230, "wires": [ [ "b61105f6.b45058" ] ] }, { "id": "6a436626.4e3fb", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Battery Status", "func": "var battery = msg.payload.home.modules[4].battery_level ;\nif (battery <= 1500)\n{battery = 1500}\nif (battery >= 3000)\n{battery = 3000}\nmsg.payload = Math.round(+ ((battery- 1500) * 100) / 1500) ;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 430, "y": 260, "wires": [ [ "a34ee570.ad921" ] ] }, { "id": "11583a00.ebd3f6", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Ist_Temp", "topic": "0_userdata.0.Heizung.Badezimmer.Ist_Temp", "ack": "true", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "number", "readonly": "true", "stateUnit": "°C", "stateMin": "-10", "stateMax": "50", "x": 880, "y": 200, "wires": [] }, { "id": "b61105f6.b45058", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Soll_Temp", "topic": "0_userdata.0.Heizung.Badezimmer.Soll_Temp", "ack": "true", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 890, "y": 230, "wires": [] }, { "id": "a34ee570.ad921", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Battery_Status", "topic": "0_userdata.0.Heizung.Badezimmer.Batterie", "ack": "true", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 900, "y": 260, "wires": [] }, { "id": "8ac9cec.f2b5eb", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Wohnzimmer Ist Temp.", "func": "var ist_temp = msg.payload.home.rooms[2].therm_measured_temperature;\nmsg.payload = + ist_temp;\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 450, "y": 290, "wires": [ [ "aab11c36.d4cc88" ] ] }, { "id": "bde0702a.fab0e", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Wohnzimmer Soll Temp.", "func": "var soll_temp = msg.payload.home.rooms[2].therm_setpoint_temperature;\nmsg.payload = + soll_temp;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 460, "y": 320, "wires": [ [ "74568b96.b1e524" ] ] }, { "id": "2ee28bb1.ef5b74", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Battery Status", "func": "var battery = msg.payload.home.modules[3].battery_level ;\nif (battery <= 1500)\n{battery = 1500}\nif (battery >= 3000)\n{battery = 3000}\nmsg.payload = Math.round(+ ((battery- 1500) * 100) / 1500) ;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 430, "y": 350, "wires": [ [ "639c2c80.cb235c" ] ] }, { "id": "aab11c36.d4cc88", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Ist_Temp", "topic": "0_userdata.0.Heizung.Wohnzimmer.Ist_Temp", "ack": "true", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "number", "readonly": "true", "stateUnit": "°C", "stateMin": "-10", "stateMax": "50", "x": 880, "y": 290, "wires": [] }, { "id": "74568b96.b1e524", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Soll_Temp", "topic": "0_userdata.0.Heizung.Wohnzimmer.Soll_Temp", "ack": "true", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 890, "y": 320, "wires": [] }, { "id": "639c2c80.cb235c", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Battery_Status", "topic": "0_userdata.0.Heizung.Wohnzimmer.Batterie", "ack": "true", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 900, "y": 350, "wires": [] }, { "id": "7739cc00.b9c254", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Küche", "topic": "0_userdata.0.Heizung.Küche", "ack": "false", "autoCreate": "false", "stateName": ".test.0", "role": "", "payloadType": "string", "readonly": "true", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 870, "y": 500, "wires": [] }, { "id": "89ccf785.22663", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Therm Mode", "func": "if (msg.payload.home.rooms[0].therm_setpoint_mode === \"away\")\n{\nnode.send({\n payload: \n \n \n 'Abwesend'\n \n }\n);\n} \nif (msg.payload.home.rooms[0].therm_setpoint_mode === \"schedule\")\n{\nnode.send({\n payload: 'Komfort'\n}\n);\n} \nif (msg.payload.home.rooms[0].therm_setpoint_mode === \"hg\")\n{\nnode.send({\n payload: \n \n 'Frostwächter'\n} \n\n);\n} ", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 420, "y": 500, "wires": [ [ "7739cc00.b9c254", "a992c5d4.379358", "8641f729.fbcff", "fe655a17.dce558" ] ] }, { "id": "a4e48a2e.61169", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Firmware Version", "func": "if (msg.payload.home.modules[1].firmware_revision === msg.payload.home.modules[1].firmware_revision)\n{\nnode.send({\n payload: \n \n \n 'Version ' + msg.payload.home.modules[1].firmware_revision\n }\n);\n} \n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 440, "y": 380, "wires": [ [ "f615b228.f4c11" ] ] }, { "id": "f615b228.f4c11", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Firmware Küche", "topic": "0_userdata.0.Heizung.Küche.Firmware", "ack": "true", "autoCreate": "false", "stateName": ".test.0", "role": "", "payloadType": "string", "readonly": "true", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 910, "y": 380, "wires": [] }, { "id": "ab5a4072.ba1c78", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Firmware Version", "func": "if (msg.payload.home.modules[2].firmware_revision === msg.payload.home.modules[2].firmware_revision)\n{\nnode.send({\n payload: \n \n \n 'Version ' + msg.payload.home.modules[2].firmware_revision\n }\n);\n} \n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 440, "y": 410, "wires": [ [ "a66b1a18.2f89b" ] ] }, { "id": "a66b1a18.2f89b", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Firmware Wohnzimmer", "topic": "0_userdata.0.Heizung.Wohnzimmer.Firmware", "ack": "true", "autoCreate": "false", "stateName": ".test.0", "role": "", "payloadType": "string", "readonly": "true", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 930, "y": 410, "wires": [] }, { "id": "7b17e4ed.506cec", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Firmware Version", "func": "if (msg.payload.home.modules[3].firmware_revision === msg.payload.home.modules[3].firmware_revision)\n{\nnode.send({\n payload: \n \n \n 'Version ' + msg.payload.home.modules[3].firmware_revision\n }\n);\n} \n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 440, "y": 440, "wires": [ [ "24d00b7e.1907dc" ] ] }, { "id": "24d00b7e.1907dc", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Firmware Kinderzimmer", "topic": "0_userdata.0.Heizung.Kinderzimmer.Firmware", "ack": "true", "autoCreate": "false", "stateName": ".test.0", "role": "", "payloadType": "string", "readonly": "true", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 930, "y": 440, "wires": [] }, { "id": "2251953d.29f07a", "type": "function", "z": "9ea6b6a9.a9b5e8", "name": "Firmware Version", "func": "if (msg.payload.home.modules[4].firmware_revision === msg.payload.home.modules[4].firmware_revision)\n{\nnode.send({\n payload: \n \n 'Version ' + msg.payload.home.modules[4].firmware_revision\n }\n);\n} \n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 440, "y": 470, "wires": [ [ "ba579b77.47c1f" ] ] }, { "id": "ba579b77.47c1f", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Firmware Badezimmer", "topic": "0_userdata.0.Heizung.Badezimmer.Firmware", "ack": "true", "autoCreate": "false", "stateName": ".test.0", "role": "", "payloadType": "string", "readonly": "true", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 930, "y": 470, "wires": [] }, { "id": "a992c5d4.379358", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Wohnzimmer", "topic": "0_userdata.0.Heizung.Wohnzimmer", "ack": "false", "autoCreate": "false", "stateName": ".test.0", "role": "", "payloadType": "string", "readonly": "true", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 900, "y": 530, "wires": [] }, { "id": "8641f729.fbcff", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Kinderzimmer", "topic": "0_userdata.0.Heizung.Kinderzimmer", "ack": "false", "autoCreate": "false", "stateName": ".test.0", "role": "", "payloadType": "string", "readonly": "true", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 900, "y": 560, "wires": [] }, { "id": "fe655a17.dce558", "type": "ioBroker out", "z": "9ea6b6a9.a9b5e8", "name": "Badezimmer", "topic": "0_userdata.0.Heizung.Badezimmer", "ack": "false", "autoCreate": "false", "stateName": ".test.0", "role": "", "payloadType": "string", "readonly": "true", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 890, "y": 590, "wires": [] }, { "id": "d0322ff8.d371f", "type": "netatmoconfig", "z": "", "client_id": "xxxx", "client_secret": "xxxx", "username": "xxx", "password": "xxx" } ]