Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Unifi WLAN Script 2 mit Anwesenheitskontrolle

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Unifi WLAN Script 2 mit Anwesenheitskontrolle

    This topic has been deleted. Only users with topic management privileges can see it.
    • dslraser
      dslraser Forum Testing Most Active @liv-in-sky last edited by

      @liv-in-sky
      kann ich heute Nachmittag machen (ich bin aber gestern noch auf jscontroller 2.0.25 umgestiegen) Mal sehen ob das anders ist.

      liv-in-sky dslraser 2 Replies Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @dslraser last edited by

        @dslraser ne - war schon vor umstellung - wollte backup vor umstellung machen - da kam der fehler

        1 Reply Last reply Reply Quote 0
        • dslraser
          dslraser Forum Testing Most Active @dslraser last edited by

          @dslraser sagte in Unifi WLAN Script 2 mit Anwesenheitskontrolle:

          Mal sehen ob das anders ist.

          @liv-in-sky
          deswegen sage ich ja...mal schauen

          liv-in-sky 1 Reply Last reply Reply Quote 0
          • liv-in-sky
            liv-in-sky @dslraser last edited by liv-in-sky

            @dslraser ich glaube, das ist ein individuelles problem - das kam wohl durch die testerei in der programmierung während der lösung des controllerv2 problems - ich habe da ein sehr eigenartiges file erzeugt

            der file name ist der eigentl. inhalt - bedeutet - der filename ist die clientliste - ewig lang 😞

            definitiv liegt das problem nur bei meinem iobroker - hatte gestern einen fehler im script gemacht - ist nur bei mir so

            dslraser I 3 Replies Last reply Reply Quote 0
            • dslraser
              dslraser Forum Testing Most Active @liv-in-sky last edited by dslraser

              @liv-in-sky

              (Bin jetzt erst dazu gekommen das Script zu probieren)
              erster Start vom Script

              javascript.0	2019-10-12 21:05:03.945	warn	(5836) at process._tickCallback (internal/process/next_tick.js:68:7)
              javascript.0	2019-10-12 21:05:03.945	warn	(5836) at promise.then (/opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49)
              javascript.0	2019-10-12 21:05:03.945	warn	(5836) at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)
              javascript.0	2019-10-12 21:05:03.945	warn	(5836) at client.set.err (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:403:55)
              javascript.0	2019-10-12 21:05:03.944	warn	(5836) at script.js.Heiko.16Unifi.Unifi1:217:27
              javascript.0	2019-10-12 21:05:03.944	warn	(5836) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1357:20)
              javascript.0	2019-10-12 21:05:03.944	warn	(5836) State "javascript.0.WLANUnifi.Wifi_Vouchers_CreateListStandard" not found
              javascript.0	2019-10-12 21:05:03.943	warn	(5836) at process._tickCallback (internal/process/next_tick.js:68:7)
              javascript.0	2019-10-12 21:05:03.943	warn	(5836) at promise.then (/opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49)
              javascript.0	2019-10-12 21:05:03.943	warn	(5836) at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)
              javascript.0	2019-10-12 21:05:03.943	warn	(5836) at client.set.err (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:403:55)
              javascript.0	2019-10-12 21:05:03.942	warn	(5836) at script.js.Heiko.16Unifi.Unifi1:215:27
              javascript.0	2019-10-12 21:05:03.942	warn	(5836) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1357:20)
              javascript.0	2019-10-12 21:05:03.938	warn	(5836) State "javascript.0.WLANUnifi.Wifi_Vouchers_CreateList" not found
              

              dann Neustart vom Script, dann kommt irgendwann

              2019-10-12 21:07:00.967 - warn: javascript.0 (5836) You are assigning a string to the state "javascript.0.WLANUnifi.APInfo.SpeedTest.Xput-Download" which expects a number. Please fix your code to use a number or change the state type to string. This warning might become an error in future versions.
              2019-10-12 21:07:00.967 - warn: javascript.0 (5836) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1357:20)
              2019-10-12 21:07:00.968 - warn: javascript.0 (5836) at workAP (script.js.Heiko.16Unifi.Unifi1:1169:13)
              2019-10-12 21:07:00.968 - warn: javascript.0 (5836) at Object.setInterval (script.js.Heiko.16Unifi.Unifi1:1548:38)
              2019-10-12 21:07:00.968 - warn: javascript.0 (5836) at process._tickCallback (internal/process/next_tick.js:68:7)
              2019-10-12 21:07:00.969 - warn: javascript.0 (5836) You are assigning a string to the state "javascript.0.WLANUnifi.APInfo.SpeedTest.Xput-Upload" which expects a number. Please fix your code to use a number or change the state type to string. This warning might become an error in future versions.
              2019-10-12 21:07:00.969 - warn: javascript.0 (5836) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1357:20)
              2019-10-12 21:07:00.969 - warn: javascript.0 (5836) at workAP (script.js.Heiko.16Unifi.Unifi1:1174:13)
              2019-10-12 21:07:00.970 - warn: javascript.0 (5836) at Object.setInterval (script.js.Heiko.16Unifi.Unifi1:1548:38)
              2019-10-12 21:07:00.970 - warn: javascript.0 (5836) at process._tickCallback (internal/process/next_tick.js:68:7)
              2019-10-12 21:08:30.872 - warn: javascript.0 (5836) You are assigning a string to the state "javascript.0.WLANUnifi.APInfo.SpeedTest.Xput-Download" which expects a number. Please fix your code to use a number or change the state type to string. This warning might become an error in future versions.
              2019-10-12 21:08:30.873 - warn: javascript.0 (5836) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1357:20)
              2019-10-12 21:08:30.873 - warn: javascript.0 (5836) at workAP (script.js.Heiko.16Unifi.Unifi1:1169:13)
              2019-10-12 21:08:30.873 - warn: javascript.0 (5836) at Object.setInterval (script.js.Heiko.16Unifi.Unifi1:1548:38)
              2019-10-12 21:08:30.874 - warn: javascript.0 (5836) at process._tickCallback (internal/process/next_tick.js:68:7)
              2019-10-12 21:08:30.874 - warn: javascript.0 (5836) You are assigning a string to the state "javascript.0.WLANUnifi.APInfo.SpeedTest.Xput-Upload" which expects a number. Please fix your code to use a number or change the state type to string. This warning might become an error in future versions.
              2019-10-12 21:08:30.875 - warn: javascript.0 (5836) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1357:20)
              2019-10-12 21:08:30.875 - warn: javascript.0 (5836) at workAP (script.js.Heiko.16Unifi.Unifi1:1174:13)
              2019-10-12 21:08:30.875 - warn: javascript.0 (5836) at Object.setInterval (script.js.Heiko.16Unifi.Unifi1:1548:38)
              2019-10-12 21:08:30.875 - warn: javascript.0 (5836) at process._tickCallback (internal/process/next_tick.js:68:7)
              2019-10-12 21:10:00.973 - warn: javascript.0 (5836) You are assigning a string to the state "javascript.0.WLANUnifi.APInfo.SpeedTest.Xput-Download" which expects a number. Please fix your code to use a number or change the state type to string. This warning might become an error in future versions.
              2019-10-12 21:10:00.974 - warn: javascript.0 (5836) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1357:20)
              2019-10-12 21:10:00.974 - warn: javascript.0 (5836) at workAP (script.js.Heiko.16Unifi.Unifi1:1169:13)
              2019-10-12 21:10:00.975 - warn: javascript.0 (5836) at Object.setInterval (script.js.Heiko.16Unifi.Unifi1:1548:38)
              2019-10-12 21:10:00.975 - warn: javascript.0 (5836) at process._tickCallback (internal/process/next_tick.js:68:7)
              2019-10-12 21:10:00.975 - warn: javascript.0 (5836) You are assigning a string to the state "javascript.0.WLANUnifi.APInfo.SpeedTest.Xput-Upload" which expects a number. Please fix your code to use a number or change the state type to string. This warning might become an error in future versions.
              2019-10-12 21:10:00.976 - warn: javascript.0 (5836) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1357:20)
              2019-10-12 21:10:00.977 - warn: javascript.0 (5836) at workAP (script.js.Heiko.16Unifi.Unifi1:1174:13)
              2019-10-12 21:10:00.977 - warn: javascript.0 (5836) at Object.setInterval (script.js.Heiko.16Unifi.Unifi1:1548:38)
              2019-10-12 21:10:00.977 - warn: javascript.0 (5836) at process._tickCallback (internal/process/next_tick.js:68:7)
              

              Fehler kommt immer wieder

              1 Reply Last reply Reply Quote 0
              • dslraser
                dslraser Forum Testing Most Active @liv-in-sky last edited by

                @liv-in-sky
                noch ein Fehler im Log

                12.10.2019, 21:16:39.967	[warn ]: javascript.0 (5836)     at workAP (script.js.Heiko.16Unifi.Unifi1:1169:13)
                12.10.2019, 21:16:39.968	[warn ]: javascript.0 (5836)     at Object.setInterval (script.js.Heiko.16Unifi.Unifi1:1548:38)
                12.10.2019, 21:16:39.969	[warn ]: javascript.0 (5836)     at workAP (script.js.Heiko.16Unifi.Unifi1:1174:13)
                12.10.2019, 21:16:39.969	[warn ]: javascript.0 (5836)     at Object.setInterval (script.js.Heiko.16Unifi.Unifi1:1548:38)
                

                Bildschirmfoto 2019-10-12 um 21.17.55.png

                liv-in-sky 2 Replies Last reply Reply Quote 0
                • P
                  ple last edited by

                  Moin Moin und besten Dank für dein Script.
                  Ich habs gerade am laufen, bisher scheint es zu funktionieren. Ich hoffe mal, dass ich dadurch die Fehlmeldungen der iOS Geräte wegbekomme bei der Anwesenheitsprüfung. Ist zumindest ein Versuche.
                  Besteht die Möglichkeit noch unter WAN die IPV6 Adresse mit anzugeben? Ich habe ein Glasfaseranschluss und die Adresse ändert sich so 4 mal im Jahr. Würde mir dann gerne eine Nachricht schicken lassen, wenn die sich geändert hat.

                  Gruß und Danke

                  liv-in-sky 1 Reply Last reply Reply Quote 0
                  • liv-in-sky
                    liv-in-sky @dslraser last edited by

                    @dslraser werde morgen früh nachbessern

                    @ple schau ich mir auch mal an - evtl muss du mir die daten senden - - unterschiedliche setups erzeugen unterschiedliche daten, welche ich bekomme - melde mich morgen mit genaueren info's

                    dslraser P 2 Replies Last reply Reply Quote 0
                    • dslraser
                      dslraser Forum Testing Most Active @liv-in-sky last edited by

                      @liv-in-sky
                      ich habe aus number mixed gemacht, jetzt ist Ruhe (bei allen 3 DP vom SpeedTest)

                      Bildschirmfoto 2019-10-12 um 21.56.32.png

                      1 Reply Last reply Reply Quote 0
                      • P
                        ple @liv-in-sky last edited by

                        @liv-in-sky Kein Stress, im moment muss ich mich eh erst mal darin zurechtfinden. Im Moment springen die States der Clients hin und her, ob erreichbar oder nicht. im Script stehen glaub ich 15s. Reicht das bei euch aus? Selbst mein Cloudkey wird immer wieder als offline erkannt. Habe gerade auch festgestellt, dass der Cloudkey noch ne alte Firmware drauf hat. Mal schauen wie es nachher aussieht.

                        dslraser liv-in-sky 2 Replies Last reply Reply Quote 0
                        • dslraser
                          dslraser Forum Testing Most Active @ple last edited by

                          @ple
                          ich habe es aktuell so eingestellt (ohne Problemnetzwerk)

                          // Abfragezyklus definieren
                          const abfragezyklus =30000; // es ist nicht zu empfehlen unter 20000 (20 sekunden) zu gehen
                          const abfageoffset = 40000; // zu schnelle Abmeldungen können hier eingestellt weren - > erhöhen (15000 = 15 sek.)
                          
                          
                          1 Reply Last reply Reply Quote 0
                          • liv-in-sky
                            liv-in-sky @ple last edited by

                            @ple sagte in Unifi WLAN Script 2 mit Anwesenheitskontrolle:

                            @liv-in-sky Kein Stress, im moment muss ich mich eh erst mal darin zurechtfinden. Im Moment springen die States der Clients hin und her, ob erreichbar oder nicht. im Script stehen glaub ich 15s. Reicht das bei euch aus? Selbst mein Cloudkey wird immer wieder als offline erkannt. Habe gerade auch festgestellt, dass der Cloudkey noch ne alte Firmware drauf hat. Mal schauen wie es nachher aussieht.

                            probiermal die variable problemWLAN=true

                            das hin und her springen könnte damit besser werden

                            wenn das noch nicht hilft setze countFalseSetting=3 und erhöhe auf 4 oder 5 wenn es nicht hilft

                            1 Reply Last reply Reply Quote 0
                            • K
                              Kueppert last edited by

                              Hi, ne blöde Frage: aber wäre dies hier nicht einen Adapter wert? ala Unifi-2? 😄

                              dslraser 1 Reply Last reply Reply Quote 0
                              • dslraser
                                dslraser Forum Testing Most Active @Kueppert last edited by

                                @Kueppert sagte in Unifi WLAN Script 2 mit Anwesenheitskontrolle:

                                Hi, ne blöde Frage: aber wäre dies hier nicht einen Adapter wert? ala Unifi-2? 😄

                                Ja, schon, aber weder @liv-in-sky oder ich haben eine Ahnung wie man einen Adapter erstellt. Noch nie gemacht.

                                K 1 Reply Last reply Reply Quote 1
                                • K
                                  Kueppert @dslraser last edited by

                                  @dslraser Ah, alles klar, daher weht der Wind. Hab das gleiche Problem 😉 danke für die Info.

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    ple last edited by

                                    Ich glaub das war garnicht so schwierig.
                                    Da gibt es gute Videos zu mit Templates.

                                    was macht das Problem Wlan=true genau?

                                    liv-in-sky 1 Reply Last reply Reply Quote 0
                                    • liv-in-sky
                                      liv-in-sky @ple last edited by

                                      @ple hast du zufällig den video-link

                                      hier problemwlan=true:
                                      https://forum.iobroker.net/post/301328

                                      1 Reply Last reply Reply Quote 0
                                      • liv-in-sky
                                        liv-in-sky @dslraser last edited by

                                        @dslraser sagte in Unifi WLAN Script 2 mit Anwesenheitskontrolle:

                                        @liv-in-sky
                                        noch ein Fehler im Log

                                        12.10.2019, 21:16:39.967	[warn ]: javascript.0 (5836)     at workAP (script.js.Heiko.16Unifi.Unifi1:1169:13)
                                        12.10.2019, 21:16:39.968	[warn ]: javascript.0 (5836)     at Object.setInterval (script.js.Heiko.16Unifi.Unifi1:1548:38)
                                        12.10.2019, 21:16:39.969	[warn ]: javascript.0 (5836)     at workAP (script.js.Heiko.16Unifi.Unifi1:1174:13)
                                        12.10.2019, 21:16:39.969	[warn ]: javascript.0 (5836)     at Object.setInterval (script.js.Heiko.16Unifi.Unifi1:1548:38)
                                        

                                        Bildschirmfoto 2019-10-12 um 21.17.55.png

                                        moin,

                                        würdest du bitte das script (1.post) testen - ich glaube, es ist beidesmal der selbe fehler

                                        • datenpunkte: du brauchst auch nur den ordner speedtest unter apInfo zu löschen -
                                        dslraser 2 Replies Last reply Reply Quote 0
                                        • liv-in-sky
                                          liv-in-sky @ple last edited by

                                          @ple sagte in Unifi WLAN Script 2 mit Anwesenheitskontrolle:

                                          Moin Moin und besten Dank für dein Script.
                                          Ich habs gerade am laufen, bisher scheint es zu funktionieren. Ich hoffe mal, dass ich dadurch die Fehlmeldungen der iOS Geräte wegbekomme bei der Anwesenheitsprüfung. Ist zumindest ein Versuche.
                                          Besteht die Möglichkeit noch unter WAN die IPV6 Adresse mit anzugeben? Ich habe ein Glasfaseranschluss und die Adresse ändert sich so 4 mal im Jahr. Würde mir dann gerne eine Nachricht schicken lassen, wenn die sich geändert hat.

                                          Gruß und Danke

                                          könntest du mir mal deine daten via mail senden - damit ich die ip6 adresse herausfiltern kann
                                          geht so:
                                          https://forum.iobroker.net/post/308347

                                          wenn das möglich ist, gebe ich dir meine mailadresse über chat

                                          hat das problemwlan=true etwas genutzt ?

                                          P 1 Reply Last reply Reply Quote 0
                                          • dslraser
                                            dslraser Forum Testing Most Active @liv-in-sky last edited by

                                            @liv-in-sky sagte in Unifi WLAN Script 2 mit Anwesenheitskontrolle:

                                            moin,
                                            würdest du bitte das script (1.post) testen - ich glaube, es ist beidesmal der selbe fehler

                                            datenpunkte: du brauchst auch nur den ordner speedtest unter apInfo zu löschen -

                                            jetzt hast Du zwar eine Zeichenkette draus gemacht, aber ein DP Fehler bleibt
                                            (mit mixed bzw. gemischt hatte ich gestern keine Probleme)

                                            2019-10-13 10:09:27.899 - warn: javascript.0 (14273) You are assigning a number to the state "javascript.0.WLANUnifi.APInfo.SpeedTest.Latency" which expects a string. Please fix your code to use a string or change the state type to number. This warning might become an error in future versions.
                                            2019-10-13 10:09:27.903 - warn: javascript.0 (14273) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1306:20)
                                            2019-10-13 10:09:27.904 - warn: javascript.0 (14273) at workAP (script.js.Heiko.16Unifi.Unifi1:1178:13)
                                            2019-10-13 10:09:27.904 - warn: javascript.0 (14273) at Object.setInterval (script.js.Heiko.16Unifi.Unifi1:1548:38)
                                            2019-10-13 10:09:27.905 - warn: javascript.0 (14273) at process._tickCallback (internal/process/next_tick.js:68:7)
                                            

                                            Noch ein "Schönheitsfehler":

                                            Hier steht die Anzahl der Clients und Wifi_Clients, das sind aber alle, inklusive LAN, also nicht nur Wifi

                                            Bildschirmfoto 2019-10-13 um 09.57.51.png

                                            liv-in-sky 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            889
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            javascript monitoring
                                            46
                                            1358
                                            347774
                                            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