Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Adapter: ioBroker.unifi

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.9k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.3k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.5k

Adapter: ioBroker.unifi

Scheduled Pinned Locked Moved ioBroker Allgemein
unifi
1.0k Posts 172 Posters 398.3k Views 93 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Samson71S Samson71

    @xdelta sagte in Adapter: ioBroker.unifi:

    (! Man muss aber wissen, dass sich dabei immer das gesamte WLAN kurz trennt und dann wieder verbindet !)

    Ist klar, da die AP's dann kurz neu provisioniert werden. Letzten Endes auch der Grund warum ich das auch nicht weiter verfolgt habe. Das Gäste WLAN ist jetzt halt immer aktiv. Läuft über Voucher und hier ist die Gesamtdichte an aktiven Netzen nicht ganz so schlimm.

    X Offline
    X Offline
    xdelta
    wrote on last edited by
    #901

    @samson71

    So siehts aus! Ich habs deshalb ebenso mit Vouchern gelöst :)

    draexlerD 1 Reply Last reply
    0
    • X xdelta

      @samson71

      So siehts aus! Ich habs deshalb ebenso mit Vouchern gelöst :)

      draexlerD Do not disturb
      draexlerD Do not disturb
      draexler
      wrote on last edited by
      #902

      @xdelta geht bei euch die Voucherstellung noch?

      Samson71S X 2 Replies Last reply
      0
      • draexlerD draexler

        @xdelta geht bei euch die Voucherstellung noch?

        Samson71S Offline
        Samson71S Offline
        Samson71
        Global Moderator
        wrote on last edited by
        #903

        @draexler
        Nicht über bzw. aus ioBroker heraus falls das gemeint war. Ich mache das direkt im Unifi Controller.

        Markus

        Bitte beachten:
        Hinweise für gute Forenbeiträge
        Maßnahmen zum Schutz des Forums

        1 Reply Last reply
        0
        • draexlerD draexler

          @xdelta geht bei euch die Voucherstellung noch?

          X Offline
          X Offline
          xdelta
          wrote on last edited by
          #904

          @draexler said in Adapter: ioBroker.unifi:

          @xdelta geht bei euch die Voucherstellung noch?

          Nein, das geht bei mir nur direkt aus der UDM heraus. Mit ioBroker leider nicht über den dp..

          1 Reply Last reply
          0
          • draexlerD Do not disturb
            draexlerD Do not disturb
            draexler
            wrote on last edited by
            #905

            @xdelta also wenn ihr auf den Trigger „Vouchererstellung“ klickt, habt ihr auch eine Axios Fehlermeldung im Log?
            Will nur wissen ob andere auch betroffen sind.

            X 1 Reply Last reply
            0
            • A Offline
              A Offline
              Adnim
              wrote on last edited by
              #906

              @draexler sagte in Adapter: ioBroker.unifi:

              xdelta also wenn ihr auf den Trigger „Vouchererstellung“ klickt, habt ihr auch eine Axios Fehlermeldung im Log?
              Will nur wissen ob andere auch betroffen sind.

              Mache das über das Unifi Skript von @liv-in-sky. Evtl kann es mal irgendwann in den Adapter übernommen werden. Die Vouchers über Telegram abrufen/erzeugen ist schon ziemlich cool!

              -> https://forum.iobroker.net/topic/25066/unifi-wlan-script-2-mit-anwesenheitskontrolle?_=1707798864830

              1 Reply Last reply
              0
              • draexlerD draexler

                @xdelta also wenn ihr auf den Trigger „Vouchererstellung“ klickt, habt ihr auch eine Axios Fehlermeldung im Log?
                Will nur wissen ob andere auch betroffen sind.

                X Offline
                X Offline
                xdelta
                wrote on last edited by
                #907

                @draexler said in Adapter: ioBroker.unifi:

                @xdelta also wenn ihr auf den Trigger „Vouchererstellung“ klickt, habt ihr auch eine Axios Fehlermeldung im Log? > Will nur wissen ob andere auch betroffen sind.

                Ja, habe ich ebenso.

                [createUnifiVouchers site default] error: Request failed with status code 400, stack: AxiosError: Request failed with status code 400 at settle (/opt/iobroker/node_modules/axios/dist/node/axios.cjs:1967:12) at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/axios/dist/node/axios.cjs:3062:11) at IncomingMessage.emit (node:events:529:35) at endReadableNT (node:internal/streams/readable:1400:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
                
                draexlerD 1 Reply Last reply
                1
                • X xdelta

                  @draexler said in Adapter: ioBroker.unifi:

                  @xdelta also wenn ihr auf den Trigger „Vouchererstellung“ klickt, habt ihr auch eine Axios Fehlermeldung im Log? > Will nur wissen ob andere auch betroffen sind.

                  Ja, habe ich ebenso.

                  [createUnifiVouchers site default] error: Request failed with status code 400, stack: AxiosError: Request failed with status code 400 at settle (/opt/iobroker/node_modules/axios/dist/node/axios.cjs:1967:12) at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/axios/dist/node/axios.cjs:3062:11) at IncomingMessage.emit (node:events:529:35) at endReadableNT (node:internal/streams/readable:1400:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
                  
                  draexlerD Do not disturb
                  draexlerD Do not disturb
                  draexler
                  wrote on last edited by
                  #908

                  @xdelta Danke, also definitiv nicht Einzelfälle. GitHub Issue ist aber schon eingestellt.

                  1 Reply Last reply
                  0
                  • W Offline
                    W Offline
                    warp735
                    wrote on last edited by
                    #909

                    Ich warte das System eine Freundes und wurde gerade mit dieser Meldung begrüßt. Scheinbar ist der Adapter nicht mehr lange nutzbar :-(

                    Snag_214759.png

                    O Meister MopperM 2 Replies Last reply
                    0
                    • W warp735

                      Ich warte das System eine Freundes und wurde gerade mit dieser Meldung begrüßt. Scheinbar ist der Adapter nicht mehr lange nutzbar :-(

                      Snag_214759.png

                      O Offline
                      O Offline
                      oxident
                      wrote on last edited by
                      #910

                      @warp735 Hmm, aber der Adapter nutzt doch den lokalen Zugang und nicht die Cloud.

                      Habe 2FA jetzt seit Anfang des Jahres aktiviert und keine (neuen) Probleme mit dem Adapter.

                      W 1 Reply Last reply
                      0
                      • O oxident

                        @warp735 Hmm, aber der Adapter nutzt doch den lokalen Zugang und nicht die Cloud.

                        Habe 2FA jetzt seit Anfang des Jahres aktiviert und keine (neuen) Probleme mit dem Adapter.

                        W Offline
                        W Offline
                        warp735
                        wrote on last edited by
                        #911

                        @oxident
                        Oh... das wusste ich nicht. "Früher"war es Bedingung 2FA zu deaktivieren und bei mir hatte es mit auch nicht funktioniert.

                        1 Reply Last reply
                        1
                        • W warp735

                          Ich warte das System eine Freundes und wurde gerade mit dieser Meldung begrüßt. Scheinbar ist der Adapter nicht mehr lange nutzbar :-(

                          Snag_214759.png

                          Meister MopperM Away
                          Meister MopperM Away
                          Meister Mopper
                          wrote on last edited by
                          #912

                          @warp735 sagte in Adapter: ioBroker.unifi:

                          Ich warte das System eine Freundes und wurde gerade mit dieser Meldung begrüßt. Scheinbar ist der Adapter nicht mehr lange nutzbar :-(

                          Snag_214759.png

                          Noch läuft bei mir beides. Ich habe einen lokalen Zugang und einen über die cloud (2FA).

                          Proxmox und HA

                          W 1 Reply Last reply
                          1
                          • Meister MopperM Meister Mopper

                            @warp735 sagte in Adapter: ioBroker.unifi:

                            Ich warte das System eine Freundes und wurde gerade mit dieser Meldung begrüßt. Scheinbar ist der Adapter nicht mehr lange nutzbar :-(

                            Snag_214759.png

                            Noch läuft bei mir beides. Ich habe einen lokalen Zugang und einen über die cloud (2FA).

                            W Offline
                            W Offline
                            warp735
                            wrote on last edited by
                            #913

                            @meister-mopper sagte in Adapter: ioBroker.unifi:

                            Ich habe einen lokalen Zugang

                            Wo hast Du den eingerichtet? Hab MFA jetzt aktiviert und Adapter läuft nicht mehr. Geb ich die IP der UDM hier lokal ein, wird auch ein mfa Pin benötigt. Das muss ich doch dann irgendwo abstellen können?

                            M Meister MopperM 2 Replies Last reply
                            0
                            • W warp735

                              @meister-mopper sagte in Adapter: ioBroker.unifi:

                              Ich habe einen lokalen Zugang

                              Wo hast Du den eingerichtet? Hab MFA jetzt aktiviert und Adapter läuft nicht mehr. Geb ich die IP der UDM hier lokal ein, wird auch ein mfa Pin benötigt. Das muss ich doch dann irgendwo abstellen können?

                              M Offline
                              M Offline
                              martinschm
                              wrote on last edited by
                              #914

                              Hi,

                              ich hab immer wieder das Problem, das mein unifi Adapter wg zu vieler Abstürze gestoppt wird. Ich hab dann immer auf debug Modus gestellt und das Problem trat ewig nicht auf. Jetzt hab ich endlich mal einen Ausstieg erwischt und hab ein paar Logs.

                              2024-02-22 20:33:11.822  - debug: unifi.0 (2124279) Search can't be optimized because wildcard not at the end, fallback to keys!: function(doc) { if (doc.type === 'state') emit(doc._id, doc) }
                              2024-02-22 20:33:11.912  - debug: unifi.0 (2124279) Search can't be optimized because wildcard not at the end, fallback to keys!: function(doc) { if (doc.type === 'state') emit(doc._id, doc) }
                              2024-02-22 20:33:12.318  - debug: unifi.0 (2124279) Update done
                              2024-02-22 20:34:12.319  - debug: unifi.0 (2124279) Update started
                              2024-02-22 20:34:22.360  - error: unifi.0 (2124279) [updateUnifiData-login site undefined] error: timeout of 10000ms exceeded, stack: AxiosError: timeout of 10000ms exceeded
                                  at RedirectableRequest.handleRequestTimeout (/opt/iobroker/node_modules/axios/dist/node/axios.cjs:3120:16)
                                  at RedirectableRequest.emit (node:events:514:28)
                                  at Timeout.<anonymous> (/opt/iobroker/node_modules/follow-redirects/index.js:210:12)
                                  at listOnTimeout (node:internal/timers:569:17)
                                  at process.processTimers (node:internal/timers:512:7)
                              2024-02-22 20:34:22.364  - error: unifi.0 (2124279) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                              2024-02-22 20:34:22.364  - error: unifi.0 (2124279) unhandled promise rejection: Cannot read properties of undefined (reading 'captureException')
                              2024-02-22 20:34:22.365  - error: unifi.0 (2124279) TypeError: Cannot read properties of undefined (reading 'captureException')
                                  at Unifi.handleError (/opt/iobroker/node_modules/iobroker.unifi/main.js:243:53)
                                  at Unifi.updateUnifiData (/opt/iobroker/node_modules/iobroker.unifi/main.js:269:22)
                              2024-02-22 20:34:22.365  - error: unifi.0 (2124279) Cannot read properties of undefined (reading 'captureException')
                              2024-02-22 20:34:22.370  - info: unifi.0 (2124279) cleaned everything up...
                              2024-02-22 20:34:22.371  - info: unifi.0 (2124279) terminating
                              2024-02-22 20:34:22.371  - debug: unifi.0 (2124279) Plugin sentry destroyed
                              2024-02-22 20:34:22.372  - warn: unifi.0 (2124279) Terminated (UNCAUGHT_EXCEPTION): Without reason
                              2024-02-22 20:34:22.877  - info: unifi.0 (2124279) terminating
                              2024-02-22 20:34:23.424  - error: host.smarthome instance system.adapter.unifi.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                              2024-02-22 20:34:23.426  - info: host.smarthome Restart adapter system.adapter.unifi.0 because enabled
                              2024-02-22 20:34:49.560  - warn: telegram.0 (873586) polling_error: EFATAL, EFATAL: Error: read ETIMEDOUT
                              2024-02-22 20:34:50.930  - error: cloud.0 (644250) Ping timeout
                              2024-02-22 20:34:53.990  - info: host.smarthome instance system.adapter.unifi.0 started with pid 1655176
                              2024-02-22 20:34:56.608  - debug: unifi.0 (1655176) Redis Objects: Use Redis connection: 0.0.0.0:9001
                              2024-02-22 20:34:56.694  - debug: unifi.0 (1655176) Objects client ready ... initialize now
                              2024-02-22 20:34:56.696  - debug: unifi.0 (1655176) Objects create System PubSub Client
                              2024-02-22 20:34:56.698  - debug: unifi.0 (1655176) Objects create User PubSub Client
                              2024-02-22 20:34:56.890  - debug: unifi.0 (1655176) Objects client initialize lua scripts
                              2024-02-22 20:34:56.903  - debug: unifi.0 (1655176) Objects connected to redis: 0.0.0.0:9001
                              2024-02-22 20:34:57.001  - debug: unifi.0 (1655176) Redis States: Use Redis connection: 0.0.0.0:6379
                              2024-02-22 20:34:57.012  - debug: unifi.0 (1655176) States create System PubSub Client
                              2024-02-22 20:34:57.013  - debug: unifi.0 (1655176) States create User PubSub Client
                              2024-02-22 20:34:57.028  - debug: unifi.0 (1655176) States connected to redis: 0.0.0.0:6379
                              2024-02-22 20:34:57.120  - debug: unifi.0 (1655176) Plugin sentry Initialize Plugin (enabled=true)
                              2024-02-22 20:34:57.130  - info: unifi.0 (1655176) Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
                              2024-02-22 20:34:57.568  - info: unifi.0 (1655176) starting. Version 0.6.7 in /opt/iobroker/node_modules/iobroker.unifi, node: v18.17.1, js-controller: 5.0.12
                              2024-02-22 20:34:57.623  - info: unifi.0 (1655176) UniFi adapter is ready
                              2024-02-22 20:34:57.624  - debug: unifi.0 (1655176) controller = 192.168.1.10:8443
                              2024-02-22 20:34:57.626  - debug: unifi.0 (1655176) updateInterval = 60
                              2024-02-22 20:34:57.627  - debug: unifi.0 (1655176) Update started
                              2024-02-22 20:35:08.075  - error: unifi.0 (1655176) [updateUnifiData-login site undefined] error: timeout of 10000ms exceeded, stack: AxiosError: timeout of 10000ms exceeded
                                  at RedirectableRequest.handleRequestTimeout (/opt/iobroker/node_modules/axios/dist/node/axios.cjs:3120:16)
                                  at RedirectableRequest.emit (node:events:514:28)
                                  at Timeout.<anonymous> (/opt/iobroker/node_modules/follow-redirects/index.js:210:12)
                                  at listOnTimeout (node:internal/timers:569:17)
                                  at process.processTimers (node:internal/timers:512:7)
                              2024-02-22 20:35:08.078  - error: unifi.0 (1655176) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                              2024-02-22 20:35:08.079  - error: unifi.0 (1655176) unhandled promise rejection: Cannot read properties of undefined (reading 'captureException')
                              2024-02-22 20:35:08.080  - error: unifi.0 (1655176) TypeError: Cannot read properties of undefined (reading 'captureException')
                                  at Unifi.handleError (/opt/iobroker/node_modules/iobroker.unifi/main.js:243:53)
                                  at Unifi.updateUnifiData (/opt/iobroker/node_modules/iobroker.unifi/main.js:269:22)
                              2024-02-22 20:35:08.081  - error: unifi.0 (1655176) Cannot read properties of undefined (reading 'captureException')
                              2024-02-22 20:35:08.091  - info: unifi.0 (1655176) cleaned everything up...
                              2024-02-22 20:35:08.092  - info: unifi.0 (1655176) terminating
                              2024-02-22 20:35:08.093  - debug: unifi.0 (1655176) Plugin sentry destroyed
                              2024-02-22 20:35:08.094  - warn: unifi.0 (1655176) Terminated (UNCAUGHT_EXCEPTION): Without reason
                              2024-02-22 20:35:08.596  - info: unifi.0 (1655176) terminating
                              2024-02-22 20:35:08.974  - error: host.smarthome instance system.adapter.unifi.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                              2024-02-22 20:35:08.975  - info: host.smarthome Restart adapter system.adapter.unifi.0 because enabled
                              2024-02-22 20:35:20.958  - info: cloud.0 (644250) Trying to connect as system.user.admin to cloud
                              2024-02-22 20:35:30.944  - error: cloud.0 (644250) Error while connecting to cloud: timeout
                              2024-02-22 20:35:39.599  - info: host.smarthome instance system.adapter.unifi.0 started with pid 1655211
                              2024-02-22 20:35:41.329  - info: iot.0 (1446) Connection changed: disconnect
                              2024-02-22 20:35:41.332  - info: iot.0 (1446) Connection lost
                              2024-02-22 20:35:41.922  - debug: unifi.0 (1655211) Redis Objects: Use Redis connection: 0.0.0.0:9001
                              2024-02-22 20:35:42.005  - debug: unifi.0 (1655211) Objects client ready ... initialize now
                              2024-02-22 20:35:42.010  - debug: unifi.0 (1655211) Objects create System PubSub Client
                              2024-02-22 20:35:42.012  - debug: unifi.0 (1655211) Objects create User PubSub Client
                              2024-02-22 20:35:42.165  - debug: unifi.0 (1655211) Objects client initialize lua scripts
                              2024-02-22 20:35:42.175  - debug: unifi.0 (1655211) Objects connected to redis: 0.0.0.0:9001
                              2024-02-22 20:35:42.288  - debug: unifi.0 (1655211) Redis States: Use Redis connection: 0.0.0.0:6379
                              2024-02-22 20:35:42.298  - debug: unifi.0 (1655211) States create System PubSub Client
                              2024-02-22 20:35:42.300  - debug: unifi.0 (1655211) States create User PubSub Client
                              2024-02-22 20:35:42.316  - debug: unifi.0 (1655211) States connected to redis: 0.0.0.0:6379
                              2024-02-22 20:35:42.393  - debug: unifi.0 (1655211) Plugin sentry Initialize Plugin (enabled=true)
                              2024-02-22 20:35:42.401  - info: unifi.0 (1655211) Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
                              2024-02-22 20:35:42.878  - info: unifi.0 (1655211) starting. Version 0.6.7 in /opt/iobroker/node_modules/iobroker.unifi, node: v18.17.1, js-controller: 5.0.12
                              2024-02-22 20:35:42.940  - info: unifi.0 (1655211) UniFi adapter is ready
                              2024-02-22 20:35:42.942  - debug: unifi.0 (1655211) controller = 192.168.1.10:8443
                              2024-02-22 20:35:42.943  - debug: unifi.0 (1655211) updateInterval = 60
                              2024-02-22 20:35:42.944  - debug: unifi.0 (1655211) Update started
                              2024-02-22 20:35:50.957  - info: cloud.0 (644250) Trying to connect as system.user.admin to cloud
                              2024-02-22 20:35:53.390  - error: unifi.0 (1655211) [updateUnifiData-login site undefined] error: timeout of 10000ms exceeded, stack: AxiosError: timeout of 10000ms exceeded
                                  at RedirectableRequest.handleRequestTimeout (/opt/iobroker/node_modules/axios/dist/node/axios.cjs:3120:16)
                                  at RedirectableRequest.emit (node:events:514:28)
                                  at Timeout.<anonymous> (/opt/iobroker/node_modules/follow-redirects/index.js:210:12)
                                  at listOnTimeout (node:internal/timers:569:17)
                                  at process.processTimers (node:internal/timers:512:7)
                              2024-02-22 20:35:53.392  - error: unifi.0 (1655211) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                              2024-02-22 20:35:53.394  - error: unifi.0 (1655211) unhandled promise rejection: Cannot read properties of undefined (reading 'captureException')
                              2024-02-22 20:35:53.395  - error: unifi.0 (1655211) TypeError: Cannot read properties of undefined (reading 'captureException')
                                  at Unifi.handleError (/opt/iobroker/node_modules/iobroker.unifi/main.js:243:53)
                                  at Unifi.updateUnifiData (/opt/iobroker/node_modules/iobroker.unifi/main.js:269:22)
                              2024-02-22 20:35:53.396  - error: unifi.0 (1655211) Cannot read properties of undefined (reading 'captureException')
                              2024-02-22 20:35:53.401  - info: unifi.0 (1655211) cleaned everything up...
                              2024-02-22 20:35:53.402  - info: unifi.0 (1655211) terminating
                              2024-02-22 20:35:53.403  - debug: unifi.0 (1655211) Plugin sentry destroyed
                              2024-02-22 20:35:53.404  - warn: unifi.0 (1655211) Terminated (UNCAUGHT_EXCEPTION): Without reason
                              2024-02-22 20:35:53.907  - info: unifi.0 (1655211) terminating
                              2024-02-22 20:35:54.450  - error: host.smarthome instance system.adapter.unifi.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                              2024-02-22 20:35:54.452  - info: host.smarthome Restart adapter system.adapter.unifi.0 because enabled
                              2024-02-22 20:35:54.454  - warn: host.smarthome Do not restart adapter system.adapter.unifi.0 because restart loop detected
                              

                              Ich hab in den Logs auch ein paar Fehlermeldungen vom Cloud und Telegram Adapter, wo sie disconnected waren. Evtl hat das UniFi Problem ja auch was mit einer unterbrochenen Verbindug zu tun.

                              Leider sind im Log beim Kopieren die komischen Sonderzeichen gelandet. Ich hoffe es ist trotzdem für euch lesbar.

                              Habt ihr eine Idee woran es liegen kann, dass der Adapter immer wieder abstürzt?

                              F 1 Reply Last reply
                              0
                              • M martinschm

                                Hi,

                                ich hab immer wieder das Problem, das mein unifi Adapter wg zu vieler Abstürze gestoppt wird. Ich hab dann immer auf debug Modus gestellt und das Problem trat ewig nicht auf. Jetzt hab ich endlich mal einen Ausstieg erwischt und hab ein paar Logs.

                                2024-02-22 20:33:11.822  - debug: unifi.0 (2124279) Search can't be optimized because wildcard not at the end, fallback to keys!: function(doc) { if (doc.type === 'state') emit(doc._id, doc) }
                                2024-02-22 20:33:11.912  - debug: unifi.0 (2124279) Search can't be optimized because wildcard not at the end, fallback to keys!: function(doc) { if (doc.type === 'state') emit(doc._id, doc) }
                                2024-02-22 20:33:12.318  - debug: unifi.0 (2124279) Update done
                                2024-02-22 20:34:12.319  - debug: unifi.0 (2124279) Update started
                                2024-02-22 20:34:22.360  - error: unifi.0 (2124279) [updateUnifiData-login site undefined] error: timeout of 10000ms exceeded, stack: AxiosError: timeout of 10000ms exceeded
                                    at RedirectableRequest.handleRequestTimeout (/opt/iobroker/node_modules/axios/dist/node/axios.cjs:3120:16)
                                    at RedirectableRequest.emit (node:events:514:28)
                                    at Timeout.<anonymous> (/opt/iobroker/node_modules/follow-redirects/index.js:210:12)
                                    at listOnTimeout (node:internal/timers:569:17)
                                    at process.processTimers (node:internal/timers:512:7)
                                2024-02-22 20:34:22.364  - error: unifi.0 (2124279) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                                2024-02-22 20:34:22.364  - error: unifi.0 (2124279) unhandled promise rejection: Cannot read properties of undefined (reading 'captureException')
                                2024-02-22 20:34:22.365  - error: unifi.0 (2124279) TypeError: Cannot read properties of undefined (reading 'captureException')
                                    at Unifi.handleError (/opt/iobroker/node_modules/iobroker.unifi/main.js:243:53)
                                    at Unifi.updateUnifiData (/opt/iobroker/node_modules/iobroker.unifi/main.js:269:22)
                                2024-02-22 20:34:22.365  - error: unifi.0 (2124279) Cannot read properties of undefined (reading 'captureException')
                                2024-02-22 20:34:22.370  - info: unifi.0 (2124279) cleaned everything up...
                                2024-02-22 20:34:22.371  - info: unifi.0 (2124279) terminating
                                2024-02-22 20:34:22.371  - debug: unifi.0 (2124279) Plugin sentry destroyed
                                2024-02-22 20:34:22.372  - warn: unifi.0 (2124279) Terminated (UNCAUGHT_EXCEPTION): Without reason
                                2024-02-22 20:34:22.877  - info: unifi.0 (2124279) terminating
                                2024-02-22 20:34:23.424  - error: host.smarthome instance system.adapter.unifi.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                                2024-02-22 20:34:23.426  - info: host.smarthome Restart adapter system.adapter.unifi.0 because enabled
                                2024-02-22 20:34:49.560  - warn: telegram.0 (873586) polling_error: EFATAL, EFATAL: Error: read ETIMEDOUT
                                2024-02-22 20:34:50.930  - error: cloud.0 (644250) Ping timeout
                                2024-02-22 20:34:53.990  - info: host.smarthome instance system.adapter.unifi.0 started with pid 1655176
                                2024-02-22 20:34:56.608  - debug: unifi.0 (1655176) Redis Objects: Use Redis connection: 0.0.0.0:9001
                                2024-02-22 20:34:56.694  - debug: unifi.0 (1655176) Objects client ready ... initialize now
                                2024-02-22 20:34:56.696  - debug: unifi.0 (1655176) Objects create System PubSub Client
                                2024-02-22 20:34:56.698  - debug: unifi.0 (1655176) Objects create User PubSub Client
                                2024-02-22 20:34:56.890  - debug: unifi.0 (1655176) Objects client initialize lua scripts
                                2024-02-22 20:34:56.903  - debug: unifi.0 (1655176) Objects connected to redis: 0.0.0.0:9001
                                2024-02-22 20:34:57.001  - debug: unifi.0 (1655176) Redis States: Use Redis connection: 0.0.0.0:6379
                                2024-02-22 20:34:57.012  - debug: unifi.0 (1655176) States create System PubSub Client
                                2024-02-22 20:34:57.013  - debug: unifi.0 (1655176) States create User PubSub Client
                                2024-02-22 20:34:57.028  - debug: unifi.0 (1655176) States connected to redis: 0.0.0.0:6379
                                2024-02-22 20:34:57.120  - debug: unifi.0 (1655176) Plugin sentry Initialize Plugin (enabled=true)
                                2024-02-22 20:34:57.130  - info: unifi.0 (1655176) Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
                                2024-02-22 20:34:57.568  - info: unifi.0 (1655176) starting. Version 0.6.7 in /opt/iobroker/node_modules/iobroker.unifi, node: v18.17.1, js-controller: 5.0.12
                                2024-02-22 20:34:57.623  - info: unifi.0 (1655176) UniFi adapter is ready
                                2024-02-22 20:34:57.624  - debug: unifi.0 (1655176) controller = 192.168.1.10:8443
                                2024-02-22 20:34:57.626  - debug: unifi.0 (1655176) updateInterval = 60
                                2024-02-22 20:34:57.627  - debug: unifi.0 (1655176) Update started
                                2024-02-22 20:35:08.075  - error: unifi.0 (1655176) [updateUnifiData-login site undefined] error: timeout of 10000ms exceeded, stack: AxiosError: timeout of 10000ms exceeded
                                    at RedirectableRequest.handleRequestTimeout (/opt/iobroker/node_modules/axios/dist/node/axios.cjs:3120:16)
                                    at RedirectableRequest.emit (node:events:514:28)
                                    at Timeout.<anonymous> (/opt/iobroker/node_modules/follow-redirects/index.js:210:12)
                                    at listOnTimeout (node:internal/timers:569:17)
                                    at process.processTimers (node:internal/timers:512:7)
                                2024-02-22 20:35:08.078  - error: unifi.0 (1655176) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                                2024-02-22 20:35:08.079  - error: unifi.0 (1655176) unhandled promise rejection: Cannot read properties of undefined (reading 'captureException')
                                2024-02-22 20:35:08.080  - error: unifi.0 (1655176) TypeError: Cannot read properties of undefined (reading 'captureException')
                                    at Unifi.handleError (/opt/iobroker/node_modules/iobroker.unifi/main.js:243:53)
                                    at Unifi.updateUnifiData (/opt/iobroker/node_modules/iobroker.unifi/main.js:269:22)
                                2024-02-22 20:35:08.081  - error: unifi.0 (1655176) Cannot read properties of undefined (reading 'captureException')
                                2024-02-22 20:35:08.091  - info: unifi.0 (1655176) cleaned everything up...
                                2024-02-22 20:35:08.092  - info: unifi.0 (1655176) terminating
                                2024-02-22 20:35:08.093  - debug: unifi.0 (1655176) Plugin sentry destroyed
                                2024-02-22 20:35:08.094  - warn: unifi.0 (1655176) Terminated (UNCAUGHT_EXCEPTION): Without reason
                                2024-02-22 20:35:08.596  - info: unifi.0 (1655176) terminating
                                2024-02-22 20:35:08.974  - error: host.smarthome instance system.adapter.unifi.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                                2024-02-22 20:35:08.975  - info: host.smarthome Restart adapter system.adapter.unifi.0 because enabled
                                2024-02-22 20:35:20.958  - info: cloud.0 (644250) Trying to connect as system.user.admin to cloud
                                2024-02-22 20:35:30.944  - error: cloud.0 (644250) Error while connecting to cloud: timeout
                                2024-02-22 20:35:39.599  - info: host.smarthome instance system.adapter.unifi.0 started with pid 1655211
                                2024-02-22 20:35:41.329  - info: iot.0 (1446) Connection changed: disconnect
                                2024-02-22 20:35:41.332  - info: iot.0 (1446) Connection lost
                                2024-02-22 20:35:41.922  - debug: unifi.0 (1655211) Redis Objects: Use Redis connection: 0.0.0.0:9001
                                2024-02-22 20:35:42.005  - debug: unifi.0 (1655211) Objects client ready ... initialize now
                                2024-02-22 20:35:42.010  - debug: unifi.0 (1655211) Objects create System PubSub Client
                                2024-02-22 20:35:42.012  - debug: unifi.0 (1655211) Objects create User PubSub Client
                                2024-02-22 20:35:42.165  - debug: unifi.0 (1655211) Objects client initialize lua scripts
                                2024-02-22 20:35:42.175  - debug: unifi.0 (1655211) Objects connected to redis: 0.0.0.0:9001
                                2024-02-22 20:35:42.288  - debug: unifi.0 (1655211) Redis States: Use Redis connection: 0.0.0.0:6379
                                2024-02-22 20:35:42.298  - debug: unifi.0 (1655211) States create System PubSub Client
                                2024-02-22 20:35:42.300  - debug: unifi.0 (1655211) States create User PubSub Client
                                2024-02-22 20:35:42.316  - debug: unifi.0 (1655211) States connected to redis: 0.0.0.0:6379
                                2024-02-22 20:35:42.393  - debug: unifi.0 (1655211) Plugin sentry Initialize Plugin (enabled=true)
                                2024-02-22 20:35:42.401  - info: unifi.0 (1655211) Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
                                2024-02-22 20:35:42.878  - info: unifi.0 (1655211) starting. Version 0.6.7 in /opt/iobroker/node_modules/iobroker.unifi, node: v18.17.1, js-controller: 5.0.12
                                2024-02-22 20:35:42.940  - info: unifi.0 (1655211) UniFi adapter is ready
                                2024-02-22 20:35:42.942  - debug: unifi.0 (1655211) controller = 192.168.1.10:8443
                                2024-02-22 20:35:42.943  - debug: unifi.0 (1655211) updateInterval = 60
                                2024-02-22 20:35:42.944  - debug: unifi.0 (1655211) Update started
                                2024-02-22 20:35:50.957  - info: cloud.0 (644250) Trying to connect as system.user.admin to cloud
                                2024-02-22 20:35:53.390  - error: unifi.0 (1655211) [updateUnifiData-login site undefined] error: timeout of 10000ms exceeded, stack: AxiosError: timeout of 10000ms exceeded
                                    at RedirectableRequest.handleRequestTimeout (/opt/iobroker/node_modules/axios/dist/node/axios.cjs:3120:16)
                                    at RedirectableRequest.emit (node:events:514:28)
                                    at Timeout.<anonymous> (/opt/iobroker/node_modules/follow-redirects/index.js:210:12)
                                    at listOnTimeout (node:internal/timers:569:17)
                                    at process.processTimers (node:internal/timers:512:7)
                                2024-02-22 20:35:53.392  - error: unifi.0 (1655211) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                                2024-02-22 20:35:53.394  - error: unifi.0 (1655211) unhandled promise rejection: Cannot read properties of undefined (reading 'captureException')
                                2024-02-22 20:35:53.395  - error: unifi.0 (1655211) TypeError: Cannot read properties of undefined (reading 'captureException')
                                    at Unifi.handleError (/opt/iobroker/node_modules/iobroker.unifi/main.js:243:53)
                                    at Unifi.updateUnifiData (/opt/iobroker/node_modules/iobroker.unifi/main.js:269:22)
                                2024-02-22 20:35:53.396  - error: unifi.0 (1655211) Cannot read properties of undefined (reading 'captureException')
                                2024-02-22 20:35:53.401  - info: unifi.0 (1655211) cleaned everything up...
                                2024-02-22 20:35:53.402  - info: unifi.0 (1655211) terminating
                                2024-02-22 20:35:53.403  - debug: unifi.0 (1655211) Plugin sentry destroyed
                                2024-02-22 20:35:53.404  - warn: unifi.0 (1655211) Terminated (UNCAUGHT_EXCEPTION): Without reason
                                2024-02-22 20:35:53.907  - info: unifi.0 (1655211) terminating
                                2024-02-22 20:35:54.450  - error: host.smarthome instance system.adapter.unifi.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                                2024-02-22 20:35:54.452  - info: host.smarthome Restart adapter system.adapter.unifi.0 because enabled
                                2024-02-22 20:35:54.454  - warn: host.smarthome Do not restart adapter system.adapter.unifi.0 because restart loop detected
                                

                                Ich hab in den Logs auch ein paar Fehlermeldungen vom Cloud und Telegram Adapter, wo sie disconnected waren. Evtl hat das UniFi Problem ja auch was mit einer unterbrochenen Verbindug zu tun.

                                Leider sind im Log beim Kopieren die komischen Sonderzeichen gelandet. Ich hoffe es ist trotzdem für euch lesbar.

                                Habt ihr eine Idee woran es liegen kann, dass der Adapter immer wieder abstürzt?

                                F Offline
                                F Offline
                                Freak
                                wrote on last edited by
                                #915

                                @martinschm
                                Bei mir fällt der Adapter auch immer aus, wenn die Internetverbindung nicht stabil ist oder unterbrochen wird. Woran das liegt konnte ich bis jetzt leider auch nicht rausfinden.

                                1 Reply Last reply
                                0
                                • W warp735

                                  @meister-mopper sagte in Adapter: ioBroker.unifi:

                                  Ich habe einen lokalen Zugang

                                  Wo hast Du den eingerichtet? Hab MFA jetzt aktiviert und Adapter läuft nicht mehr. Geb ich die IP der UDM hier lokal ein, wird auch ein mfa Pin benötigt. Das muss ich doch dann irgendwo abstellen können?

                                  Meister MopperM Away
                                  Meister MopperM Away
                                  Meister Mopper
                                  wrote on last edited by
                                  #916

                                  @warp735 sagte in Adapter: ioBroker.unifi:

                                  @meister-mopper sagte in Adapter: ioBroker.unifi:

                                  Ich habe einen lokalen Zugang

                                  Wo hast Du den eingerichtet? Hab MFA jetzt aktiviert und Adapter läuft nicht mehr. Geb ich die IP der UDM hier lokal ein, wird auch ein mfa Pin benötigt. Das muss ich doch dann irgendwo abstellen können?

                                  Bei Admin & Users

                                  6e6a099a-1e5b-4e68-ac4e-f70f491bfd70-grafik.png

                                  Der obere ist cloud mit 2FA und der untere lokal mit pw.

                                  Proxmox und HA

                                  A 1 Reply Last reply
                                  0
                                  • coyoteC Offline
                                    coyoteC Offline
                                    coyote
                                    Most Active
                                    wrote on last edited by
                                    #917

                                    Ich habe auch immer mal wieder Ausfälle, sieht dann so aus im Log:

                                    host.ioBroker
                                    2024-03-05 16:29:20.379	error	instance system.adapter.unifi.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                                    
                                    unifi.0
                                    2024-03-05 16:29:20.086	info	terminating
                                    
                                    unifi.0
                                    2024-03-05 16:29:19.584	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
                                    
                                    unifi.0
                                    2024-03-05 16:29:19.583	info	terminating
                                    
                                    unifi.0
                                    2024-03-05 16:29:19.582	info	cleaned everything up...
                                    
                                    unifi.0
                                    2024-03-05 16:29:19.568	error	Cannot read properties of undefined (reading 'captureException')
                                    
                                    unifi.0
                                    2024-03-05 16:29:19.568	error	TypeError: Cannot read properties of undefined (reading 'captureException') at Unifi.handleError (/opt/iobroker/node_modules/iobroker.unifi/main.js:243:53) at Unifi.updateUnifiData (/opt/iobroker/node_modules/iobroker.unifi/main.js:269:22)
                                    
                                    unifi.0
                                    2024-03-05 16:29:19.565	error	unhandled promise rejection: Cannot read properties of undefined (reading 'captureException')
                                    
                                    unifi.0
                                    2024-03-05 16:29:19.564	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                                    
                                    unifi.0
                                    2024-03-05 16:29:19.558	error	[updateUnifiData-login site undefined] error: timeout of 10000ms exceeded, stack: AxiosError: timeout of 10000ms exceeded at RedirectableRequest.handleRequestTimeout (/opt/iobroker/node_modules/node-unifi/node_modules/axios/dist/node/axios.cjs:3120:16) at RedirectableRequest.emit (node:events:517:28) at Timeout.<anonymous> (/opt/iobroker/node_modules/follow-redirects/index.js:209:12) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7)
                                    

                                    "updateUnifiData-login site undefined" die Site kann ich aber im Adapter doch gar nicht konfigurieren oder? Adapter greift auf eine UDM-Pro zu. Jemand ne Idee?

                                    O 1 Reply Last reply
                                    0
                                    • coyoteC coyote

                                      Ich habe auch immer mal wieder Ausfälle, sieht dann so aus im Log:

                                      host.ioBroker
                                      2024-03-05 16:29:20.379	error	instance system.adapter.unifi.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                                      
                                      unifi.0
                                      2024-03-05 16:29:20.086	info	terminating
                                      
                                      unifi.0
                                      2024-03-05 16:29:19.584	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
                                      
                                      unifi.0
                                      2024-03-05 16:29:19.583	info	terminating
                                      
                                      unifi.0
                                      2024-03-05 16:29:19.582	info	cleaned everything up...
                                      
                                      unifi.0
                                      2024-03-05 16:29:19.568	error	Cannot read properties of undefined (reading 'captureException')
                                      
                                      unifi.0
                                      2024-03-05 16:29:19.568	error	TypeError: Cannot read properties of undefined (reading 'captureException') at Unifi.handleError (/opt/iobroker/node_modules/iobroker.unifi/main.js:243:53) at Unifi.updateUnifiData (/opt/iobroker/node_modules/iobroker.unifi/main.js:269:22)
                                      
                                      unifi.0
                                      2024-03-05 16:29:19.565	error	unhandled promise rejection: Cannot read properties of undefined (reading 'captureException')
                                      
                                      unifi.0
                                      2024-03-05 16:29:19.564	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                                      
                                      unifi.0
                                      2024-03-05 16:29:19.558	error	[updateUnifiData-login site undefined] error: timeout of 10000ms exceeded, stack: AxiosError: timeout of 10000ms exceeded at RedirectableRequest.handleRequestTimeout (/opt/iobroker/node_modules/node-unifi/node_modules/axios/dist/node/axios.cjs:3120:16) at RedirectableRequest.emit (node:events:517:28) at Timeout.<anonymous> (/opt/iobroker/node_modules/follow-redirects/index.js:209:12) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7)
                                      

                                      "updateUnifiData-login site undefined" die Site kann ich aber im Adapter doch gar nicht konfigurieren oder? Adapter greift auf eine UDM-Pro zu. Jemand ne Idee?

                                      O Offline
                                      O Offline
                                      oxident
                                      wrote on last edited by
                                      #918

                                      @coyote Das undefined ist ein Folgefehler. Durch das Timeout ist das "site"-Objekt halt leer. Da muss irgendwie ein tieferes Problem sein ... haben viele von uns.

                                      coyoteC 1 Reply Last reply
                                      1
                                      • O oxident

                                        @coyote Das undefined ist ein Folgefehler. Durch das Timeout ist das "site"-Objekt halt leer. Da muss irgendwie ein tieferes Problem sein ... haben viele von uns.

                                        coyoteC Offline
                                        coyoteC Offline
                                        coyote
                                        Most Active
                                        wrote on last edited by
                                        #919

                                        @oxident ah ok, danke für die info

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          mrMuppet
                                          wrote on last edited by
                                          #920

                                          Ich hab im Moment das Problem, dass die Anwesenheit nicht richtig angezeigt wird. Das ganze lief viele Monate ohne Probleme. In "UniFi Network Application 8.0.28" werden die Geräte korrekt angezeigt. der unifi-adapter verbindet sich "angeblich" problemlos. Aber kein Gerät wird als is_online angezeigt.

                                          Im Log steht immer wieder:

                                          unifi.0 2024-03-23 13:39:22.865	debug	Update done
                                          unifi.0 2024-03-23 13:39:22.698	debug	Search can't be optimized because wildcard not at the end, fallback to keys!: function(doc) { if (doc.type === 'state') emit(doc._id, doc) }
                                          unifi.0 2024-03-23 13:39:22.581	debug	Search can't be optimized because wildcard not at the end, fallback to keys!: function(doc) { if (doc.type === 'state') emit(doc._id, doc) }
                                          unifi.0 2024-03-23 13:39:21.355	debug	fetchAlarms default: 264
                                          unifi.0 2024-03-23 13:39:21.249	debug	fetchHealth default: 5
                                          unifi.0 2024-03-23 13:39:21.179	debug	fetchWlans default: 2
                                          unifi.0 2024-03-23 13:39:20.730	debug	fetchDevices default: 8
                                          unifi.0 2024-03-23 13:39:20.383	debug	fetchClients default: 39
                                          unifi.0 2024-03-23 13:39:20.275	debug	fetchSiteSysinfo default: 1
                                          unifi.0 2024-03-23 13:39:20.234	debug	Update site: default
                                          unifi.0 2024-03-23 13:39:20.233	debug	fetchSites: default
                                          unifi.0 2024-03-23 13:39:20.198	debug	Login successful
                                          unifi.0 2024-03-23 13:39:19.923	debug	Update started
                                          

                                          Ich hab diverse alte Versionen ausprobiert. Keine Verbesserung.

                                          Was kann ich tun?

                                          ioBroker auf NUC (Celeron mit Ubuntu-Server)

                                          Homematic, HMIP, Hue, Unifi, Plex, Nest, Roborock, Google Assistant

                                          M 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          814

                                          Online

                                          32.4k

                                          Users

                                          81.6k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe