Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [GELOEST]Mit Blocky Rechnen

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    [GELOEST]Mit Blocky Rechnen

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MyMeyer last edited by MyMeyer

      Hallo, habe hier ein einfaches Blocky doch leider macht es nicht das was ich erwartet hätte. Zwei Werte zusammen rechnen und in ein Feld (Objekt) schreiben. Wo liegt meine Gedankenfehler ? Schaut mal bitte rüber.

      Hier das Log:

      javascript.0
      2022-07-06 13:40:01.926 info State value to set for "javascript.0.PV_Autarkie.Auswertung.3_Mittwoch" has to be type "Number" but received type "number"

      javascript.0
      2022-07-06 13:40:01.920 warn at processImmediate (internal/timers.js:464:21)

      javascript.0
      2022-07-06 13:40:01.920 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56)

      javascript.0
      2022-07-06 13:40:01.920 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29)

      javascript.0
      2022-07-06 13:40:01.920 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38)

      javascript.0
      2022-07-06 13:40:01.920 warn at Object.<anonymous> (script.js.PV.PV-Gesamt:18:3)

      javascript.0
      2022-07-06 13:40:01.919 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1437:20)

      javascript.0
      2022-07-06 13:40:01.918 warn You are assigning a number to the state "javascript.0.PV_Autarkie.Auswertung.3_Mittwoch" which expects a Number. Please fix your code to use a Number or change the state type to number. This warning might become an error in future versions.

      82c8027d-47ba-4c56-a04f-62a30b128af2-image.png

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

        @mymeyer sagte: has to be type "Number" but received type "number"

        "type": "number",
        

        in den Objekteigenschaften muss "number" klein geschrieben werden.

        Logs bitte in Code tags posten!

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

        Support us

        ioBroker
        Community Adapters
        Donate

        558
        Online

        32.0k
        Users

        80.5k
        Topics

        1.3m
        Posts

        2
        2
        187
        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