Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. 1. Blocky Scipt, brauche Hilfe

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    1. Blocky Scipt, brauche Hilfe

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

      Hallo zusammen,
      Ich habe grade mein 1. Blocky Script erstellt. Ich komme aber nicht weiter. Erhalte immer bei Ausführung einen Fehler.

      Ich möchte das ich eine Email erhalte wenn meine RF Bridge das Signal eines Fensterkontaktes empfängt.

      Istzustand:
      Die RF Bridge empfängt das Signal E88129.

      Bildschirmfoto vom 2020-01-21 11-44-59.png

      Im IOBroker wird dieser Wert auch aktualisiert.

      Bildschirmfoto vom 2020-01-21 11-44-41.png

      Hier das Blocky Script:

      Bildschirmfoto vom 2020-01-21 11-44-14.png

      Wenn ich den Fensterkontakt öffne erhalte ich folgende Fehlermeldung im Blocky Protokoll:

      12:04:26.739	warn	javascript.0 (18323) at Object.<anonymous> (script.js.Briefkasten:4:7)
      

      Im IOBroker Log steht:

      javascript.0	2020-01-21 12:04:26.753	warn	(18323) at processImmediate (timers.js:658:5)
      javascript.0	2020-01-21 12:04:26.752	warn	(18323) at tryOnImmediate (timers.js:676:5)
      javascript.0	2020-01-21 12:04:26.751	warn	(18323) at runCallback (timers.js:705:18)
      javascript.0	2020-01-21 12:04:26.750	warn	(18323) at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:226:41)
      javascript.0	2020-01-21 12:04:26.750	warn	(18323) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4745:37)
      javascript.0	2020-01-21 12:04:26.749	warn	(18323) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:364:25)
      javascript.0	2020-01-21 12:04:26.740	warn	(18323) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:963:38)
      javascript.0	2020-01-21 12:04:26.739	warn	(18323) at Object.<anonymous> (script.js.Briefkasten:4:7)
      javascript.0	2020-01-21 12:04:26.737	warn	(18323) getState "false" not found (3)
      

      Was mache ich falsch? Jemand eine Idee?
      Danke schonmal im voraus!

      Mod-Edit: Code/Log in Code Tags gepackt. Bitte benutzt die Code Tags Funktion -> </>
      Hier gehts zur Hilfe.

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

        @david83 sagte:

        Was mache ich falsch?

        Schau Dir an, was Du vergleichst.

        1 Reply Last reply Reply Quote 0
        • J.A.R.V.I.S.
          J.A.R.V.I.S. Developer last edited by J.A.R.V.I.S.

          @david83

          Du musst erst den Wert holen und dann vergleichen. Jetzt fragst du ob die Objekt ID deinem Wert enspricht und holst dir dann den Wert vom dem Ergebnis, den es nicht gibt.

          1 Reply Last reply Reply Quote 0
          • david83
            david83 last edited by

            Danke! Hat geklappt.

            Bildschirmfoto vom 2020-01-22 08-13-59.png

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

            Support us

            ioBroker
            Community Adapters
            Donate

            760
            Online

            32.0k
            Users

            80.3k
            Topics

            1.3m
            Posts

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