Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Wie frage ich einen Wert ab?

    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

    Wie frage ich einen Wert ab?

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

      @gizi sagte: das sieht so aus:

      So sieht man leider nicht, ob der eigentliche Wert ein String oder eine Zahl ist. Poste bitte die OBJEKTDATEN in Code tags, zumindest das, was unter common.states steht.

      1 Reply Last reply Reply Quote 0
      • Codierknecht
        Codierknecht Developer Most Active @gizi last edited by

        @gizi
        Also sowas hier:
        6fb34188-a065-4b07-a29b-cb86d4eb62f9-image.png
        Aber dann nicht wie hier als Screenshot, sondern den Text rauskopieren und hier in Code-Tags </> posten.

        gizi 1 Reply Last reply Reply Quote 0
        • gizi
          gizi @Codierknecht last edited by

          {
            "type": "state",
            "common": {
              "name": "Betriebsstatus",
              "type": "mixed",
              "role": "indicator",
              "write": true,
              "read": true,
              "unit": "",
              "states": {
                "BSH.Common.EnumType.OperationState.Ready": "Ready",
                "BSH.Common.EnumType.OperationState.Run": "Run",
                "BSH.Common.EnumType.OperationState.Finished": "Finished",
                "BSH.Common.EnumType.OperationState.DelayedStart": "DelayedStart",
                "BSH.Common.EnumType.OperationState.Pause": "Pause"
              }
            },
            "native": {},
            "from": "system.adapter.homeconnect.0",
            "user": "system.user.admin",
            "ts": 1674028859492,
            "_id": "homeconnect.0.BOSCH-WAV28G40-68A40E4438F5.status.BSH_Common_Status_OperationState",
            "acl": {
              "object": 1636,
              "state": 1636,
              "owner": "system.user.admin",
              "ownerGroup": "system.group.administrator"
            }
          }
          
          Homoran 1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @gizi last edited by

            @gizi sagte: Wie frage ich auf den Wert ab?

            falls Wert = "BSH.Common.EnumType.OperationState.Finished"

            1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @gizi last edited by Homoran

              @gizi sagte in Wie frage ich einen Wert ab?:

              "type": "mixed",

              na, Klasse! da konnte sich jemand nicht entscheiden 😉

                  "states": {
                    "BSH.Common.EnumType.OperationState.Ready": "Ready",
                    "BSH.Common.EnumType.OperationState.Run": "Run",
                    "BSH.Common.EnumType.OperationState.Finished": "Finished",
                    "BSH.Common.EnumType.OperationState.DelayedStart": "DelayedStart",
                    "BSH.Common.EnumType.OperationState.Pause": "Pause"
                  }
              

              Ändert der Datenpunkt tatsächlich seine ID?

              Da muss @paul53 weiterhelfen!

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

                @homoran sagte: Ändert der Datenpunkt tatsächlich seine ID?

                Du meinst den Datenpunkt-Typ? Da müsste eigentlich "string" stehen, aber "mixed" passt natürlich auf alles.

                Homoran 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @paul53 last edited by

                  @paul53
                  Nein, ich hielt diese zitierten states für die ID. hazte den EnumType übersehen, weil mir das nichts sagt.

                  gizi 1 Reply Last reply Reply Quote 0
                  • gizi
                    gizi @Homoran last edited by

                    Ja, die ID ändert sich je nach Status der Waschmaschine.... Was genau soll ich da jetzt machen? Ich bin verwirrt 🙂

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

                      @gizi sagte: Was genau soll ich da jetzt machen?

                      Siehe hier

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

                        @paul53 danke!! 🙂

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        726
                        Online

                        31.9k
                        Users

                        80.1k
                        Topics

                        1.3m
                        Posts

                        4
                        13
                        665
                        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