Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. warn: javascript.0 You are assigning a string to the state

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    warn: javascript.0 You are assigning a string to the state

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

      @mipl sagte in warn: javascript.0 You are assigning a string to the state:

      Gibt es noch einen anderen Weg?

      Screenshot !!

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

        @mipl sagte: ich sehe auf dem Bild eine Nachkommastelle

        Wenn eine 0 hinter dem Punkt zu sehen ist, steht ein String im Datenpunkt - auch dann, wenn der DP-Typ "Zahl" ist. Wie kommt der Wert dort hinein?

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

          @mipl sagte in warn: javascript.0 You are assigning a string to the state:

          aber ich sehe auf dem Bild eine Nachkommastelle.

          bei einer ganzen Zahl darf da aber keine stehen.

          @mipl sagte in warn: javascript.0 You are assigning a string to the state:

          Gibt es noch einen anderen Weg?

          Screenshot

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

            @paul53
            Der Wert kann in einer VIS-Seite eingegeben werden:
            df42695a-9c35-45c1-8618-34d3a6736d57-grafik.png

            Ein Screenshot des Blockly ist nicht möglich - viel zu lang. Ausschnitte wären machbar:
            67e75b96-45aa-4942-8e79-015a46b2763f-grafik.png

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

              @mipl sagte: VIS-Seite eingegeben

              Dann schreibt offenbar das Widget (welches?) einen String in den Datenpunkt, obwohl er vom Typ "Zahl" ist.

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

                @paul53 sagte in warn: javascript.0 You are assigning a string to the state:

                das Widget (welches?)

                sieht aber nach Zahl aus.
                Zeichen nach Komma spricht nicht für String

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

                  @paul53
                  scheint so. Hier ein anderer Ausschnitt aus der VIS:
                  2c48a7d5-9483-46a2-a7c5-b366fc2a6da0-grafik.png

                  Edit: Der Eindeutigkeit halber - Bei dem Widget handelt es sich um ein "jqui - input"-Widget. Da ich "String" bei den allgemeinen Einstellungen nicht angehakt habe sollte es eine Zahl sein.

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

                    @homoran
                    Interpretiere ich die "Stille" korrekt, dass es scheinbar keine Lösung gibt? Sollte/kann man das an die Entwickler des Widget melden?

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

                      @mipl sagte: keine Lösung gibt?

                      Es gibt zumindest einen Workaround: Wandle in Blockly die Datenpunktwerte nach Zahl.

                      Blockly_temp.JPG

                      M 1 Reply Last reply Reply Quote 0
                      • V
                        Verblizz last edited by Verblizz

                        War Blödsinn... Paul hatte dasselbe bereits geschrieben

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

                          @paul53
                          ok, danke - werde ich umsetzen.

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          605
                          Online

                          32.0k
                          Users

                          80.4k
                          Topics

                          1.3m
                          Posts

                          5
                          15
                          446
                          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