NEWS
**iobroker in node** und and-gate
-
Leider gelingt es mir nicht zwei "iobroker in nodes" mittels einem "and-gate" (node-red-contrib-bool-gate) so zu verknüpfen, dass, wenn beide Eingänge "1 / true" sind, somit auch der Ausgang "true" ist. Egal welche Einstellungen ich vornehme (-> "iobroker in node" und "and-gate"), der Ausgang ist immer "false".
Probiere ich das "and-gate" mittels "inject-nodes" oder "mqtt-nodes" (auch gemischt) schaltet das "and-gate", wenn beide Eingänge "1 / true" sind, den Ausgang auch auf "true".
Was mache ich falsch?
Danke für eure Hilfe und xund bleiben
-
Habe den Fehler schon gefunden!
-
Hi, habe das gleiche Problem wie du.
Wo war der Fehler?
Wäre echt toll wenn du mir einen Tipp geben könntest.Danke und Grüße
-
@Cosmicbase
Hi, was möchtest du denn genau machen?
Das And Gate finde ich nicht so Klasse, das läst leider auch die ankommenden Nachrichten durch. Und die Ausgabe ist als msg.bool, da müsste man nacher wieder umwandeln in ein payload.
Wenn du nur ne normale "Und" Funktion haben willst, geht das auch mit Boardmittel. Entweder über Switches oder mit ner Funktion Node.
Hier mal ne Lösung mit Switches.
2 Input Nodes die den Flow triggern, darin deine beide Zustände die du auf Und Abfragen willst. Da hinter 2 x Get Node mit Switch auf Abfrage auf true. In den Get Nodes auch jeweils den Datenpunkt auswählen den du abfragen willst. Sind beide Datenpunkte true läuft der Flow durch und du kriegst nen true als string raus, falls du ein Bool brauchst kann man das natürlich noch umwandeln.
So sie es in dem Switch aus.
Hier der Code dazu.[ { "id": "3fdc7d27.d14522", "type": "ioBroker in", "z": "523fbe1.477244", "name": "Lichterkette POWER", "topic": "sonoff.0.Lichterkette.POWER", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "x": 130, "y": 320, "wires": [ [ "2fa163e5.625c0c" ] ] }, { "id": "504ad71e.3a0748", "type": "ioBroker in", "z": "523fbe1.477244", "name": "Vitrine POWER", "topic": "sonoff.0.Vitrine.POWER", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "x": 120, "y": 400, "wires": [ [ "2fa163e5.625c0c" ] ] }, { "id": "2fa163e5.625c0c", "type": "ioBroker get", "z": "523fbe1.477244", "name": "", "topic": "sonoff.0.Lichterkette.POWER", "attrname": "payload", "payloadType": "value", "x": 360, "y": 360, "wires": [ [ "1460ccc9.759903" ] ] }, { "id": "7d7df4fc.fb0f9c", "type": "ioBroker get", "z": "523fbe1.477244", "name": "", "topic": "sonoff.0.Vitrine.POWER", "attrname": "payload", "payloadType": "value", "x": 750, "y": 360, "wires": [ [ "9a806f06.94f99" ] ] }, { "id": "1460ccc9.759903", "type": "switch", "z": "523fbe1.477244", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "true", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 560, "y": 360, "wires": [ [ "7d7df4fc.fb0f9c" ] ] }, { "id": "9a806f06.94f99", "type": "switch", "z": "523fbe1.477244", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "true", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 930, "y": 360, "wires": [ [] ] } ]
Oder man baut sich das mit ner Funktion Node. Dann in den Get Nodes das Atribut ändern, in meinem Beispiel habe ich anstatt payload, var1 und var2 genommen. Das frage ich dann in der Funktion Node ab und gebe wenn beide true sind ein Bool true raus, wenn nicht beide true sind gebe ich ein Bool false raus.
So sieht die Funktion Node aus:
So die erste Get Node
so die zweite Get Node
Hier der Code dazu:[ { "id": "3fdc7d27.d14522", "type": "ioBroker in", "z": "523fbe1.477244", "name": "Lichterkette POWER", "topic": "sonoff.0.Lichterkette.POWER", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "x": 130, "y": 320, "wires": [ [ "2fa163e5.625c0c" ] ] }, { "id": "504ad71e.3a0748", "type": "ioBroker in", "z": "523fbe1.477244", "name": "Vitrine POWER", "topic": "sonoff.0.Vitrine.POWER", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "x": 120, "y": 400, "wires": [ [ "2fa163e5.625c0c" ] ] }, { "id": "2fa163e5.625c0c", "type": "ioBroker get", "z": "523fbe1.477244", "name": "", "topic": "sonoff.0.Lichterkette.POWER", "attrname": "var1", "payloadType": "value", "x": 360, "y": 360, "wires": [ [ "7d7df4fc.fb0f9c" ] ] }, { "id": "7d7df4fc.fb0f9c", "type": "ioBroker get", "z": "523fbe1.477244", "name": "", "topic": "sonoff.0.Vitrine.POWER", "attrname": "var2", "payloadType": "value", "x": 630, "y": 360, "wires": [ [ "f171e8c.757d918" ] ] }, { "id": "f171e8c.757d918", "type": "function", "z": "523fbe1.477244", "name": "Und", "func": "if(msg.var1 == 'true' & msg.var2 == 'true') {\n msg.payload = true;\n return msg;\n }\nelse{\n msg.payload = false;\n return msg;\n}\n\n\n", "outputs": 1, "noerr": 0, "x": 842.01953125, "y": 361.00390625, "wires": [ [] ] } ]
-
Hier meine 2 Screenshots.![Unbenannt1.PNG]
Das UND nur auf true wenn Zeitschaltung und Mower State auf true steht.
-
Hey,
an dieser Thematik habe ich auch gut zwei Tage gelassen.Ich habe herausgefunden, dass der node den du benutzt bei mir nicht sinnvoll funktionierte. Er setzte sich sozusagen nicht selbstständig zurück.
Geholfen hat mir dann node-red-contrib-boolean-logicIch empfang diesen Node als am nachvollziehbarsten, weil man eben sieht was passiert.
-
Vielen Dank für Eure Hilfe.
[ { "id": "b711ce7f.e971", "type": "tab", "label": "Rasenroboter-Zeitschaltung", "disabled": false, "info": "" }, { "id": "dc04fecf.f8ffd", "type": "schedex", "z": "b711ce7f.e971", "name": "", "passthroughunhandled": false, "suspended": false, "lat": "49.2071111", "lon": "12.2887325", "ontime": "sunset", "ontopic": "true", "onpayload": "true", "onoffset": "30", "onrandomoffset": 0, "offtime": "sunrise", "offtopic": "false", "offpayload": "false", "offoffset": "-60", "offrandomoffset": 0, "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": true, "sun": true, "x": 180, "y": 1140, "wires": [ [ "e51e9d29.56eeb8" ] ] }, { "id": "7f4d821a.ed463c", "type": "schedex", "z": "b711ce7f.e971", "name": "", "passthroughunhandled": true, "suspended": false, "lat": "49.2071111", "lon": "12.2887325", "ontime": "sunset", "ontopic": "true", "onpayload": "true", "onoffset": "50", "onrandomoffset": 0, "offtime": "sunrise", "offtopic": "false", "offpayload": "false", "offoffset": "-70", "offrandomoffset": 0, "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": true, "sun": true, "x": 180, "y": 1220, "wires": [ [ "e51e9d29.56eeb8" ] ] }, { "id": "b208d1ab.0fb9b", "type": "schedex", "z": "b711ce7f.e971", "name": "", "passthroughunhandled": true, "suspended": false, "lat": "49.2071111", "lon": "12.2887325", "ontime": "sunset", "ontopic": "true", "onpayload": "true", "onoffset": "70", "onrandomoffset": 0, "offtime": "sunrise", "offtopic": "false", "offpayload": "false", "offoffset": "-80", "offrandomoffset": 0, "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": true, "sun": true, "x": 180, "y": 1300, "wires": [ [ "e51e9d29.56eeb8" ] ] }, { "id": "93b2bbb4.bc2e9", "type": "switch", "z": "b711ce7f.e971", "name": "An/Aus", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "true", "vt": "str" }, { "t": "eq", "v": "false", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 1340, "y": 220, "wires": [ [ "6c8f2ae3.a77dac", "55c354dc.346d64", "e463c4e2.ce23b8", "5210013d.2e3868", "36d3b852.67754", "f1aac125.c59d8" ], [ "e463c4e2.ce23b8", "9c37efaf.2b901", "d59a104f.e5d848", "db3a4d40.6f735", "92eda9de.37bfe", "a4ff2568.268148" ] ] }, { "id": "6c8f2ae3.a77dac", "type": "http request", "z": "b711ce7f.e971", "name": "5 an", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/5/on", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1590, "y": 140, "wires": [ [] ] }, { "id": "9c37efaf.2b901", "type": "http request", "z": "b711ce7f.e971", "name": "5 aus", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/5/off", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1750, "y": 200, "wires": [ [] ] }, { "id": "f04b95d5.bc429", "type": "alexa-home", "z": "b711ce7f.e971", "conf": "3a1d471a.e6e498", "device": "99355", "acknoledge": true, "name": "Scheinwerfer", "topic": "Scheinwerfer", "x": 190, "y": 780, "wires": [ [ "d433b542.088f48" ] ] }, { "id": "84365e57.6a271", "type": "alexa-home", "z": "b711ce7f.e971", "conf": "3a1d471a.e6e498", "device": "99356", "acknoledge": true, "name": "Scheinwerfer blau", "topic": "Scheinwerferblau", "x": 190, "y": 860, "wires": [ [ "ed32059f.cffbd8" ] ] }, { "id": "81089ae1.392f68", "type": "alexa-home", "z": "b711ce7f.e971", "conf": "3a1d471a.e6e498", "device": "99357", "acknoledge": true, "name": "Scheinwerfer weiss", "topic": "", "x": 190, "y": 920, "wires": [ [ "488d308.a0b8b5" ] ] }, { "id": "771d98cd.fbda98", "type": "switch", "z": "b711ce7f.e971", "name": "An/Aus", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "true", "vt": "str" }, { "t": "eq", "v": "false", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 1380, "y": 400, "wires": [ [ "82126305.cb12b8", "ef4c88c3.aa231", "d459d03d.80a5d" ], [ "a6df89bf.1a1798", "2fa014d0.33bdcc", "612e164f.220ac8" ] ] }, { "id": "82126305.cb12b8", "type": "http request", "z": "b711ce7f.e971", "name": "4 an", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/4/on", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1590, "y": 360, "wires": [ [] ] }, { "id": "a6df89bf.1a1798", "type": "http request", "z": "b711ce7f.e971", "name": "5 aus", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/5/off", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1610, "y": 440, "wires": [ [] ] }, { "id": "a5992ab5.8e2f3", "type": "ui_switch", "z": "b711ce7f.e971", "name": "", "label": "Scheinwerfer blau", "tooltip": "", "group": "78e344c2.6b1084", "order": 3, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "Sb", "style": "", "onvalue": "true", "onvalueType": "str", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "str", "officon": "", "offcolor": "", "x": 1030, "y": 400, "wires": [ [ "6e09426d.f53e34", "771d98cd.fbda98" ] ] }, { "id": "1f1b51ba.b2627e", "type": "switch", "z": "b711ce7f.e971", "name": "An/Aus", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "true", "vt": "str" }, { "t": "eq", "v": "false", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 1340, "y": 560, "wires": [ [ "c2409428.27a52", "d8ee941.c7fece8", "825e87bc.f672f8" ], [ "bfba156d.96b768", "68d55367.2a15fc", "bf45287b.2b45d8" ] ] }, { "id": "c2409428.27a52", "type": "http request", "z": "b711ce7f.e971", "name": "16 an", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/16/on", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1590, "y": 540, "wires": [ [] ] }, { "id": "bfba156d.96b768", "type": "http request", "z": "b711ce7f.e971", "name": "0 aus", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/0/off", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1590, "y": 660, "wires": [ [] ] }, { "id": "66ee2479.2abc44", "type": "ui_switch", "z": "b711ce7f.e971", "name": "Scheinwerfer weiss", "label": "Scheinwerfer weiss", "tooltip": "", "group": "78e344c2.6b1084", "order": 4, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "Sw", "style": "", "onvalue": "true", "onvalueType": "str", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "str", "officon": "", "offcolor": "", "x": 1030, "y": 560, "wires": [ [ "d59b38b5.166b2", "1f1b51ba.b2627e" ] ] }, { "id": "70ae09bc.c83f58", "type": "ioBroker in", "z": "b711ce7f.e971", "name": "", "topic": "worx.0.2019301984030032683E.mower.state", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "true", "x": 210, "y": 160, "wires": [ [ "cd5ba19e.f0fea" ] ] }, { "id": "e51e9d29.56eeb8", "type": "ioBroker out", "z": "b711ce7f.e971", "name": "", "topic": "0_userdata.0.Zeitschaltung", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 520, "y": 1240, "wires": [] }, { "id": "7639df4e.2e0228", "type": "ioBroker in", "z": "b711ce7f.e971", "name": "", "topic": "0_userdata.0.Zeitschaltung", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "true", "x": 160, "y": 220, "wires": [ [ "cd5ba19e.f0fea" ] ] }, { "id": "634db1ca.e4962", "type": "comment", "z": "b711ce7f.e971", "name": "Zeit setzen", "info": "", "x": 340, "y": 1060, "wires": [] }, { "id": "d433b542.088f48", "type": "ioBroker out", "z": "b711ce7f.e971", "name": "Scheinwerfer Setzen", "topic": "alexa2.0.Smart-Home-Devices.02823735-7e29-4bb5-af99-273d5d042e6b.powerState", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 480, "y": 780, "wires": [] }, { "id": "47a4a3b5.fa8b94", "type": "ioBroker in", "z": "b711ce7f.e971", "name": "Status Scheinwerfer", "topic": "alexa2.0.Smart-Home-Devices.02823735-7e29-4bb5-af99-273d5d042e6b.powerState", "payloadType": "value", "onlyack": false, "func": "all", "gap": "", "fireOnStart": "true", "x": 130, "y": 280, "wires": [ [ "93b2bbb4.bc2e9" ] ] }, { "id": "e1cae345.307b08", "type": "ioBroker in", "z": "b711ce7f.e971", "name": "Status Scheinwerfer(gesetzt", "topic": "0_userdata.0.Scheinwerfer(gesetzt)", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "x": 160, "y": 400, "wires": [ [ "a5992ab5.8e2f3" ] ] }, { "id": "5d503b0d.63b384", "type": "ioBroker in", "z": "b711ce7f.e971", "name": "Status Scheinwerfer(gesetzt", "topic": "0_userdata.0.Scheinwerfer(gesetzt)", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "x": 160, "y": 520, "wires": [ [ "66ee2479.2abc44" ] ] }, { "id": "e463c4e2.ce23b8", "type": "ioBroker out", "z": "b711ce7f.e971", "name": "Scheinwerfer Setzen", "topic": "0_userdata.0.Scheinwerfer(gesetzt)", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1780, "y": 140, "wires": [] }, { "id": "758d64c6.95e3a4", "type": "ioBroker in", "z": "b711ce7f.e971", "name": "Status weiss", "topic": "alexa2.0.Smart-Home-Devices.fceb6332-f21d-427b-a53a-0b3af0b9c17e.powerState", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "false", "x": 130, "y": 580, "wires": [ [ "66ee2479.2abc44" ] ] }, { "id": "4876bcfe.2c021c", "type": "ioBroker in", "z": "b711ce7f.e971", "name": "Status Blau", "topic": "alexa2.0.Smart-Home-Devices.5ab4a390-7e1d-4b87-9415-2784934501f7.powerState", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "false", "x": 830, "y": 440, "wires": [ [ "a5992ab5.8e2f3" ] ] }, { "id": "ed32059f.cffbd8", "type": "ioBroker out", "z": "b711ce7f.e971", "name": "Blau setzen", "topic": "alexa2.0.Smart-Home-Devices.5ab4a390-7e1d-4b87-9415-2784934501f7.powerState", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 470, "y": 860, "wires": [] }, { "id": "488d308.a0b8b5", "type": "ioBroker out", "z": "b711ce7f.e971", "name": "Weiss setzen", "topic": "alexa2.0.Smart-Home-Devices.fceb6332-f21d-427b-a53a-0b3af0b9c17e.powerState", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 470, "y": 920, "wires": [] }, { "id": "55c354dc.346d64", "type": "http request", "z": "b711ce7f.e971", "name": "4 an", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/4/on", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1590, "y": 100, "wires": [ [] ] }, { "id": "36d3b852.67754", "type": "http request", "z": "b711ce7f.e971", "name": "16 an", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/16/on", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1590, "y": 60, "wires": [ [] ] }, { "id": "5210013d.2e3868", "type": "http request", "z": "b711ce7f.e971", "name": "0 an", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/0/on", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1590, "y": 20, "wires": [ [] ] }, { "id": "d59a104f.e5d848", "type": "http request", "z": "b711ce7f.e971", "name": "4 aus", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/4/off", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1750, "y": 240, "wires": [ [] ] }, { "id": "db3a4d40.6f735", "type": "http request", "z": "b711ce7f.e971", "name": "16 aus", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/16/off", "tls": "", "persist": true, "proxy": "", "authType": "", "x": 1750, "y": 280, "wires": [ [] ] }, { "id": "92eda9de.37bfe", "type": "http request", "z": "b711ce7f.e971", "name": "0 aus", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/0/off", "tls": "", "persist": true, "proxy": "", "authType": "", "x": 1750, "y": 320, "wires": [ [] ] }, { "id": "ef4c88c3.aa231", "type": "http request", "z": "b711ce7f.e971", "name": "5 an", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/5/on", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1590, "y": 400, "wires": [ [] ] }, { "id": "2fa014d0.33bdcc", "type": "http request", "z": "b711ce7f.e971", "name": "4 aus", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/4/off", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1630, "y": 480, "wires": [ [] ] }, { "id": "d8ee941.c7fece8", "type": "http request", "z": "b711ce7f.e971", "name": "0 an", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/0/on", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1590, "y": 580, "wires": [ [] ] }, { "id": "68d55367.2a15fc", "type": "http request", "z": "b711ce7f.e971", "name": "16 aus", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://192.168.2.72/16/off", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1590, "y": 700, "wires": [ [] ] }, { "id": "6e09426d.f53e34", "type": "ioBroker out", "z": "b711ce7f.e971", "name": "Scheinwerferblau setzen", "topic": "0_userdata.0.Scheinwerferblau(gesetzt)", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1290, "y": 320, "wires": [] }, { "id": "d59b38b5.166b2", "type": "ioBroker out", "z": "b711ce7f.e971", "name": "Scheinwerferweiss Setzen", "topic": "0_userdata.0.Scheinwerferweiss(gesetzt)", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1290, "y": 500, "wires": [] }, { "id": "f877dafe.68ab08", "type": "ui_button", "z": "b711ce7f.e971", "name": "", "group": "78e344c2.6b1084", "order": 1, "width": 0, "height": 0, "passthru": false, "label": "Alle an", "tooltip": "", "color": "", "bgcolor": "green", "icon": "", "payload": "true", "payloadType": "str", "topic": "", "x": 1130, "y": 100, "wires": [ [ "93b2bbb4.bc2e9" ] ] }, { "id": "ade7a290.8c87f8", "type": "ui_button", "z": "b711ce7f.e971", "name": "", "group": "78e344c2.6b1084", "order": 2, "width": 0, "height": 0, "passthru": false, "label": "Alle aus", "tooltip": "", "color": "", "bgcolor": "", "icon": "", "payload": "false", "payloadType": "str", "topic": "", "x": 1020, "y": 140, "wires": [ [ "93b2bbb4.bc2e9" ] ] }, { "id": "cd5ba19e.f0fea", "type": "BooleanLogic", "z": "b711ce7f.e971", "name": "", "operation": "AND", "inputCount": "2", "topic": "result", "x": 700, "y": 180, "wires": [ [ "d6d18423.613a48" ] ] }, { "id": "1f8eb598.78f68a", "type": "ioBroker get", "z": "b711ce7f.e971", "name": "Status Robbi", "topic": "worx.0.2019301984030032683E.mower.status", "attrname": "payload", "payloadType": "value", "x": 510, "y": 340, "wires": [ [ "b60b2736.27ce38" ] ] }, { "id": "d6d18423.613a48", "type": "change", "z": "b711ce7f.e971", "name": "Converter", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "true", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 920, "y": 200, "wires": [ [ "93b2bbb4.bc2e9" ] ] }, { "id": "74998d8a.8fc354", "type": "change", "z": "b711ce7f.e971", "name": "Converter", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "1", "fromt": "str", "to": "false", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 940, "y": 320, "wires": [ [ "93b2bbb4.bc2e9" ] ] }, { "id": "7fd31fb8.ff1a68", "type": "inject", "z": "b711ce7f.e971", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "*/1 18-23 * * *", "once": false, "onceDelay": 0.1, "x": 330, "y": 320, "wires": [ [ "1f8eb598.78f68a" ] ] }, { "id": "cd81ac4d.5fc17", "type": "inject", "z": "b711ce7f.e971", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "*/1 0-8 * * *", "once": false, "onceDelay": 0.1, "x": 330, "y": 360, "wires": [ [ "1f8eb598.78f68a" ] ] }, { "id": "b60b2736.27ce38", "type": "trigger", "z": "b711ce7f.e971", "op1": "1", "op2": "0", "op1type": "str", "op2type": "str", "duration": "0", "extend": false, "units": "ms", "reset": "7", "bytopic": "all", "name": "", "x": 710, "y": 340, "wires": [ [ "74998d8a.8fc354" ] ] }, { "id": "f1aac125.c59d8", "type": "change", "z": "b711ce7f.e971", "name": "Scheinwerfer ein", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "str", "to": "Scheinwerfer ein", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1850, "y": 80, "wires": [ [ "2ffdfc57.488ec4", "b2e566da.a0ace8", "d34b2e2a.21e9" ] ] }, { "id": "2ffdfc57.488ec4", "type": "ui_audio", "z": "b711ce7f.e971", "name": "", "group": "78e344c2.6b1084", "voice": "de-DE", "always": true, "x": 2340, "y": 320, "wires": [] }, { "id": "a4ff2568.268148", "type": "change", "z": "b711ce7f.e971", "name": "Scheinwerfer aus", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "str", "to": "Scheinwerfer aus", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1910, "y": 300, "wires": [ [ "2ffdfc57.488ec4", "b2e566da.a0ace8", "d34b2e2a.21e9" ] ] }, { "id": "d459d03d.80a5d", "type": "change", "z": "b711ce7f.e971", "name": "Blau ein", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "str", "to": "Blau ein", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1800, "y": 420, "wires": [ [ "2ffdfc57.488ec4", "dbc13eab.009fe", "a34f4b42.5e4368" ] ] }, { "id": "825e87bc.f672f8", "type": "change", "z": "b711ce7f.e971", "name": "Weiß ein", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "str", "to": "Weiß ein", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1780, "y": 540, "wires": [ [ "2ffdfc57.488ec4", "f6c04c9b.6fbf6", "44a54e19.7989c" ] ] }, { "id": "612e164f.220ac8", "type": "change", "z": "b711ce7f.e971", "name": "Blau aus", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "str", "to": "Blau aus", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1800, "y": 460, "wires": [ [ "2ffdfc57.488ec4", "dbc13eab.009fe", "a34f4b42.5e4368" ] ] }, { "id": "bf45287b.2b45d8", "type": "change", "z": "b711ce7f.e971", "name": "Weiß aus", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "str", "to": "Weiß aus", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1780, "y": 660, "wires": [ [ "2ffdfc57.488ec4", "f6c04c9b.6fbf6", "44a54e19.7989c" ] ] }, { "id": "b2e566da.a0ace8", "type": "ioBroker out", "z": "b711ce7f.e971", "d": true, "name": "Alexa Spracheingabe", "topic": "alexa2.0.Echo-Devices.G090U61091855FLT.Commands.speak", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 2360, "y": 380, "wires": [] }, { "id": "d34b2e2a.21e9", "type": "ioBroker out", "z": "b711ce7f.e971", "d": true, "name": "Alexa Spracheingabe", "topic": "alexa2.0.Echo-Devices.G070VM1695231NVB.Commands.speak", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 2360, "y": 440, "wires": [] }, { "id": "dbc13eab.009fe", "type": "delay", "z": "b711ce7f.e971", "name": "", "pauseType": "delay", "timeout": "2", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 2100, "y": 520, "wires": [ [ "d34b2e2a.21e9" ] ] }, { "id": "f6c04c9b.6fbf6", "type": "delay", "z": "b711ce7f.e971", "name": "", "pauseType": "delay", "timeout": "4", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 2100, "y": 640, "wires": [ [ "d34b2e2a.21e9" ] ] }, { "id": "a34f4b42.5e4368", "type": "delay", "z": "b711ce7f.e971", "name": "", "pauseType": "delay", "timeout": "2", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 2100, "y": 560, "wires": [ [ "b2e566da.a0ace8" ] ] }, { "id": "44a54e19.7989c", "type": "delay", "z": "b711ce7f.e971", "name": "", "pauseType": "delay", "timeout": "4", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 2100, "y": 600, "wires": [ [ "b2e566da.a0ace8" ] ] }, { "id": "3a1d471a.e6e498", "type": "alexa-home-conf", "z": "", "username": "cosmicbase" }, { "id": "78e344c2.6b1084", "type": "ui_group", "z": "", "name": "Scheinwerfer", "tab": "c7b9404b.dd5a88", "order": 1, "disp": true, "width": "6", "collapse": false }, { "id": "c7b9404b.dd5a88", "type": "ui_tab", "z": "", "name": "Haus", "icon": "dashboard", "order": 1, "disabled": false, "hidden": false } ]