Navigation

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

    NEWS

    • Amazon Alexa - ioBroker Skill läuft aus ?

    • Monatsrückblick – September 2025

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    Warn im Skript

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

      Re: Warn im Script

      Hallo, ich wollte per skript einmal abprüfen, ob der State Wert auf true oder false ist. Bei jedem Aufruf kommt die Fehlermeldung, dass State nicht gefunden wurde.

      if(getState("hm-rpc.0.OEQ1984996:1.STATE").val)
      {
      }

      Fehler:

      javascript.0 2020-10-24 14:51:11.959 warn (16332) at processImmediate (timers.js:658:5)
      javascript.0 2020-10-24 14:51:11.959 warn (16332) at tryOnImmediate (timers.js:676:5)
      javascript.0 2020-10-24 14:51:11.959 warn (16332) at runCallback (timers.js:705:18)
      javascript.0 2020-10-24 14:51:11.958 warn (16332) at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5384:37)
      javascript.0 2020-10-24 14:51:11.958 warn (16332) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:469:25)
      javascript.0 2020-10-24 14:51:11.958 warn (16332) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1065:38)
      javascript.0 2020-10-24 14:51:11.958 warn (16332) at Object.<anonymous> (script.js.Ton_bei_klingeln:62:12)
      javascript.0 2020-10-24 14:51:11.957 warn (16332) getState "hm-rpc.0.OEQ1984996:1.STATE" not found (3)

      Was mache ich falsch?

      UncleSam 1 Reply Last reply Reply Quote 0
      • bahnuhr
        bahnuhr Forum Testing Most Active last edited by

        @boy sagte in Warn im Skript:

        getState "hm-rpc.0.OEQ1984996:1.STATE" not found (3)

        steht alles da.

        Das Objekt gibt es nicht.

        1 Reply Last reply Reply Quote 0
        • UncleSam
          UncleSam Developer @boy last edited by UncleSam

          @boy sagte in Warn im Skript:

          hm-rpc.0.OEQ1984996:1.STATE

          Sollte wohl ein . sein, und nicht ein :

          Ich würde immer den Namen von Datenpunkten kopieren (Kopieren Symbol in der Objekt Liste) oder mit der "Datenpunkt einfügen" Funktion im Skript Editor einfügen

          B 2 Replies Last reply Reply Quote 0
          • B
            boy @UncleSam last edited by

            @UncleSam verdammte zucht. Da wäre ich heute gar nicht mehr drauf gekommen.

            Vielen Dank!

            1 Reply Last reply Reply Quote 0
            • B
              boy @UncleSam last edited by

              @UncleSam ja, das werde ich wohl in zukunft tun.

              Danke!

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

              Support us

              ioBroker
              Community Adapters
              Donate

              1.0k
              Online

              32.3k
              Users

              81.0k
              Topics

              1.3m
              Posts

              javascript
              3
              5
              498
              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