Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. String State via Blocky ändern

    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

    SOLVED String State via Blocky ändern

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

      @Adnim sagte:

      ein Steuere mit Textmodul : An führt zu einem Roten Wert der keine änderung auslöst

      Datenpunkte mit Rolle "indicator" dienen nur zur Anzeige.

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

        @Adnim sagte:

        Erhalte dann eine Fehlermeldung vom Adapter

        Aber nur, wenn die states im Objekt definiert sind, da Strings mit states nicht vorgesehen sind. Was mir nicht einleuchten will, dass es mit Blockly ohne die states nicht funktioniert.

        Blockly_temp.JPG

        EDIT: Habe mal den Datenpunkt nachgebildet: Es kommen keine Fehlermeldungen.

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

          @paul53 sagte in String State via Blocky ändern:

          dienen nur zur Anzeige.

          Aber im Admin unter objekte kann ich ihn steuern, dort erhalte ich ein dropdown mit den beiden werten

          Screenshot_10.png

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

            @Adnim sagte:

            unter objekte kann ich ihn steuern,

            Wenn es im Reiter "Objekte" funktioniert, dann müssen die Strings in Blockly lauten:

            • "BSH.Common.EnumType.PowerState.On"
            • "BSH.Common.EnumType.PowerState.Standby"

            denn das sind die Werte im Datenpunkt.

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

              @paul53 sagte in String State via Blocky ändern:

              "BSH.Common.EnumType.PowerState.On"

              Das wird nicht bestätigt und die Maschine bleibt auch aus.

              An(BSH.Common.EnumType.PowerState.On)

              Schreibt das Dropdown Menü in den Datenpunkt, wenn ich das per Blocky tue bleibt die Maschine auch aus. Manuell im Admin funktioniert das aber.

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

                @Adnim sagte:

                wenn ich das per Blocky tue bleibt die Maschine auch aus

                In ioBroker sind Zustandstexte (states) zu String-Datenpunkten nicht vorgesehen. Lösche mal die states im Datenpunkt und versuche es dann mit Blockly. Löschen:

                ,
                    "states": {
                      "BSH.Common.EnumType.PowerState.On": "An",
                      "BSH.Common.EnumType.PowerState.Standby": "Standby"
                    }
                
                1 Reply Last reply Reply Quote 0
                • A
                  Adnim last edited by

                  @paul53 sagte in String State via Blocky ändern:

                                                                                                                                              ,                                                                                                                                                                                "states": {                                                                                                                                                                                  "BSH.Common.EnumType.PowerState.On": "An",                                                                                                                                                                                  "BSH.Common.EnumType.PowerState.Standby": "Standby"                                                                                                                                                                                }
                  

                  habe ich versucht, dann kein dropdown menü im Reiter Objekte und es passiert nix wenn ich die strings manuell/via blocky rein kopiere. habe die states wieder reingenommen, dann kann ich wieder manuell im Reiter Objekte die Maschine schalten.

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

                    @Adnim sagte:

                    dann kein dropdown menü im Reiter Objekte

                    Das ist klar, denn das gibt es nur mit states.

                    @Adnim sagte in String State via Blocky ändern:

                    es passiert nix wenn ich die strings manuell/via blocky rein kopiere

                    steuere Objekt mit "BSH.Common.EnumType.PowerState.On" bewirkt keine Reaktion ? Erstaunlich, dass es dann im Reiter "Objekte" funktioniert.

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

                      @paul53 sagte in String State via Blocky ändern:

                      "BSH.Common.EnumType.PowerState.On"

                      Erhalte dann eine Fehlermeldung vom Adapter im Log

                      (19008) 409: Key BSH.Common.Setting.PowerState has unknown enum type or enum member "BSH.Common.EnumType.PowerState.On".

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

                        @Adnim sagte:

                        Erhalte dann eine Fehlermeldung vom Adapter

                        Aber nur, wenn die states im Objekt definiert sind, da Strings mit states nicht vorgesehen sind. Was mir nicht einleuchten will, dass es mit Blockly ohne die states nicht funktioniert.

                        Blockly_temp.JPG

                        EDIT: Habe mal den Datenpunkt nachgebildet: Es kommen keine Fehlermeldungen.

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

                          @paul53 sagte in String State via Blocky ändern:

                          Habe gerade nochmal gespielt, anscheinend hatte ich da was falsch. Funktioniert so, auch wenn die States im String drin bleiben...

                          Danke für die Hilfe!

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          386
                          Online

                          31.9k
                          Users

                          80.3k
                          Topics

                          1.3m
                          Posts

                          blockly
                          2
                          11
                          1515
                          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