Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Node-Red
    5. Nach Ablauf kein false mehr

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Nach Ablauf kein false mehr

    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User @mickym last edited by

      @mickym

      [
         {
             "id": "62a5d243.81232c",
             "type": "trigger",
             "z": "27d94c07.8b5f54",
             "name": "20s keine Bewegung",
             "op1": "",
             "op2": "false",
             "op1type": "nul",
             "op2type": "bool",
             "duration": "20",
             "extend": false,
             "overrideDelay": false,
             "units": "s",
             "reset": "true",
             "bytopic": "all",
             "topic": "topic",
             "outputs": 1,
             "x": 360,
             "y": 1080,
             "wires": [
                 [
                     "b66edc60.2a03b"
                 ]
             ]
         },
         {
             "id": "22a64747.6b6e88",
             "type": "ioBroker out",
             "z": "27d94c07.8b5f54",
             "name": "Deckenlampe FLur EG",
             "topic": "zigbee.0.00124b001d401508.state",
             "ack": "false",
             "autoCreate": "false",
             "stateName": "",
             "role": "",
             "payloadType": "",
             "readonly": "",
             "stateUnit": "",
             "stateMin": "",
             "stateMax": "",
             "x": 980,
             "y": 1000,
             "wires": []
         },
         {
             "id": "6661d04d.5e68b",
             "type": "ioBroker in",
             "z": "27d94c07.8b5f54",
             "name": "Flur EG Tür",
             "topic": "zigbee.0.00158d0001eb5e9f.occupancy",
             "payloadType": "value",
             "onlyack": "",
             "func": "all",
             "gap": "",
             "fireOnStart": "true",
             "x": 110,
             "y": 1020,
             "wires": [
                 [
                     "aa75592f.840ac8"
                 ]
             ]
         },
         {
             "id": "6c4f3c51.a4c304",
             "type": "ioBroker in",
             "z": "27d94c07.8b5f54",
             "name": "Flur EG Garderobe",
             "topic": "zigbee.0.00158d0006ec2d6e.occupancy",
             "payloadType": "value",
             "onlyack": "",
             "func": "all",
             "gap": "",
             "fireOnStart": "true",
             "x": 90,
             "y": 1080,
             "wires": [
                 [
                     "aa75592f.840ac8"
                 ]
             ]
         },
         {
             "id": "41d4e698.b24a18",
             "type": "ioBroker in",
             "z": "27d94c07.8b5f54",
             "name": "Haustür",
             "topic": "zigbee.0.00158d00022b3b92.opened",
             "payloadType": "value",
             "onlyack": "",
             "func": "all",
             "gap": "",
             "fireOnStart": "true",
             "x": 130,
             "y": 960,
             "wires": [
                 [
                     "aa75592f.840ac8"
                 ]
             ]
         },
         {
             "id": "c14c2433.1b3bc8",
             "type": "ioBroker get",
             "z": "27d94c07.8b5f54",
             "name": "Jemand Zuhause",
             "topic": "0_userdata.0.Anwesenheit.Jemand_Zuhause",
             "attrname": "payload",
             "payloadType": "value",
             "x": 730,
             "y": 1000,
             "wires": [
                 [
                     "22a64747.6b6e88"
                 ]
             ]
         },
         {
             "id": "aa75592f.840ac8",
             "type": "switch",
             "z": "27d94c07.8b5f54",
             "name": "Bewegung erkannt",
             "property": "payload",
             "propertyType": "msg",
             "rules": [
                 {
                     "t": "true"
                 },
                 {
                     "t": "false"
                 }
             ],
             "checkall": "true",
             "repair": false,
             "outputs": 2,
             "x": 330,
             "y": 1020,
             "wires": [
                 [
                     "62a5d243.81232c",
                     "23a181c0.0bb0ae"
                 ],
                 [
                     "62a5d243.81232c"
                 ]
             ]
         },
         {
             "id": "a7a7bff4.79da",
             "type": "comment",
             "z": "27d94c07.8b5f54",
             "name": "Hausflur EG",
             "info": "",
             "x": 110,
             "y": 900,
             "wires": []
         },
         {
             "id": "e8d1ac8f.75f74",
             "type": "switch",
             "z": "27d94c07.8b5f54",
             "name": "Hell/Dunkel",
             "property": "payload",
             "propertyType": "msg",
             "rules": [
                 {
                     "t": "lt",
                     "v": "5",
                     "vt": "num"
                 },
                 {
                     "t": "gte",
                     "v": "5",
                     "vt": "num"
                 }
             ],
             "checkall": "true",
             "repair": false,
             "outputs": 2,
             "x": 650,
             "y": 940,
             "wires": [
                 [
                     "13847a72.f76e26"
                 ],
                 [
                     "ea6edec.d7e682"
                 ]
             ]
         },
         {
             "id": "13847a72.f76e26",
             "type": "change",
             "z": "27d94c07.8b5f54",
             "name": "Dunkel",
             "rules": [
                 {
                     "t": "set",
                     "p": "licht_aktiv",
                     "pt": "flow",
                     "to": "Yes",
                     "tot": "str"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 820,
             "y": 920,
             "wires": [
                 []
             ]
         },
         {
             "id": "ea6edec.d7e682",
             "type": "change",
             "z": "27d94c07.8b5f54",
             "name": "Hell",
             "rules": [
                 {
                     "t": "set",
                     "p": "licht_aktiv",
                     "pt": "flow",
                     "to": "No",
                     "tot": "str"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 810,
             "y": 960,
             "wires": [
                 []
             ]
         },
         {
             "id": "d113f998.91ad28",
             "type": "ioBroker in",
             "z": "27d94c07.8b5f54",
             "name": "LUX Flur EG",
             "topic": "zigbee.0.54ef441000019086.illuminance",
             "payloadType": "value",
             "onlyack": "",
             "func": "all",
             "gap": "",
             "fireOnStart": "true",
             "x": 350,
             "y": 940,
             "wires": [
                 [
                     "e8d1ac8f.75f74"
                 ]
             ]
         },
         {
             "id": "23a181c0.0bb0ae",
             "type": "switch",
             "z": "27d94c07.8b5f54",
             "name": "Dunkel",
             "property": "licht_aktiv",
             "propertyType": "flow",
             "rules": [
                 {
                     "t": "eq",
                     "v": "Yes",
                     "vt": "str"
                 }
             ],
             "checkall": "true",
             "repair": false,
             "outputs": 1,
             "x": 540,
             "y": 1000,
             "wires": [
                 [
                     "c14c2433.1b3bc8"
                 ]
             ]
         },
         {
             "id": "b66edc60.2a03b",
             "type": "ioBroker get",
             "z": "27d94c07.8b5f54",
             "name": "Status Deckenlampe",
             "topic": "zigbee.0.00124b001d401508.state",
             "attrname": "payload",
             "payloadType": "value",
             "x": 580,
             "y": 1080,
             "wires": [
                 [
                     "7af4f7ab.83a468"
                 ]
             ]
         },
         {
             "id": "7af4f7ab.83a468",
             "type": "switch",
             "z": "27d94c07.8b5f54",
             "name": "Licht an?",
             "property": "payload",
             "propertyType": "msg",
             "rules": [
                 {
                     "t": "true"
                 }
             ],
             "checkall": "true",
             "repair": false,
             "outputs": 1,
             "x": 760,
             "y": 1080,
             "wires": [
                 [
                     "b53e6abc.99afd8"
                 ]
             ]
         },
         {
             "id": "b53e6abc.99afd8",
             "type": "change",
             "z": "27d94c07.8b5f54",
             "name": "",
             "rules": [
                 {
                     "t": "set",
                     "p": "payload",
                     "pt": "msg",
                     "to": "false",
                     "tot": "bool"
                 },
                 {
                     "t": "set",
                     "p": "licht_aktiv",
                     "pt": "flow",
                     "to": "Yes",
                     "tot": "str"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 930,
             "y": 1080,
             "wires": [
                 [
                     "22a64747.6b6e88"
                 ]
             ]
         }
      ]
      
      mickym 1 Reply Last reply Reply Quote 0
      • mickym
        mickym Most Active @Guest last edited by

        @noah3112 Ja passt so und kann man so machen und passt. Ich würde nur grundsätzlich für solche Abfragen lieber Booleans nehmen, als Strings. Ist nichts falsches - aber hat später ggf. Vorteile mit Booleans zu arbeiten.

        ? 2 Replies Last reply Reply Quote 0
        • ?
          A Former User @mickym last edited by

          @mickym sagte in Nach Ablauf kein false mehr:

          Ja passt so und kann man so machen und passt. Ich würde nur grundsätzlich für solche Abfragen lieber Booleans nehmen, als Strings. Ist nichts falsches - aber hat später ggf. Vorteile mit Booleans zu arbeiten.

          Du meinst jetzt speziell die Flow-Variable!? Okay das war so ein Beispiel aus dem Netz wie so oft wenn man sich an Node Red versucht und nicht weiter kommt 😉

          mickym 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @mickym last edited by

            @mickym Aber auch da könnte ich jetzt alles auf Booleans ändern und mein Beispiel würde immer noch funktionieren?

            1 Reply Last reply Reply Quote 0
            • mickym
              mickym Most Active @Guest last edited by

              @noah3112 Genau statt YES und NO - lieber true und false also statt

              118126d3-d770-49d7-bd66-aa1e11a62545-image.png

              lieber

              31d2371e-7367-43ae-af52-0ae532aae938-image.png

              und dann halt im switch statt

              18210d11-9f0a-4d6d-b799-0ceaa1d3ceee-image.png

              lieber

              006bde40-88ac-4187-9e37-6fab71edd976-image.png

              Wie gesagt, dass ist alles kein Fehler - aber hilft ggf. später - falls Du doch mal Function Nodes oder Logiken brauchst besser handhabbar.

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @mickym last edited by

                @mickym Komisch jetzt funktioniert der Flow aber nicht mehr...

                [
                    {
                        "id": "62a5d243.81232c",
                        "type": "trigger",
                        "z": "27d94c07.8b5f54",
                        "name": "20s keine Bewegung",
                        "op1": "",
                        "op2": "false",
                        "op1type": "nul",
                        "op2type": "bool",
                        "duration": "20",
                        "extend": false,
                        "overrideDelay": false,
                        "units": "s",
                        "reset": "true",
                        "bytopic": "all",
                        "topic": "topic",
                        "outputs": 1,
                        "x": 360,
                        "y": 1080,
                        "wires": [
                            [
                                "b66edc60.2a03b"
                            ]
                        ]
                    },
                    {
                        "id": "22a64747.6b6e88",
                        "type": "ioBroker out",
                        "z": "27d94c07.8b5f54",
                        "name": "Deckenlampe FLur EG",
                        "topic": "zigbee.0.00124b001d401508.state",
                        "ack": "false",
                        "autoCreate": "false",
                        "stateName": "",
                        "role": "",
                        "payloadType": "",
                        "readonly": "",
                        "stateUnit": "",
                        "stateMin": "",
                        "stateMax": "",
                        "x": 980,
                        "y": 1000,
                        "wires": []
                    },
                    {
                        "id": "6661d04d.5e68b",
                        "type": "ioBroker in",
                        "z": "27d94c07.8b5f54",
                        "name": "Flur EG Tür",
                        "topic": "zigbee.0.00158d0001eb5e9f.occupancy",
                        "payloadType": "value",
                        "onlyack": "",
                        "func": "all",
                        "gap": "",
                        "fireOnStart": "true",
                        "x": 110,
                        "y": 1020,
                        "wires": [
                            [
                                "aa75592f.840ac8"
                            ]
                        ]
                    },
                    {
                        "id": "6c4f3c51.a4c304",
                        "type": "ioBroker in",
                        "z": "27d94c07.8b5f54",
                        "name": "Flur EG Garderobe",
                        "topic": "zigbee.0.00158d0006ec2d6e.occupancy",
                        "payloadType": "value",
                        "onlyack": "",
                        "func": "all",
                        "gap": "",
                        "fireOnStart": "true",
                        "x": 90,
                        "y": 1080,
                        "wires": [
                            [
                                "aa75592f.840ac8"
                            ]
                        ]
                    },
                    {
                        "id": "41d4e698.b24a18",
                        "type": "ioBroker in",
                        "z": "27d94c07.8b5f54",
                        "name": "Haustür",
                        "topic": "zigbee.0.00158d00022b3b92.opened",
                        "payloadType": "value",
                        "onlyack": "",
                        "func": "all",
                        "gap": "",
                        "fireOnStart": "true",
                        "x": 130,
                        "y": 960,
                        "wires": [
                            [
                                "aa75592f.840ac8"
                            ]
                        ]
                    },
                    {
                        "id": "c14c2433.1b3bc8",
                        "type": "ioBroker get",
                        "z": "27d94c07.8b5f54",
                        "name": "Jemand Zuhause",
                        "topic": "0_userdata.0.Anwesenheit.Jemand_Zuhause",
                        "attrname": "payload",
                        "payloadType": "value",
                        "x": 730,
                        "y": 1000,
                        "wires": [
                            [
                                "22a64747.6b6e88"
                            ]
                        ]
                    },
                    {
                        "id": "aa75592f.840ac8",
                        "type": "switch",
                        "z": "27d94c07.8b5f54",
                        "name": "Bewegung erkannt",
                        "property": "payload",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "true"
                            },
                            {
                                "t": "false"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 2,
                        "x": 330,
                        "y": 1020,
                        "wires": [
                            [
                                "62a5d243.81232c",
                                "23a181c0.0bb0ae"
                            ],
                            [
                                "62a5d243.81232c"
                            ]
                        ]
                    },
                    {
                        "id": "a7a7bff4.79da",
                        "type": "comment",
                        "z": "27d94c07.8b5f54",
                        "name": "Hausflur EG",
                        "info": "",
                        "x": 110,
                        "y": 900,
                        "wires": []
                    },
                    {
                        "id": "e8d1ac8f.75f74",
                        "type": "switch",
                        "z": "27d94c07.8b5f54",
                        "name": "Hell/Dunkel",
                        "property": "payload",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "lt",
                                "v": "5",
                                "vt": "num"
                            },
                            {
                                "t": "gte",
                                "v": "5",
                                "vt": "num"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 2,
                        "x": 650,
                        "y": 940,
                        "wires": [
                            [
                                "13847a72.f76e26"
                            ],
                            [
                                "ea6edec.d7e682"
                            ]
                        ]
                    },
                    {
                        "id": "13847a72.f76e26",
                        "type": "change",
                        "z": "27d94c07.8b5f54",
                        "name": "Dunkel",
                        "rules": [
                            {
                                "t": "set",
                                "p": "licht_aktiv",
                                "pt": "flow",
                                "to": "true",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 820,
                        "y": 920,
                        "wires": [
                            []
                        ]
                    },
                    {
                        "id": "ea6edec.d7e682",
                        "type": "change",
                        "z": "27d94c07.8b5f54",
                        "name": "Hell",
                        "rules": [
                            {
                                "t": "set",
                                "p": "licht_aktiv",
                                "pt": "flow",
                                "to": "false",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 810,
                        "y": 960,
                        "wires": [
                            []
                        ]
                    },
                    {
                        "id": "d113f998.91ad28",
                        "type": "ioBroker in",
                        "z": "27d94c07.8b5f54",
                        "name": "LUX Flur EG",
                        "topic": "zigbee.0.54ef441000019086.illuminance",
                        "payloadType": "value",
                        "onlyack": "",
                        "func": "all",
                        "gap": "",
                        "fireOnStart": "true",
                        "x": 350,
                        "y": 940,
                        "wires": [
                            [
                                "e8d1ac8f.75f74"
                            ]
                        ]
                    },
                    {
                        "id": "23a181c0.0bb0ae",
                        "type": "switch",
                        "z": "27d94c07.8b5f54",
                        "name": "Dunkel",
                        "property": "licht_aktiv",
                        "propertyType": "flow",
                        "rules": [
                            {
                                "t": "true"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 1,
                        "x": 540,
                        "y": 1000,
                        "wires": [
                            [
                                "c14c2433.1b3bc8"
                            ]
                        ]
                    },
                    {
                        "id": "b66edc60.2a03b",
                        "type": "ioBroker get",
                        "z": "27d94c07.8b5f54",
                        "name": "Status Deckenlampe",
                        "topic": "zigbee.0.00124b001d401508.state",
                        "attrname": "payload",
                        "payloadType": "value",
                        "x": 580,
                        "y": 1080,
                        "wires": [
                            [
                                "7af4f7ab.83a468"
                            ]
                        ]
                    },
                    {
                        "id": "7af4f7ab.83a468",
                        "type": "switch",
                        "z": "27d94c07.8b5f54",
                        "name": "Licht an?",
                        "property": "payload",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "true"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 1,
                        "x": 760,
                        "y": 1080,
                        "wires": [
                            [
                                "b53e6abc.99afd8"
                            ]
                        ]
                    },
                    {
                        "id": "b53e6abc.99afd8",
                        "type": "change",
                        "z": "27d94c07.8b5f54",
                        "name": "",
                        "rules": [
                            {
                                "t": "set",
                                "p": "payload",
                                "pt": "msg",
                                "to": "false",
                                "tot": "bool"
                            },
                            {
                                "t": "set",
                                "p": "licht_aktiv",
                                "pt": "flow",
                                "to": "true",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 930,
                        "y": 1080,
                        "wires": [
                            [
                                "22a64747.6b6e88"
                            ]
                        ]
                    }
                ]
                

                Habe ich etwas übersehen?

                mickym 1 Reply Last reply Reply Quote 0
                • mickym
                  mickym Most Active @Guest last edited by mickym

                  @noah3112 Auf den ersten Blick habe ich nichts gesehen, kann aber sein, dass Du noch die alten Strings in Deiner Flow Variablen hast. Hast Du die auch mal gelöscht bwz geschaut, was gerade drin steht? (Kontextmenü und aktualisieren!!)

                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @mickym last edited by

                    @mickym Da stand tatsächlich noch "Yes" in der Variable. Sollte das hier

                    af46b48e-b5f0-4177-a966-176061798c9b-image.png

                    nicht dafür sorgen das ich einen Wert (LUX Wert) beim Start vom Sensor bekomme?

                    mickym 1 Reply Last reply Reply Quote 0
                    • mickym
                      mickym Most Active @Guest last edited by mickym

                      @noah3112 Nein ist nur wenn der Flow neu gestartet wird oder Du an dieser Node was machst. Du kannst auch beim Deploy wenn Du das willst - alle Flows neustarten auswählen. Solange Du noch nicht so viel hast - ist das weniger problematisch. Solange die aber nicht anfasst und Du nur die geänderten Nodes übernimmst:

                      ec1db3ef-ca6e-4284-a0ca-b06d589651dd-image.png

                      dann machen diese Nodes erst mal nichts - da es für sie kein Neustart ist. Jede Node hat ihr Eigenleben. 🙂

                      ? 3 Replies Last reply Reply Quote 0
                      • ?
                        A Former User @mickym last edited by

                        @mickym Aber genau das habe ich doch getan. Ich habe den Flow aktiv geändert in dem ich alles aus Booleans gesetzt habe und dann Deployt habe. Irgendwie stehe ich auf dem Schlauch...

                        1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User @mickym last edited by

                          @mickym Ach sorry ich stehe auf geänderte Nodes...alles klar

                          mickym 1 Reply Last reply Reply Quote 0
                          • mickym
                            mickym Most Active @Guest last edited by mickym

                            @noah3112 sagte in Nach Ablauf kein false mehr:

                            @mickym Ach sorry ich stehe auf geänderte Nodes...alles klar

                            OK und die iobroker IN Nodes hast Du nicht geändert - da diese mit den Booleans nichts zu tun hat. 😉 😉 Im Übrigen ist das nicht tragisch - nur so lernt man die unterschiedlichen Optionen kennen. 🙂

                            ? 1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User @mickym last edited by

                              @mickym Okay ich glaub das wars für heute 😉 Wie schon so oft vielen Dank für deine Hilfe. Das nächste Problem kommt bestimmt 🙂

                              1 Reply Last reply Reply Quote 0
                              • ?
                                A Former User @mickym last edited by

                                @mickym Hier "Steelseries Widgets im NodeRed Dashboard nutzen" komme ich auch nicht so richtig weiter. Das Beispiel hat bei mir nicht funktioniert. Aber da werde ich dich im entsprechenden Thema nerven 😉
                                Einen schönen Abend noch.

                                mickym 1 Reply Last reply Reply Quote 0
                                • mickym
                                  mickym Most Active @Guest last edited by

                                  @noah3112 Jo Dir auch schönen Abend - und falls wir uns nicht mehr sprechen - schöne Geschenke und frohe Weihnachten morgen.

                                  ? 1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User @mickym last edited by

                                    @mickym Ach ja Weihnachten kommt ja auch noch 🤣Das wünsche ich dir auch.

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post

                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate

                                    699
                                    Online

                                    31.7k
                                    Users

                                    79.8k
                                    Topics

                                    1.3m
                                    Posts

                                    4
                                    36
                                    829
                                    Loading More Posts
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    Community
                                    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                    The ioBroker Community 2014-2023
                                    logo