Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Blockly erstellen aus z.BSP "open", true oder false machen

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Blockly erstellen aus z.BSP "open", true oder false machen

    This topic has been deleted. Only users with topic management privileges can see it.
    • DJMarc75
      DJMarc75 @Thomsguy last edited by

      @thomsguy

      So MUSS es ja eigentlich funktionieren:

      Screenshot 2023-12-28 131937.png

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

        @djmarc75 sagte: So MUSS es ja eigentlich funktionieren:

        Nein, falscher Vergleichswert. Richtig:

        Blockly_temp.JPG

        Musste es leider aus dem Screenshot abtippen, da nicht in Code tags gepostet.

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

          @paul53

          geht so leider auch nicht.

          Das Script schreibt schon auf den S7 Adapter nichts. Egal ob ich die Variable im S7 Adapter als Bool oder Word mache.

          Ich danke Euch trotzdem für Eure Hilfe.

          DJMarc75 1 Reply Last reply Reply Quote 0
          • DJMarc75
            DJMarc75 @Thomsguy last edited by

            @thomsguy
            jetzt zeig bitte mal Screenshots von DEINEN beiden Skriptversuchen

            T 1 Reply Last reply Reply Quote 0
            • T
              Thomsguy @DJMarc75 last edited by

              @djmarc75

              1. Versuch

              5081f85b-e085-4e6a-b6ae-c8cdd557d91a-grafik.png

              T 1 Reply Last reply Reply Quote 0
              • T
                Thomsguy @Thomsguy last edited by

                @thomsguy

                1. Versuch war wie Paul53 gepostet hat.
                DJMarc75 1 Reply Last reply Reply Quote 0
                • DJMarc75
                  DJMarc75 @Thomsguy last edited by

                  @thomsguy sagte in Blockly erstellen aus z.BSP "open", true oder false machen:

                  war wie Paul53 gepostet hat

                  nicht nacherzählen sondern auch bitte zeigen

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    Thomsguy @DJMarc75 last edited by Thomsguy

                    @djmarc75

                    4affb57c-158d-4282-a738-33d1ac17f3c5-grafik.png

                    DJMarc75 paul53 2 Replies Last reply Reply Quote 0
                    • DJMarc75
                      DJMarc75 @Thomsguy last edited by DJMarc75

                      @thomsguy sagte in Blockly erstellen aus z.BSP "open", true oder false machen:

                      5c-9c55-74935ac4a4d1-grafik.png](/assets/uploads/files/1703767748388-8ef63466-071a-4f5c-9c55-74935ac4a4d1-grafik.png

                      ?
                      Lad nochmal hoch

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

                        @thomsguy
                        Es ist wieder der falsche Vergleichswert!

                        1 Reply Last reply Reply Quote 0
                        • T
                          Thomsguy @DJMarc75 last edited by

                          @djmarc75

                          und so auch

                          5380e860-eeb5-4821-ab10-1298192f683c-grafik.png

                          paul53 T 2 Replies Last reply Reply Quote 0
                          • paul53
                            paul53 @Thomsguy last edited by

                            @thomsguy sagte: und so auch

                            Der Vergleich mit sich selbst liefert immer true.

                            1 Reply Last reply Reply Quote 0
                            • T
                              Thomsguy @Thomsguy last edited by

                              @thomsguy

                              Dann bin ich wohl nicht in der Lage das richtig zu machen.

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

                                @thomsguy

                                Blockly_temp.JPG

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

                                  @paul53

                                  1873e814-461a-4ece-a6b7-3aebc0b3c149-grafik.png

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

                                    @thomsguy
                                    So sollte es funktionieren.

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

                                      @paul53

                                      Und die Variable im S7 Adapter als Word oder Bool?

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

                                        @thomsguy sagte: Variable im S7 Adapter als Word oder Bool?

                                        Bool.

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

                                          @paul53

                                          Hallo,

                                          werde ich mal testen, mir ist nur nicht ganz klar wie da jetzt true und false übergeben wird.
                                          Ich übertrage ja den Wert Open und Closed. Oder bin ich irgendwie aufm Holzweg?

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

                                            @thomsguy sagte: wie da jetzt true und false übergeben wird.

                                            Das Ergebnis eines Vergleichs ist immer true oder false.

                                            @thomsguy sagte in Blockly erstellen aus z.BSP "open", true oder false machen:

                                            Ich übertrage ja den Wert Open und Closed.

                                            Das ist nicht der Wert, sondern der zum Wert gehörende Zustandstext (unter common.states). Der Vergleich wandelt den String-Wert ("BSH...") in einen booleschen Wert.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            523
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            3
                                            41
                                            1471
                                            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