Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Warning beim Aktualisieren von Datenpunkten

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Warning beim Aktualisieren von Datenpunkten

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

      @homoran sagte: wo ist das im Blockly?

      Das ist der "schreibe"-Block.

      H Homoran 2 Replies Last reply Reply Quote 0
      • H
        half @paul53 last edited by

        @paul53 ich weiss

        Es ist das Schreiben der Variable: 0_userdata.0.Shelly.pro4pm_IP-141.Total-0

        Die Variable wird auch geschrieben, aber trotzdem kommt die warnung.

        Aber warum wird die warning geschmissen?
        und wie bekomme ich sie weg?

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

          @paul53 sagte in Warning beim Aktualisieren von Datenpunkten:

          Das ist der "schreibe"-Block.

          aber da finde ich den "nach Text" nicht, oder ist das implizit?

          H paul53 2 Replies Last reply Reply Quote 0
          • H
            half @Homoran last edited by

            @homoran meinst du mit nach text zeile 32?

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

              @homoran sagte: oder ist das implizit?

              Ja.

              Homoran H 2 Replies Last reply Reply Quote 1
              • Homoran
                Homoran Global Moderator Administrators @paul53 last edited by

                @paul53 sagte in Warning beim Aktualisieren von Datenpunkten:

                @homoran sagte: oder ist das implizit?

                Ja.

                Danke!
                dann kann ich ja lange suchen

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

                  @paul53 das ist ein block, den ich rausgezogen hat, der nicht ausgeführt wird.
                  im screeshot oben rechts der einzelne block am anfang des skripts

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

                    @half sagte: Aber warum wird die warning geschmissen?

                    Schau mal im Tab "Protokolle" nach. Dort findet man meist mehr Informationen.
                    Enthält "Total-0" wirklich eine Zeichenkette? Wie sieht JSON aus?

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

                      @paul53 danke, ich glaub ich habs gefunden.

                      You are assigning a number to the state "0_userdata.0.Shelly.pro4pm_IP-141.Total-0" which expects a string. Please fix your code to use a string or change the state type to number. This warning might become an error in future versions.

                      Dann übergab ich das Ganze mal als String. Mal sehen, ob der Fehler dann weg ist.

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

                        @half sagte: Dann übergab ich das Ganze mal als String.

                        Ich hätte common.type des Datenpunktes von "string" in "number" geändert.

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

                          @paul53 hat sowohl als auch funktioniert.
                          habs jetzt den Datenpunkt auf Zahl gesetzt, ist sauberer.

                          Danke, an Alle für die Denkanstöße

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          781
                          Online

                          31.7k
                          Users

                          79.8k
                          Topics

                          1.3m
                          Posts

                          blockly javascript
                          3
                          16
                          851
                          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