Registrieren Sie sich jetzt!
(21.01.2020, 09:13)Bluescreen schrieb: Hallo fisch, sieht so aus, als sollte es so funktionieren. Unter "Bedingung" einen HTTP-Endpunkt von node-red hinterlegen. In Node-Red die Logik für diesen Endpunkt festlegen -> Google-Kalender -> aktiv oder nicht Die Zeitschaltuhr dauerhaft einschalten. Sollte dann nur aktiv sein, wenn die Bedingung erfüllt ist. Viel Erfolg.
[ { "id": "2d37fea7.1bead2", "type": "http in", "z": "8e46af58.6dae4", "name": "GET Spaetschicht", "url": "/mygekko/calendar/spaetschicht", "method": "get", "upload": false, "swaggerDoc": "", "x": 190, "y": 120, "wires": [ [ "9b0eb64a.7246f8" ] ] }, { "id": "9b0eb64a.7246f8", "type": "change", "z": "8e46af58.6dae4", "name": "Setzte Rueckgabewert", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\"value\":\"1\"}", "tot": "json" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 420, "y": 120, "wires": [ [ "58ac7a4f.6d6444" ] ] }, { "id": "58ac7a4f.6d6444", "type": "http response", "z": "8e46af58.6dae4", "name": "HTTP-Response", "statusCode": "200", "headers": {}, "x": 650, "y": 120, "wires": [] } ]
{"value":"1"}
[ { "id": "f7b991c3.d41e", "type": "tab", "label": "Flow 3", "disabled": false, "info": "" }, { "id": "90e26811.721fa8", "type": "http in", "z": "f7b991c3.d41e", "name": "GET Spaetschicht", "url": "/mygekko/calendar/spaetschicht", "method": "get", "upload": false, "swaggerDoc": "", "x": 210, "y": 140, "wires": [ [ "f7f86919.1afb38" ] ] }, { "id": "3f1512cf.b745ee", "type": "http response", "z": "f7b991c3.d41e", "name": "HTTP-Response", "statusCode": "200", "headers": {}, "x": 670, "y": 140, "wires": [] }, { "id": "a39ecd0.227ad3", "type": "mqtt in", "z": "f7b991c3.d41e", "name": "", "topic": "shellies/shelly1pm-Waschmaschine/relay/0/power", "qos": "2", "datatype": "auto", "broker": "27ccde99.c8dde2", "x": 380, "y": 80, "wires": [ [ "b6badb95.a8ccc8", "8a3e0eb4.47469" ] ] }, { "id": "b6badb95.a8ccc8", "type": "function", "z": "f7b991c3.d41e", "name": "", "func": "flow.set(\"power\", msg.payload);\nreturn msg;", "outputs": 1, "noerr": 0, "x": 690, "y": 80, "wires": [ [] ] }, { "id": "8a3e0eb4.47469", "type": "debug", "z": "f7b991c3.d41e", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "x": 680, "y": 40, "wires": [] }, { "id": "f7f86919.1afb38", "type": "function", "z": "f7b991c3.d41e", "name": "", "func": "msg.payload = flow.get(\"power\")\nreturn msg;", "outputs": 1, "noerr": 0, "x": 420, "y": 140, "wires": [ [ "3f1512cf.b745ee" ] ] }, { "id": "27ccde99.c8dde2", "type": "mqtt-broker", "z": "", "name": "", "broker": "127.0.0.1", "port": "11883", "clientid": "", "usetls": false, "compatmode": true, "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "closeTopic": "", "closeQos": "0", "closePayload": "", "willTopic": "", "willQos": "0", "willPayload": "" } ]
[{"id":"5bf4ffbd.c7e46","type":"tab","label":"Shelly HT","disabled":false,"info":""},{"id":"5a6a835d.b2b73c","type":"http in","z":"5bf4ffbd.c7e46","name":"/Shelly/HT","url":"/Shelly/HT","method":"get","upload":false,"swaggerDoc":"","x":100,"y":620,"wires":[["d7622984.f7d2f8"]]},{"id":"4f6f3ad9.8560f4","type":"function","z":"5bf4ffbd.c7e46","name":"","func":"flow.set('46-Temperatur',Number(msg.payload))\nreturn msg;","outputs":0,"noerr":0,"x":270,"y":80,"wires":[]},{"id":"d7622984.f7d2f8","type":"function","z":"5bf4ffbd.c7e46","name":"","func":"var o=\n {\n Temp_46:flow.get('46-Temperatur',0),\n Feucht_46:flow.get('46-Feuchtigkeit',0), \n Batt_46:flow.get('46-Batterie',0),\n Temp_49:flow.get('49-Temperatur',0),\n Feucht_49:flow.get('49-Feuchtigkeit',0), \n Batt_49:flow.get('49-Batterie',0),\n Temp_31:flow.get('31-Temperatur',0),\n Feucht_31:flow.get('31-Feuchtigkeit',0), \n Batt_31:flow.get('31-Batterie',0)\n };\nmsg.payload = JSON.stringify(o);\nreturn msg;","outputs":1,"noerr":0,"x":270,"y":620,"wires":[["a9250ec6.4a3e3"]]},{"id":"1cbef30a.4a99cd","type":"mqtt in","z":"5bf4ffbd.c7e46","name":"46-Temperatur","topic":"shellies/46-shelly/sensor/temperature","qos":"2","datatype":"auto","broker":"7438383a.9fc788","x":120,"y":80,"wires":[["4f6f3ad9.8560f4"]]},{"id":"a9250ec6.4a3e3","type":"http response","z":"5bf4ffbd.c7e46","name":"HTTP-Response","statusCode":"200","headers":{"content-type":"text/html"},"x":450,"y":620,"wires":[]},{"id":"811244cc.f13ea8","type":"mqtt in","z":"5bf4ffbd.c7e46","name":"46-Feutigkeit","topic":"shellies/46-shelly/sensor/humidity","qos":"2","datatype":"auto","broker":"7438383a.9fc788","x":110,"y":120,"wires":[["cb1f88e3.5f0188"]]},{"id":"3b9881e9.cdce6e","type":"mqtt in","z":"5bf4ffbd.c7e46","name":"46-Batterie","topic":"shellies/46-shelly/sensor/battery","qos":"2","datatype":"auto","broker":"7438383a.9fc788","x":100,"y":160,"wires":[["5063bd42.7934b4"]]},{"id":"cb1f88e3.5f0188","type":"function","z":"5bf4ffbd.c7e46","name":"","func":"flow.set('46-Feuchtigkeit',Number(msg.payload))\nreturn msg;","outputs":0,"noerr":0,"x":270,"y":120,"wires":[]},{"id":"5063bd42.7934b4","type":"function","z":"5bf4ffbd.c7e46","name":"","func":"flow.set('46-Batterie',Number(msg.payload))\nreturn msg;","outputs":0,"noerr":0,"x":270,"y":160,"wires":[]},{"id":"8aae745d.c6b918","type":"comment","z":"5bf4ffbd.c7e46","name":"Nebengebäude","info":"","x":120,"y":40,"wires":[]},{"id":"40934432.6b281c","type":"function","z":"5bf4ffbd.c7e46","name":"","func":"flow.set('31-Temperatur',Number(msg.payload))\nreturn msg;","outputs":0,"noerr":0,"x":270,"y":260,"wires":[]},{"id":"5b004095.e1754","type":"mqtt in","z":"5bf4ffbd.c7e46","name":"31-Temperatur","topic":"shellies/31-shelly/sensor/temperature","qos":"2","datatype":"auto","broker":"7438383a.9fc788","x":120,"y":260,"wires":[["40934432.6b281c"]]},{"id":"ed4d314.2bc29d","type":"mqtt in","z":"5bf4ffbd.c7e46","name":"31-Feutigkeit","topic":"shellies/31-shelly/sensor/humidity","qos":"2","datatype":"auto","broker":"7438383a.9fc788","x":110,"y":300,"wires":[["b33134c7.cd25c8"]]},{"id":"de25a419.92e628","type":"mqtt in","z":"5bf4ffbd.c7e46","name":"31-Batterie","topic":"shellies/31-shelly/sensor/battery","qos":"2","datatype":"auto","broker":"7438383a.9fc788","x":100,"y":340,"wires":[["240b7093.1ba26"]]},{"id":"b33134c7.cd25c8","type":"function","z":"5bf4ffbd.c7e46","name":"","func":"flow.set('31-Feuchtigkeit',Number(msg.payload))\nreturn msg;","outputs":0,"noerr":0,"x":270,"y":300,"wires":[]},{"id":"240b7093.1ba26","type":"function","z":"5bf4ffbd.c7e46","name":"","func":"flow.set('31-Batterie',Number(msg.payload))\nreturn msg;","outputs":0,"noerr":0,"x":270,"y":340,"wires":[]},{"id":"fdd22cd5.d273f","type":"comment","z":"5bf4ffbd.c7e46","name":"Dachboden","info":"","x":110,"y":220,"wires":[]},{"id":"585cbe6f.6c03f","type":"function","z":"5bf4ffbd.c7e46","name":"","func":"flow.set('49-Temperatur',Number(msg.payload))\nreturn msg;","outputs":0,"noerr":0,"x":270,"y":440,"wires":[]},{"id":"7c2b5c50.e35964","type":"mqtt in","z":"5bf4ffbd.c7e46","name":"49-Temperatur","topic":"shellies/49-shelly/sensor/temperature","qos":"2","datatype":"auto","broker":"7438383a.9fc788","x":120,"y":440,"wires":[["585cbe6f.6c03f"]]},{"id":"2a5156a3.de3a8a","type":"mqtt in","z":"5bf4ffbd.c7e46","name":"49-Feutigkeit","topic":"shellies/49-shelly/sensor/humidity","qos":"2","datatype":"auto","broker":"7438383a.9fc788","x":110,"y":480,"wires":[["ff5894c5.2e7a98"]]},{"id":"b79f6534.a90fd8","type":"mqtt in","z":"5bf4ffbd.c7e46","name":"49-Batterie","topic":"shellies/49-shelly/sensor/battery","qos":"2","datatype":"auto","broker":"7438383a.9fc788","x":100,"y":520,"wires":[["62edd254.f1221c"]]},{"id":"ff5894c5.2e7a98","type":"function","z":"5bf4ffbd.c7e46","name":"","func":"flow.set('49-Feuchtigkeit',Number(msg.payload))\nreturn msg;","outputs":0,"noerr":0,"x":270,"y":480,"wires":[]},{"id":"62edd254.f1221c","type":"function","z":"5bf4ffbd.c7e46","name":"","func":"flow.set('49-Batterie',Number(msg.payload))\nreturn msg;","outputs":0,"noerr":0,"x":270,"y":520,"wires":[]},{"id":"c95f88aa.0ba268","type":"comment","z":"5bf4ffbd.c7e46","name":"Formekarium","info":"","x":110,"y":400,"wires":[]},{"id":"7438383a.9fc788","type":"mqtt-broker","z":"","name":"MQTT Broker","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
(08.02.2020, 22:23)Strabbit schrieb: Das liegt daran das du den Alexa Node nur als Ausgang benutzt und dieser sich nur seinen letzten Befehl und somit die Position des Rollos merkt. Wenn du die Rollos mittels Taster betätigst muss dies auch an den Alexa Node mitgeteilt werden. Auf deinem Bild muss der linke Anschluss des Alex Node noch konfiguriert werden.
(27.12.2019, 18:51)Strabbit schrieb: Hallo SaschaD Vielen Dank für die Mühe und das zur Verfügung stellen. Hab deine Konfiguration jetzt übernommen und einen MQTT auf meiner Synology NAS angelegt. NodeRed läuft auf einem Raspbery PI 3. Klappt auch alles soweit ganz gut. Jedoch bekomme ich ab und an von Siri die Antwort meine Geräte antworten nicht. Liegt es an meiner Hardware oder hast du da eine Idee?