- Home
- Deutsch
- Skripten / Logik
- Node-Red
- Simple Steuerung true/false offen/geschlossen
Simple Steuerung true/false offen/geschlossen
-
@mickym
Meinst du so !?
Nur wie verarbeite ich das neue payload bzw bringe es dazu eine command ausgabe zu machen
-
@aphofis Nein - iobroker kann nur eine payload schreiben. Steht doch in der Hilfe.
Und ich weiß auch nicht, was Du wieder für neue Eigenschaften machst. Du hattest doch fenster_wz gehabt.
Die Regeln werden von oben nach unten in einer Change Node abgearbeitet. Also wirst Du als letztes die Eigenschaft fenster_wz in payload verschieben.
Was soll den payload_fwz wieder - davon hatten wir doch NIE gesprochen. Bleib einfach immer bei dem was wir hier besprechen und erfinde nicht plötzlich wieder neue Nachrichteneigenschaften.
-
@mickym Icha dachte ist genau ander rum ok also abarbeitung von oben nach unten
-
@aphofis Na das ist doch wieder verkehrt. Nun machst du aus einer payload - fenster_wz - das kann aber eine iobroker Out nicht schreiben.
Also in der Regel nimmst Du nur eine payload - aber vorher hattest Du ja in der iobroker-IN node fenster_wz ausproi biert.
Wie Du siehst - gibt es nun in deinem Nachrichtenobjekt keine payload mehr sondern nur noch fenster_wz.
Also letztlich solltest Du verstanden haben, wie es funktioniert. - Ansonsten macht es keinen Sinn, wenn Du Dinge änderst ohne dass ich das gesagt habe.
-
@mickym dann verstehe ich es nicht
-
@aphofis Was verstehst Du nicht?
Also die iobroker-Out Node schreibt nur eine payload.
In der iobroker-In Node spezifizierst Du unter welchem Attribut ein Wert eingelesen wird.
Die Regeln in einer Change Node werden von oben nach unten abgearbeitet.
-
@mickym also so korrekt !?
[ { "id": "989d9879651c9725", "type": "ioBroker in", "z": "403774f919fb638c", "name": "", "attrname": "fenster_wz", "topic": "alexa2.0.History.answerText", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 140, "y": 320, "wires": [ [ "0a809a663c37b826" ] ] }, { "id": "583b02925b31d661", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 580, "y": 300, "wires": [] }, { "id": "0a809a663c37b826", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "fenster_wz", "pt": "msg", "from": "Wohnzimmer Fenster,, wurde,, geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "fenster_wz", "pt": "msg", "from": "Wohnzimmerfenster wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "move", "p": "fenster_wz", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 390, "y": 320, "wires": [ [ "583b02925b31d661", "30700a1f1af11019" ] ] }, { "id": "30700a1f1af11019", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Fenster WZ", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-wz", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 590, "y": 340, "wires": [] } ]
Ich denke das hab ich jetzt verstanden
-
@aphofis Ja - so würde es funktionieren, wenn Du mit der iobroker In Node es in eine andere Eigenschaft (also fenster_wz) einliest.
Aber in der Regel wirst Du ja alles bei payload belassen. - Aber es geht ja darum dass Du das Prinzip mit den Nachrichteneigenschaften verstehst.
-
@mickym genau und das denke ich habe ich verstanden
-
nur was ich noch nicht verstehe, das die anderen sensoren in der node ein anderes attribute haben aber in deren zustand trotzdem innerhalb der node der wert aus alexa2/0/History/answerText eingetragen wird also fenster sensor wz wurde geschlossen zb normal sollen die ja gar nicht darauf reagieren. hmmm
-
@aphofis sagte in Simple Steuerung true/false offen/geschlossen:
nur was ich noch nicht verstehe, das die anderen sensoren in der node ein anderes attribute haben aber in deren zustand trotzdem innerhalb der node der wert aus alexa2/0/History/answerText eingetragen wird also fenster sensor wz wurde geschlossen zb normal sollen die ja gar nicht darauf reagieren. hmmm
Und ich habe diesen Satz überhaupt nicht verstanden - vielleicht kannst Du ihn nochmal anders erklären.
-
@mickym Was sind denn andere Sensoren in der Node? und wieso haben die ein anderes Attribut?
-
also ich muss mich erstmal abmelden. muss noch duschen !
habe heute wieder etwas gelernt.
Muss nur noch paar schaltpläne welzen muss morgen zwei schiebetüren an GLT, EMA und BMA aufschalten und da muss ich mich noch etwas belesen. Ist zwar simpler kram ist aber von den sensor befestigungen von anlagen typ zu anlagen typ unterschiedlich.
Danke dir schon mal und man könnte ja morgen weiter machen. -
das wären die anderen:
[ { "id": "55c6088dfea007c5", "type": "tab", "label": "Flow 2", "disabled": false, "info": "", "env": [] }, { "id": "044e4776a918b4dd", "type": "ioBroker in", "z": "55c6088dfea007c5", "name": "", "attrname": "fenster_kueche", "topic": "alexa2.0.History.answerText", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 260, "y": 180, "wires": [ [ "918be1111d3e5712" ] ] }, { "id": "918be1111d3e5712", "type": "change", "z": "55c6088dfea007c5", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "fenster küche wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "payload", "pt": "msg", "from": "fenster küche wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "set", "p": "fenster_kueche", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 180, "wires": [ [ "800e97df64d87e25", "934bab665a1cb42e" ] ] }, { "id": "800e97df64d87e25", "type": "ioBroker out", "z": "55c6088dfea007c5", "name": "Fenster Küche", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-küche", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 720, "y": 180, "wires": [] }, { "id": "7796f218ad150460", "type": "ioBroker in", "z": "55c6088dfea007c5", "name": "", "attrname": "fenster_buero", "topic": "alexa2.0.History.answerText", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 260, "y": 320, "wires": [ [ "3ed9453c15ca6be1" ] ] }, { "id": "3ed9453c15ca6be1", "type": "change", "z": "55c6088dfea007c5", "name": "", "rules": [ { "t": "change", "p": "fenster_buero", "pt": "msg", "from": "büro fenster wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "fenster_buero", "pt": "msg", "from": "fenster sensor büro wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "set", "p": "fenster_buero", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 320, "wires": [ [ "7a9421922bed7d97" ] ] }, { "id": "7a9421922bed7d97", "type": "ioBroker out", "z": "55c6088dfea007c5", "name": "Fenster Büro", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-büro", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 710, "y": 320, "wires": [] }, { "id": "8d71936646378267", "type": "ioBroker in", "z": "55c6088dfea007c5", "name": "", "attrname": "fenster_schlafz", "topic": "alexa2.0.History.answerText", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 260, "y": 440, "wires": [ [ "8ba6d78da7dd412a" ] ] }, { "id": "8ba6d78da7dd412a", "type": "change", "z": "55c6088dfea007c5", "name": "", "rules": [ { "t": "change", "p": "fenster_schlafz", "pt": "msg", "from": "schlafzimmer fenster wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "fenster_schlafz", "pt": "msg", "from": "schlafzimmer fenster wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "set", "p": "fenster_schlafz", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 440, "wires": [ [ "2f90d602bda3575e" ] ] }, { "id": "2f90d602bda3575e", "type": "ioBroker out", "z": "55c6088dfea007c5", "name": "Fenster Schlafz", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-schlafz", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 720, "y": 440, "wires": [] }, { "id": "0fb2440f5e5b9be9", "type": "ioBroker in", "z": "55c6088dfea007c5", "name": "", "attrname": "tuer_wz", "topic": "alexa2.0.History.answerText", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 260, "y": 580, "wires": [ [ "b563556596e10823" ] ] }, { "id": "b563556596e10823", "type": "change", "z": "55c6088dfea007c5", "name": "", "rules": [ { "t": "change", "p": "tuer_wz", "pt": "msg", "from": "tür wohnzimmer wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "tuer_wz", "pt": "msg", "from": "tür wohnzimmer wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "set", "p": "tuer_wz", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 580, "wires": [ [ "de842256f488dd2b" ] ] }, { "id": "de842256f488dd2b", "type": "ioBroker out", "z": "55c6088dfea007c5", "name": "Tür WZ", "topic": "0_userdata.0.GordonX-Home.0.tür-sensor-wz", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 700, "y": 580, "wires": [] }, { "id": "934bab665a1cb42e", "type": "debug", "z": "55c6088dfea007c5", "name": "Ausgabe", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 700, "y": 140, "wires": [] } ]
-
@aphofis Du liest 4 mal den gleichen Datenpunkt aus. Das kann man so machen, man kann das aber auch anders machen.
-
@mickym
Wäre es so möglich !?
[ { "id": "403774f919fb638c", "type": "tab", "label": "Fenster & Tür Sensoren", "disabled": false, "info": "", "env": [] }, { "id": "583b02925b31d661", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Fenster Wz", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 740, "y": 320, "wires": [] }, { "id": "0a809a663c37b826", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "fenster_wz", "pt": "msg", "from": "Wohnzimmer Fenster,, wurde,, geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "fenster_wz", "pt": "msg", "from": "Wohnzimmerfenster wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "move", "p": "fenster_wz", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 340, "wires": [ [ "583b02925b31d661", "30700a1f1af11019" ] ] }, { "id": "30700a1f1af11019", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Fenster WZ", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-wz", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 710, "y": 360, "wires": [] }, { "id": "a04e704da4f58ac3", "type": "ioBroker in", "z": "403774f919fb638c", "name": "", "attrname": "fenster_kueche", "topic": "alexa2.0.History.answerText", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 180, "y": 540, "wires": [ [ "b13c2d067e849deb", "dc5cf4f07eb8edc9", "0de159c4387539cc", "c8e42d6ae7a6a496", "0a809a663c37b826" ] ] }, { "id": "b13c2d067e849deb", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "fenster küche wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "payload", "pt": "msg", "from": "fenster küche wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "set", "p": "fenster_kueche", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 460, "wires": [ [ "a7aa1fb5298bd29c", "55130b9c537c5f05" ] ] }, { "id": "a7aa1fb5298bd29c", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Fenster Küche", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-küche", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 720, "y": 480, "wires": [] }, { "id": "dc5cf4f07eb8edc9", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "fenster_buero", "pt": "msg", "from": "büro fenster wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "fenster_buero", "pt": "msg", "from": "fenster sensor büro wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "set", "p": "fenster_buero", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 540, "wires": [ [ "ea407daf57ae3231", "ba9eec8450b3fd98" ] ] }, { "id": "ea407daf57ae3231", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Fenster Büro", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-büro", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 710, "y": 580, "wires": [] }, { "id": "0de159c4387539cc", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "fenster_schlafz", "pt": "msg", "from": "schlafzimmer fenster wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "fenster_schlafz", "pt": "msg", "from": "schlafzimmer fenster wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "set", "p": "fenster_schlafz", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 660, "wires": [ [ "0ba5165605c97935", "bdf36b2de16500eb" ] ] }, { "id": "0ba5165605c97935", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Fenster Schlafz", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-schlafz", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 720, "y": 680, "wires": [] }, { "id": "c8e42d6ae7a6a496", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "tuer_wz", "pt": "msg", "from": "tür wohnzimmer wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "tuer_wz", "pt": "msg", "from": "tür wohnzimmer wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "set", "p": "tuer_wz", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 780, "wires": [ [ "7b6776a1a67d1974", "98a8e0b1bf54230d" ] ] }, { "id": "7b6776a1a67d1974", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Tür WZ", "topic": "0_userdata.0.GordonX-Home.0.tür-sensor-wz", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 700, "y": 780, "wires": [] }, { "id": "55130b9c537c5f05", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Fenster Küche", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 750, "y": 440, "wires": [] }, { "id": "ba9eec8450b3fd98", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Fenster Büro", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 740, "y": 540, "wires": [] }, { "id": "bdf36b2de16500eb", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Fenster Schlafz.", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 750, "y": 640, "wires": [] }, { "id": "98a8e0b1bf54230d", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Tür Wz", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 730, "y": 740, "wires": [] } ]
-
@aphofis Im Prinzip schon - aber so halt nicht - schau halt mal in welches Attribut Du den Wert ausliest.
Wenn Du das nicht beantworten kannst, dann lass Dir halt wieder das ganze Nachrichtenpbjekt ausgeben.
Geh halt Schritt für Schritt vor.Also in welches Attribut liest Du den Wert ein?
Außerdem verwirrst Du ja Dein Ziel schau halt was in den Debug Nodes rauskommt.
-
@mickym Achso Attribute ist ja nur fenster_kueche ne das ja etwas zu wenig.
wie mache ich das denn das alle attribute gelesen und weiter gegeben werdenKann man das so machen !? fehlt aber anscheinend etwas attribute wird irgendwo nicht weiter verarbeitet.
[ { "id": "583b02925b31d661", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Fenster Wz", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 1120, "y": 300, "wires": [] }, { "id": "0a809a663c37b826", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "fenster_wz", "pt": "msg", "from": "Wohnzimmer Fenster,, wurde,, geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "fenster_wz", "pt": "msg", "from": "Wohnzimmerfenster wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "move", "p": "fenster_wz", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 870, "y": 320, "wires": [ [ "583b02925b31d661", "30700a1f1af11019" ] ] }, { "id": "30700a1f1af11019", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Fenster WZ", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-wz", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1090, "y": 340, "wires": [] }, { "id": "a04e704da4f58ac3", "type": "ioBroker in", "z": "403774f919fb638c", "name": "", "attrname": "payload", "topic": "alexa2.0.History.answerText", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 240, "y": 540, "wires": [ [ "45dc365807d87963" ] ] }, { "id": "b13c2d067e849deb", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "fenster_kueche", "pt": "msg", "from": "fenster küche wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "fenster_kueche", "pt": "msg", "from": "fenster küche wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "move", "p": "fenster_kueche", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 870, "y": 420, "wires": [ [ "a7aa1fb5298bd29c", "55130b9c537c5f05" ] ] }, { "id": "a7aa1fb5298bd29c", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Fenster Küche", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-küche", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1100, "y": 440, "wires": [] }, { "id": "dc5cf4f07eb8edc9", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "fenster_buero", "pt": "msg", "from": "büro fenster wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "fenster_buero", "pt": "msg", "from": "fenster sensor büro wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "move", "p": "fenster_buero", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 870, "y": 500, "wires": [ [ "ea407daf57ae3231", "ba9eec8450b3fd98" ] ] }, { "id": "ea407daf57ae3231", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Fenster Büro", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-büro", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1090, "y": 540, "wires": [] }, { "id": "0de159c4387539cc", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "fenster_schlafz", "pt": "msg", "from": "schlafzimmer fenster wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "fenster_schlafz", "pt": "msg", "from": "schlafzimmer fenster wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "move", "p": "fenster_schlafz", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 870, "y": 620, "wires": [ [ "0ba5165605c97935", "bdf36b2de16500eb" ] ] }, { "id": "0ba5165605c97935", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Fenster Schlafz", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-schlafz", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1100, "y": 640, "wires": [] }, { "id": "c8e42d6ae7a6a496", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "tuer_wz", "pt": "msg", "from": "tür wohnzimmer wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "tuer_wz", "pt": "msg", "from": "tür wohnzimmer wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "move", "p": "tuer_wz", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 870, "y": 740, "wires": [ [ "7b6776a1a67d1974", "98a8e0b1bf54230d" ] ] }, { "id": "7b6776a1a67d1974", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Tür WZ", "topic": "0_userdata.0.GordonX-Home.0.tür-sensor-wz", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1080, "y": 740, "wires": [] }, { "id": "55130b9c537c5f05", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Fenster Küche", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 1130, "y": 400, "wires": [] }, { "id": "ba9eec8450b3fd98", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Fenster Büro", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 1120, "y": 500, "wires": [] }, { "id": "bdf36b2de16500eb", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Fenster Schlafz.", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 1130, "y": 600, "wires": [] }, { "id": "98a8e0b1bf54230d", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Tür Wz", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 1110, "y": 700, "wires": [] }, { "id": "45dc365807d87963", "type": "switch", "z": "403774f919fb638c", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "fenster_wz", "vt": "str" }, { "t": "eq", "v": "fenster_kueche", "vt": "str" }, { "t": "eq", "v": "fenster_buero", "vt": "str" }, { "t": "eq", "v": "fenster_schlafz", "vt": "str" }, { "t": "eq", "v": "tuer_wz", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 5, "x": 490, "y": 540, "wires": [ [ "0a809a663c37b826" ], [ "b13c2d067e849deb" ], [ "dc5cf4f07eb8edc9" ], [ "0de159c4387539cc" ], [ "c8e42d6ae7a6a496" ] ] } ]
-
@aphofis Wenn Du alles bei payload belassen hättest, dann hättest Du doch vorerst kein Problem - allerdings schau Dir halt mal an, was in den Debugnodes rauskommt - ich glaube nicht, dass da nur true/false rauskommt.
-
@mickym Irgendwie klappt das nicht!
alle geräte sollen ja nur true/false melden und nicht alle auf alles reagieren und Fenster Bad ist ein Sonoff Gerät das muss auf 0/1 reagieren
[ { "id": "403774f919fb638c", "type": "tab", "label": "Fenster & Tür Sensoren", "disabled": false, "info": "", "env": [] }, { "id": "583b02925b31d661", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Fenster Wz", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 820, "y": 200, "wires": [] }, { "id": "0a809a663c37b826", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "fenster_wz", "pt": "msg", "from": "Wohnzimmer Fenster,, wurde,, geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "fenster_wz", "pt": "msg", "from": "Wohnzimmerfenster wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "move", "p": "fenster_wz", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 570, "y": 220, "wires": [ [ "583b02925b31d661", "30700a1f1af11019" ] ] }, { "id": "30700a1f1af11019", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Fenster WZ", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-wz", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 790, "y": 240, "wires": [] }, { "id": "a04e704da4f58ac3", "type": "ioBroker in", "z": "403774f919fb638c", "name": "", "attrname": "payload", "topic": "alexa2.0.History.answerText", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 200, "y": 440, "wires": [ [ "e14f45b233f41bf6", "0a809a663c37b826", "b13c2d067e849deb", "dc5cf4f07eb8edc9", "0de159c4387539cc", "c8e42d6ae7a6a496", "5c4c4ecbf153b3de" ] ] }, { "id": "b13c2d067e849deb", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "fenster_kueche", "pt": "msg", "from": "fenster küche wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "fenster_kueche", "pt": "msg", "from": "fenster küche wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "move", "p": "fenster_kueche", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 570, "y": 340, "wires": [ [ "a7aa1fb5298bd29c", "55130b9c537c5f05" ] ] }, { "id": "a7aa1fb5298bd29c", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Fenster Küche", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-küche", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 800, "y": 340, "wires": [] }, { "id": "dc5cf4f07eb8edc9", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "fenster_buero", "pt": "msg", "from": "büro fenster wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "fenster_buero", "pt": "msg", "from": "fenster sensor büro wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "move", "p": "fenster_buero", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 570, "y": 400, "wires": [ [ "ea407daf57ae3231", "ba9eec8450b3fd98" ] ] }, { "id": "ea407daf57ae3231", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Fenster Büro", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-büro", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 790, "y": 440, "wires": [] }, { "id": "0de159c4387539cc", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "fenster_schlafz", "pt": "msg", "from": "schlafzimmer fenster wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "fenster_schlafz", "pt": "msg", "from": "schlafzimmer fenster wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "move", "p": "fenster_schlafz", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 570, "y": 520, "wires": [ [ "0ba5165605c97935", "bdf36b2de16500eb" ] ] }, { "id": "0ba5165605c97935", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Fenster Schlafz", "topic": "0_userdata.0.GordonX-Home.0.fenster-sensor-schlafz", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 800, "y": 540, "wires": [] }, { "id": "c8e42d6ae7a6a496", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "tuer_wz", "pt": "msg", "from": "tür wohnzimmer wurde geöffnet", "fromt": "str", "to": "true", "tot": "bool" }, { "t": "change", "p": "tuer_wz", "pt": "msg", "from": "tür wohnzimmer wurde geschlossen", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "move", "p": "tuer_wz", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 570, "y": 640, "wires": [ [ "7b6776a1a67d1974", "98a8e0b1bf54230d" ] ] }, { "id": "7b6776a1a67d1974", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Tür WZ", "topic": "0_userdata.0.GordonX-Home.0.tür-sensor-wz", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 780, "y": 640, "wires": [] }, { "id": "55130b9c537c5f05", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Fenster Küche", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 830, "y": 300, "wires": [] }, { "id": "ba9eec8450b3fd98", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Fenster Büro", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 820, "y": 400, "wires": [] }, { "id": "bdf36b2de16500eb", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Fenster Schlafz.", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 830, "y": 500, "wires": [] }, { "id": "98a8e0b1bf54230d", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Tür Wz", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 810, "y": 600, "wires": [] }, { "id": "5c4c4ecbf153b3de", "type": "change", "z": "403774f919fb638c", "name": "", "rules": [ { "t": "change", "p": "fenster_bad", "pt": "msg", "from": "fenster Bad wurde geöffnet", "fromt": "str", "to": "1", "tot": "str" }, { "t": "change", "p": "fenster_bad", "pt": "msg", "from": "fenster Bad wurde geschlossen", "fromt": "str", "to": "0", "tot": "str" }, { "t": "move", "p": "fenster_bad", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 570, "y": 720, "wires": [ [ "f94f4d4e2195fd4e", "5f208caa0596d609" ] ] }, { "id": "f94f4d4e2195fd4e", "type": "ioBroker out", "z": "403774f919fb638c", "name": "Fenster Bad", "topic": "ham.0.Fenster-Bad.Contact-Sensor.Contact-Sensor-State", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 790, "y": 740, "wires": [] }, { "id": "5f208caa0596d609", "type": "debug", "z": "403774f919fb638c", "name": "Ausgabe Tür Wz", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 810, "y": 700, "wires": [] }, { "id": "e14f45b233f41bf6", "type": "debug", "z": "403774f919fb638c", "name": "debug 4", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 540, "y": 160, "wires": [] } ]