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

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    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 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
                                • T
                                  Thomsguy @paul53 last edited by

                                  @paul53

                                  Stimmt es dann das die Tür jetzt zu ist und im Adapter false steht?

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

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

                                    @paul53

                                    Stimmt es dann das die Tür jetzt zu ist und im Adapter false steht?

                                    Müsste ja, oder. Da nicht Open

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

                                      @thomsguy sagte: Stimmt es dann das die Tür jetzt zu ist und im Adapter false steht?

                                      Ja, jeder andere Wert als "BSH.Common.EnumType.DoorState.Open" liefert false. Der Datenpunkt kennt aber nur zwei Werte (Strings).

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

                                        @paul53

                                        Ok, dann mal schauen wie das so ist wenn dir Tür nachher aufgeht.

                                        Ich danke dir schonmal für die Hilfe

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

                                          @thomsguy

                                          Also so wie es aussieht geht es.
                                          Wie würde es sich denn verhalten wenn da nicht nur Open und Closed drinne stehen würden, sondern mehrere verschieden Texte?

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

                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          932
                                          Online

                                          31.9k
                                          Users

                                          80.1k
                                          Topics

                                          1.3m
                                          Posts

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