Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst] Fehler Ein/Aus-Zustand switch.active Skript

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [gelöst] Fehler Ein/Aus-Zustand switch.active Skript

    This topic has been deleted. Only users with topic management privileges can see it.
    • wendy2702
      wendy2702 @Magnus 0 last edited by

      @magnus-0 Irgendwas stimmt hier nicht:

      DBD1D6D2-8A0B-4F21-8B98-A6BB82356B73.jpeg

      M 1 Reply Last reply Reply Quote 0
      • M
        Magnus 0 @wendy2702 last edited by Magnus 0

        @wendy2702

        Doch passt so 👍

        Skript 2 ist das Skript welches die Ausgabe in das Log schreibt. Es wird zwar der Zustand von Skript 2 überprüft, jedoch in Skript 2.

        Also Skript 1 ist das javascript-Skript.

        Mit Skript 2 mache ich die Debug-Ausgabe. Als Ausgabe wird der Zustand von Skript 1 ausgegeben.

        wendy2702 1 Reply Last reply Reply Quote 0
        • wendy2702
          wendy2702 @Magnus 0 last edited by

          @magnus-0 OK.

          Stimmt denn der Pfad zum Object?

          Läuft das Script vielleicht in einer anderen JavaScript Instanz?

          M 1 Reply Last reply Reply Quote 0
          • M
            Magnus 0 @wendy2702 last edited by

            @wendy2702

            Ja, ich habe das jetzt mehrere Male überprüft, ich dachte zuerst das kann doch nicht sein...

            Aber die Pfade passen und ich habe auch bloß eine JavaScript-Instanz.

            1 Reply Last reply Reply Quote 0
            • M
              Magnus 0 last edited by

              Ich bin nun testweise mal hergegangen und habe das Skript aus- und wieder eingeschalten. Nun passt auch die Logausgabe.

              Dann habe ich meinen kompletten Raspi neugestartet. Gleiches Problem wieder. Skript läuft, macht auch was es soll, jedoch wird ins Log wieder "false" geschrieben, obwohl es nachweislich ein ist.

              wendy2702 1 Reply Last reply Reply Quote 0
              • wendy2702
                wendy2702 @Magnus 0 last edited by

                @magnus-0 Sorry, dann bin ich leider raus.

                M 1 Reply Last reply Reply Quote 0
                • M
                  Magnus 0 @wendy2702 last edited by

                  @wendy2702

                  Kein Problem, trotzdem vielen Dank für die schnellen Antworten.

                  Soll ich da einfach mal abwarten bis noch jemand schreibt oder soll ich da direkt jemanden anschreiben?

                  Was denkst du ist besser?

                  wendy2702 1 Reply Last reply Reply Quote 0
                  • wendy2702
                    wendy2702 @Magnus 0 last edited by

                    @magnus-0 Ist nicht 4.0.19 vom JS-Controller aktuell?

                    Kannst warten oder ein Issue in GitHub beim Adapter bzw. JS-Controller öffnen.

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      Magnus 0 @wendy2702 last edited by

                      @wendy2702

                      Also bei mir zeigt er 4.0.18 als aktuell an.

                      Ist das Problem bekannt weil du meinst ich kann warten?

                      wendy2702 1 Reply Last reply Reply Quote 0
                      • wendy2702
                        wendy2702 @Magnus 0 last edited by

                        @magnus-0 Ich kenne das Problem nicht, was aber nichts bedeutet.

                        Kann sein das 4.0.19 noch nicht im Stable ist. Muss ich selber mal gucken.

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          Magnus 0 @wendy2702 last edited by

                          @wendy2702

                          Ok, blöde Frage: Gibt es für das Erstellen des Issue in GitHub eine Anleitung? Ich hab das noch nie gemacht.

                          wendy2702 1 Reply Last reply Reply Quote 0
                          • wendy2702
                            wendy2702 @Magnus 0 last edited by

                            @magnus-0 Keine Ahnung… gibt aber beim entsprechenden Repo einen Button „Issue erstellen“

                            Beispiel:

                            53D61B10-4277-405D-9EFD-7AEB5ABAA9B3.jpeg

                            M 1 Reply Last reply Reply Quote 0
                            • Sokomoto
                              Sokomoto @Magnus 0 last edited by

                              @magnus-0 sagte in Fehler Ein/Aus-Zustand switch.active Skript:

                              mir ist gerade ein sehr seltsames Problem aufgefallen:

                              Ich kann das bestätigen, ich habe das selbe Problem.

                              tschuess

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                Magnus 0 @Sokomoto last edited by

                                @sokomoto

                                Ok, Danke für die Info.

                                Ich werde morgen mal versuchen so ein Issue zu erstellen.

                                Sokomoto 1 Reply Last reply Reply Quote 0
                                • M
                                  Magnus 0 @wendy2702 last edited by

                                  @wendy2702

                                  Ok Danke

                                  Sokomoto 2 Replies Last reply Reply Quote 0
                                  • Sokomoto
                                    Sokomoto @Magnus 0 last edited by

                                    @magnus-0 sagte in Fehler Ein/Aus-Zustand switch.active Skript:

                                    Ok, Danke für die Info.

                                    Mir fällt gerade auf, wenn man mit .ack abfragt, stimmt die Antwort.

                                    log(getState('javascript.0.scriptEnabled.E-Auto.ZoeSkriptAnAus').ack)

                                    1 Reply Last reply Reply Quote 0
                                    • Sokomoto
                                      Sokomoto @Magnus 0 last edited by

                                      @magnus-0 sagte in Fehler Ein/Aus-Zustand switch.active Skript:

                                      @wendy2702

                                      Ok Danke

                                      Nachdem ich das einmal mit .ack abgefragt habe , funktioniert das nun wieder mit .val, warum auch immer.

                                      M 2 Replies Last reply Reply Quote 0
                                      • Sokomoto
                                        Sokomoto @Magnus 0 last edited by

                                        @magnus-0

                                        Schau mal was hier steht:

                                        Scripts activity
                                        There is a possibility to enabled and disable scripts via states. For every script the state will be created with name javascript.INSTANCE.scriptEnabled.SCRIPT_NAME. Scripts can be activated and deactivated by controlling of this state with ack=false.

                                        https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/javascript.md#scripts-activity

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          Magnus 0 @Sokomoto last edited by

                                          @sokomoto

                                          Seltsam...

                                          Bei mir ist es schon auch so, wenn ich mit .ack abfrage, stimmt es.

                                          Wenn ich dann aber das Skript kurz ändere und wieder mit .val abfrage stimmt es nicht mehr.

                                          Das Blöde ist natürlich auch, dass ich den Unterschied zwischen .ack und .val nicht kenne...

                                          Ich werde jetzt mal ein Update auf die 4.0.19 machen und schauen ob das Problem dann immer noch da ist. Aktuell habe ich 4.0.18.

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            Magnus 0 @Magnus 0 last edited by

                                            @magnus-0

                                            Gleiches Problem immer noch... das Update hat nichts geändert.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            915
                                            Online

                                            31.7k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            3
                                            32
                                            1365
                                            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