Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. 8 Werte auf False oder TRUE vergleichen...dann setze

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    8 Werte auf False oder TRUE vergleichen...dann setze

    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      Zimbl @paul53 last edited by

      @paul53

      JA dann wird es noch das Problem sein, das TRUE / FALSE bei den letzten 5 genau umgedreht ist.
      Gibt es sowas wie eine Negation die ich vor der Objekt ID setzen kann ?

      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Zimbl last edited by paul53

        @zimbl sagte: Gibt es sowas wie eine Negation

        Ja.
        0 in true und 1 in false:

        Bild_2022-10-08_175435190.png

        Z 2 Replies Last reply Reply Quote 0
        • Z
          Zimbl @paul53 last edited by

          @paul53

          wahnsinn was du da immer so strickst... da kommt doch niemand drauf 🙂

          Also ist es so, das die oberen Werte normal auf TRUE und FALSE abgefragt werden, und die unteren 5 Werte auf 0 und 1 abgefragt werden.

          Aber ich habe bei dem ganzen hin und her, selbst ein Gedankenfehler gemacht....


          Also die oberen GPIO stehen aktuell auf TRUE und die anderen "valve_state" close(1)
          INFO: { "type": "state", "common": { "type": "number", "states": { "0": "open", "1": "close"} "read":
          true, "write": false, "name": "valve_state", "role": "value"

          Wenn also einer von denen auf FALSE oder OPEN(0) dann soll der Wert 12346 geschaltet werden, wenn komplett alle wieder auf TRUE bzw. close(1) stehen, dann soll der Wert 12345 geschaltet werden.

          paul53 1 Reply Last reply Reply Quote 0
          • Z
            Zimbl @paul53 last edited by

            @paul53

            habe das obere jetzt noch mit eingebaut, aber es wird immer noch auf 12345 gesetzt. Es wird auch immer ausgeführt....nur ob es TRUE oder FALSE ist...es wird immer wieder auf 12345 gesetzt.

            1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @Zimbl last edited by paul53

              @zimbl sagte: Wenn also einer von denen auf FALSE oder OPEN(0) dann soll der Wert 12346 geschaltet werden

              Bild_2022-10-08_184834787.png

              Alle true bzw. 1 --> 12345.

              Z 2 Replies Last reply Reply Quote 0
              • Z
                Zimbl @paul53 last edited by

                @paul53

                ich probiere das sofort nochmal.

                1 Reply Last reply Reply Quote 0
                • Z
                  Zimbl @paul53 last edited by

                  @paul53

                  ee9fdaaa-3aa5-4386-b454-c50b6a98f0c8-grafik.png

                  Ich habe das jetzt mal etwas verändert, bzw. für eine andere Geschichte fertiggestellt.

                  Alle Werte die Abgefragt werden, stehen auf "TRUE" bzw. Close (1)
                  Wenn ich jetzt einen Wert verändere auf Open(0) , dann wird 1803 gesendet. Wenn ich diesen
                  wieder verändere und es stehen wieder alle auf "TRUE" und Close(1) wird dennoch der Wert 1803 gesendet.

                  paul53 1 Reply Last reply Reply Quote 0
                  • paul53
                    paul53 @Zimbl last edited by

                    @zimbl sagte: wird dennoch der Wert 1803 gesendet.

                    Ja, weil die ersten 6 Datenpunkte falsch geprüft werden. Richtige Abfrage:

                    Bild_2022-10-08_221915209.png

                    Z 1 Reply Last reply Reply Quote 0
                    • Z
                      Zimbl @paul53 last edited by

                      @paul53

                      weiß jetzt nicht so richtig wo ich deine Lösung einsetzen soll... ?!?!??!

                      so ?

                      646c8fe6-7635-421e-8d73-c2a6f31c922e-grafik.png

                      paul53 1 Reply Last reply Reply Quote 0
                      • paul53
                        paul53 @Zimbl last edited by paul53

                        @zimbl sagte:
                        Die ersten zwei Blöcke in der Schleife löschen.

                        Bild_2022-10-08_223633290.png

                        Z 2 Replies Last reply Reply Quote 0
                        • Z
                          Zimbl @paul53 last edited by

                          @paul53

                          Ausgeführt. Aber es wird immer noch die 1803 gesendet. Egal was ist TRUE / FALSE.

                          4ae51d54-62db-48ef-aed9-9f97d3af1ef4-grafik.png

                          1 Reply Last reply Reply Quote 0
                          • Z
                            Zimbl @paul53 last edited by

                            @paul53

                            Keine Ahnung woran es gelegen hat. Ich habe es nochmal alles neu INIT. Komplett das ganze Skript neu erzeugt und jetzt scheint es zu funktionieren.

                            Ganz ehrlich Paul53, bin sprachlos.

                            Vielen Dank nochmal für deine Hilfe. Echt Super.

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            928
                            Online

                            31.9k
                            Users

                            80.2k
                            Topics

                            1.3m
                            Posts

                            5
                            36
                            969
                            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