Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [|geloest] Javascripte laufen nicht

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [|geloest] Javascripte laufen nicht

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

      Woran kann es liegen, dass die Javascripte nicht laufen? Ich habe ein Script, in dem auf einen Schalter gewartet wird, und dann wird einfach das Licht aktiviert. (Aktor und Sensor von Homematic)

      Gruß

      thomas

      1 Reply Last reply Reply Quote 0
      • AlCalzone
        AlCalzone Developer last edited by

        Poste doch mal die Skripte, dann müssen wir nicht hellsehen 😉

        1 Reply Last reply Reply Quote 0
        • T
          thobastian last edited by

          So sieht es aus:

          on({id: "javascript.0.Technikraum.Homeduino.homeduino_001_D20"}, function (obj) {

          setState("hm-rpc.0.MEQ0651087.2.STATE",!getState("hm-rpc.0.MEQ0651087.2.STATE").val);

          });

          Aber es lief ja eigentlich früher….

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

            @thobastian:

            So sieht es aus:

            on({id: "javascript.0.Technikraum.Homeduino.homeduino_001_D20"}, function (obj) {

            setState("hm-rpc.0.MEQ0651087.2.STATE",!getState("hm-rpc.0.MEQ0651087.2.STATE").val);

            });

            Aber es lief ja eigentlich früher…. `
            Skript aktiviert? Adapter aktiviert?

            on({id: "javascript.0.Technikraum.Homeduino.homeduino_001_D20"}, function (obj) {
               console.log('trigger');
               setState("hm-rpc.0.MEQ0651087.2.STATE",!getState("hm-rpc.0.MEQ0651087.2.STATE").val);
            });
            

            Siehst du die Meldung?

            1 Reply Last reply Reply Quote 0
            • T
              thobastian last edited by

              Jetzt läuft es ! Aus irgendeinen Grund hat sich die ID geändert.

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

              Support us

              ioBroker
              Community Adapters
              Donate

              822
              Online

              31.7k
              Users

              79.8k
              Topics

              1.3m
              Posts

              3
              5
              682
              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