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.
    • 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

                            452
                            Online

                            31.9k
                            Users

                            80.1k
                            Topics

                            1.3m
                            Posts

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