Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. String oder Objeckt

    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

    String oder Objeckt

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

      Hallo zusammen,
      ich blicke nicht mehr durch einen Tag ist nichts und dann wieder Meldungen.
      Folgendes Heizungssteuerung:

      Blockly Fensterkontakte:
      39411639-ecc0-404f-b1b5-3aa1223419c4-grafik.png

      Dann die Steuerung selbst (Funktion ist alles ok).
      5e445124-6c9a-4239-a106-6fe2e8fd63dc-grafik.png

      Und nun zu den Warnungen

      2021-11-08 13:30:37.667 - warn: javascript.0 (15391) You are assigning a string to the state "hm-rpc.0.00201A49953689.1.SET_POINT_TEMPERATURE" which expects a number. Please fix your code to use a number or change the state type to string. This warning might become an error in future versions.
      2021-11-08 13:30:37.669 - warn: javascript.0 (15391) at Object.setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1439:20)
      2021-11-08 13:30:37.670 - warn: javascript.0 (15391) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1497:29)
      2021-11-08 13:30:37.670 - warn: javascript.0 (15391) at listOnTimeout (internal/timers.js:556:17)
      2021-11-08 13:30:37.670 - warn: javascript.0 (15391) at processTimers (internal/timers.js:497:7)
      2021-11-08 13:30:37.673 - info: javascript.0 (15391) State value to set for "hm-rpc.0.00201A49953689.1.SET_POINT_TEMPERATURE" has to be type "number" but received type "string" 
      

      MOD-Edit: Code in code-tags gesetzt!

      WAs muss ich wie machen damit dieses verschwindet?
      has to be type "number" but received type "string"

      Danke und sorry für meine unwissenheit

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

        @tobiasp sagte in String oder Objeckt:

        WAs muss ich wie machen damit dieses verschwindet?
        has to be type "number" but received type "string"

        keine Strings (grün) sondern Number-Blöcke (Mathematik, blau) verwenden

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

          @homoran sagte: keine Strings (grün) sondern Number-Blöcke (Mathematik, blau) verwenden

          ... und anstelle von "true" und "false" Logikblöcke wahr bzw. falsch verwenden.

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

            Super danke
            jetzt kapiere ich es und die Meldungen sind weg

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

            Support us

            ioBroker
            Community Adapters
            Donate

            861
            Online

            31.8k
            Users

            80.0k
            Topics

            1.3m
            Posts

            3
            4
            264
            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