- Home
- Deutsch
- Skripten / Logik
- Node-Red
- Simple Steuerung true/false offen/geschlossen
Simple Steuerung true/false offen/geschlossen
-
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": [] } ]
-
@aphofis ja wenn nicht jede Node auf alles reagieren soll, dann darfst du die Nachrichten nicht einfach vervielfältigen, sondern musst diese über Bedingungen an verschiedene Ausgänge einer Switch Node schicken
-
@mickym Wie erstelle ich denn diese bedingungen !?
-
@aphofis Na wie ich geschrieben habe. Mit einer switch Node. Oben steht die Eigenschaft, die Du überprüfen willst und dann definierst Du die Regeln - welcher Ausgang genommen wird.
-
@mickym Ich tausche die Tuya Sensoren einfach gegen Sonoff Fenster Kontakte die reagieren in wenigen ms und sind zuverlässig. Es ist mir einfach zu kompliziert über eine alexa routine zu arbeiten.
es sind einfach zu viele störfaktoren in der Geschichte. -
@aphofis Ja mach wie Du denkst. Es geht nicht nur um das Ergebnis, sondern dass Du was gelernt hättest. Aber ich denke wir lassen das in Zukunft. Es gibt ja noch eine Menge anderer Leute, die Dir ggf. helfen können.
Also viel Glück und Erfolg.
-
@mickym
Ich verstehe manche dinge nicht!
Ich würde es gerne umsetzen doch ich verliere manchmal den Faden um so komplexer es wird.
Hat jetzt nix mit dieser steuerung zu Tun! Es hat nur keinen sinn eine Steuerung weiter zu bilden, wenn die aktoren nicht korrekt reagieren und macht dann auch keinen spaß. Hatte mir einen Fenster Tür Kontakt von Sonoff gekauft und die reagieren sehr schnell. man kann die schaltung damit weiter führen.