Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaVerskriptet... Oder verblockliet...

    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

    JavaVerskriptet... Oder verblockliet...

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active last edited by

      Javascript schimpft mit mir:

      2020-10-06 09:41:42.763  - ESC[33mwarnESC[39m: javascript.0 (881) You are assigning a object to the state "alexa2.0.Echo-Devices.4cf6992324914351906e0f47463b391a.Commands.speak" which expects a string. Please fix your code to use a string or change the state type to object. This warning might become an error in future versions.
      2020-10-06 09:41:42.832  - ESC[33mwarnESC[39m: javascript.0 (881)     at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1358:20)
      2020-10-06 09:41:42.834  - ESC[33mwarnESC[39m: javascript.0 (881)     at Object.<anonymous> (script.js.common.tuerklingel_laeutet:7:5)
      2020-10-06 09:41:42.834  - ESC[33mwarnESC[39m: javascript.0 (881)     at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1055:38)
      2020-10-06 09:41:42.834  - ESC[33mwarnESC[39m: javascript.0 (881)     at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:472:25)
      2020-10-06 09:41:42.835  - ESC[33mwarnESC[39m: javascript.0 (881)     at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5384:37)
      2020-10-06 09:41:42.835  - ESC[33mwarnESC[39m: javascript.0 (881)     at processImmediate (internal/timers.js:461:21)
      

      Das stammt aus einem Blockly, ich weiß aber nicht wie ich es besser machen kann:

      9558b080-825b-48cb-b4b6-208899db42b2-image.png

      Der untere Teil, wo nichts getan werden soll ist vermutlich auch überflüssig, oder?

      Glasfaser 1 Reply Last reply Reply Quote 0
      • Glasfaser
        Glasfaser @Thomas Braun last edited by

        @Thomas-Braun sagte in JavaVerskriptet... Oder verblockliet...:

        .........................Commands.speak" which expects a string. Please fix your code to use a string or change the state type to object. This warning might become an error in future versions.

        auch überflüssig

        Jipp und auch deshalb die Fehlermeldung da du ein null reinschreibst .

        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Glasfaser last edited by

          @Glasfaser
          Ich bin Kölner, ich darf das!
          Denn "3xNull iss Null bliev Null!"

          Homoran Glasfaser 2 Replies Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @Thomas Braun last edited by

            @Thomas-Braun sagte in JavaVerskriptet... Oder verblockliet...:

            Ich bin Kölner,

            Ach du jröne neune

            1 Reply Last reply Reply Quote 0
            • Glasfaser
              Glasfaser @Thomas Braun last edited by

              @Thomas-Braun

              die null ist im Sinn kein Wort sondern ein State und der Datenpunkt erwartet ein string.

              1.JPG
              2.JPG

              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Glasfaser last edited by

                @Glasfaser
                Dann sagt die Tante ja "Null!"
                Die soll aber einfach den Rand halten.
                Hab es jetzt so:
                3ac69f02-2255-4bca-84b2-6b66330cfc30-image.png

                Und wehe die ist jetzt beleidigt und sagt gar nix mehr, @Glasfaser ! 😛

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

                Support us

                ioBroker
                Community Adapters
                Donate

                434
                Online

                31.8k
                Users

                80.0k
                Topics

                1.3m
                Posts

                javascript
                3
                6
                295
                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