Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Alarmanlage -> Instanz javascript.0 stürzt ab nach Trigger

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Alarmanlage -> Instanz javascript.0 stürzt ab nach Trigger

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

      Hi.
      Ich habe mir einige Xiaomi-Fensterkontakte bestellt über die ich gerne einen "kleine" Alarmanlage realisieren möchte.
      Sobald ein Kontakt ausgelöst wird, d.h. der Wert "true" wird und die Alarmanlage aktiviert ist, soll ein Xiaomi-Gateway angesteuert werden -> es soll dann anfangen zu leuchten und eine Sirenenton abgeben, und zwar solange bis die Alarmanlage deaktiviert wird, d.h. der Datenpunkt "Alarmanlage" den Wert "false" erhällt.

      Sobald das Script getriggert wird, stürzt bei mir aber javascript.0 ab. Erkennt jemand einen Fehler?

      Info: Da ich die Xiaomi-Sensoren noch nicht habe, habe ich einen Datenpunkt "Testschalter" angelegt, der diese emulieren soll.

      3fa63393-4abe-481e-a0ff-293989606029-image.png

      sigi234 paul53 2 Replies Last reply Reply Quote 0
      • sigi234
        sigi234 Forum Testing Most Active @Atifan last edited by sigi234

        @Atifan sagte in Alarmanlage -> Instanz javascript.0 stürzt ab nach Trigger:

        Sobald das Script getriggert wird, stürzt bei mir aber javascript.0 ab. Erkennt jemand einen Fehler?

        Was kommt im Log?

        Den Adapter kennst du?

        https://forum.iobroker.net/topic/31657/test-adapter-alarm-0-7-x

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

          Hi ja ich weiß, dass es einen Adapter dafür gibt. Wollte es aber über Script lösen, da ich dann wahrscheinlich flexibler in der Anpassung bin.
          Hier das Log.

          avascript.0	2020-06-28 20:21:48.220	info	(29581) Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
          host.iobroker	2020-06-28 20:21:47.017	info	instance system.adapter.javascript.0 started with pid 29581
          host.iobroker	2020-06-28 20:21:17.006	info	Restart adapter system.adapter.javascript.0 because enabled
          host.iobroker	2020-06-28 20:21:17.006	info	instance system.adapter.javascript.0 terminated with code NaN ()
          host.iobroker	2020-06-28 20:21:17.006	warn	instance system.adapter.javascript.0 terminated due to SIGABRT
          host.iobroker	2020-06-28 20:21:17.006	error	Caught by controller[12]: 12: 0x13c9819 [io.javascript.0]
          host.iobroker	2020-06-28 20:21:17.006	error	Caught by controller[11]: 11: 0x104474e v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [io.javascript.0]
          host.iobroker	2020-06-28 20:21:17.006	error	Caught by controller[10]: 10: 0xd02e8b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [io.javascript.0]
          host.iobroker	2020-06-28 20:21:17.006	error	Caught by controller[9]: 9: 0xd3c2bc v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [io.javascri
          host.iobroker	2020-06-28 20:21:17.006	error	Caught by controller[8]: 8: 0xd39805 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [io.javascript.0]
          host.iobroker	2020-06-28 20:21:17.006	error	Caught by controller[7]: 7: 0xd38955 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [io.javascript.0]
          host.iobroker	2020-06-28 20:21:17.006	error	Caught by controller[6]: 6: 0xd2c0d6 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [io.javascript.0]
          host.iobroker	2020-06-28 20:21:17.006	error	Caught by controller[5]: 5: 0xd2ba45 [io.javascript.0]
          host.iobroker	2020-06-28 20:21:17.006	error	Caught by controller[4]: 4: 0xb7f2d9 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [io.javascript.0]
          host.iobroker	2020-06-28 20:21:17.006	error	Caught by controller[3]: 3: 0xb7ef5e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [io.javascript.0]
          host.iobroker	2020-06-28 20:21:17.006	error	Caught by controller[2]: 2: 0xa08d0c node::OnFatalError(char const*, char const*) [io.javascript.0]
          host.iobroker	2020-06-28 20:21:17.006	error	Caught by controller[1]: 1: 0xa08900 node::Abort() [io.javascript.0]
          
          1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @Atifan last edited by

            @Atifan sagte:

            Erkennt jemand einen Fehler?

            "Wiederhole bis" erzeugt regelmäßig eine Endlosschleife. Trigger innerhalb eines Triggers funktioniert auch nicht.

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

              Hm, ja so funktioniert es:
              Problem ist aber dann wird nur 1x der Alarm ausgelöst.
              Ich möchte aber dass der wiederholt wird bis "Alarmanlage" = "false".

              b9396a90-3647-4b15-9e2e-3f27e810d9d2-image.png

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

                @Atifan sagte:

                Ich möchte aber dass der wiederholt wird bis "Alarmanlage" = "false".

                Dann ist "Ausführen Intervall" schon richtig, aber beendet wird das mit "stop Intervall".

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

                Support us

                ioBroker
                Community Adapters
                Donate

                823
                Online

                32.0k
                Users

                80.4k
                Topics

                1.3m
                Posts

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