Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Adapter: ioBroker.unifi

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Adapter: ioBroker.unifi

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

      @crunchip muss ihn zweimal am Tag durchstarten lassen, da sonst von iobroker eine Absturzmeldung kommt.
      Hab die schon länger, war auf einem RP und jetzt auf einem Win10 Installation das selbe.

      crunchip 1 Reply Last reply Reply Quote 0
      • maximal1981
        maximal1981 @Hant0r last edited by

        @hant0r stimmt, dachte die wären separiert.
        dann erst "Is guest" --> "Is online" --> hostname

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

          @maximal1981 mit welcher Log Meldung?
          Zugangsdaten mal neu im Adapter eingegeben?
          Welche UniFi Version bzw Router?

          maximal1981 1 Reply Last reply Reply Quote 0
          • maximal1981
            maximal1981 @crunchip last edited by

            @crunchip der normale Gateway 3P und aktuelle Versionen
            UCK G2 Plus v3.0.17
            Network 7.3.83

            1 Reply Last reply Reply Quote 0
            • maximal1981
              maximal1981 @Hant0r last edited by

              @hant0r fertig

              Screenshot 2023-05-27 090646.jpg

              1 Reply Last reply Reply Quote 1
              • Hant0r
                Hant0r last edited by

                @maximal1981 ach cool, kannst du das mal bitte exportieren und hier einfügen?

                maximal1981 1 Reply Last reply Reply Quote 0
                • maximal1981
                  maximal1981 @Hant0r last edited by

                  @hant0r

                  <block xmlns="https://developers.google.com/blockly/xml" type="controls_forEach" id="vZbxi%A.Z4NK.,]GJf)g" x="13" y="13">
                    <field name="VAR" id="pkt|st/Cek!e1rU)d:03">i</field>
                    <value name="LIST">
                      <block type="selector" id="OPLe^Bf?~}UAZWL/)zt7">
                        <field name="TEXT">channel[state.id=unifi.0.default.clients.*.is_guest]</field>
                      </block>
                    </value>
                    <statement name="DO">
                      <block type="controls_if" id=".1zT|W;Hi*6~j(y-dw44">
                        <value name="IF0">
                          <block type="get_value_var" id="F0$j|B1T|Erp$blJ|5r.">
                            <field name="ATTR">val</field>
                            <value name="OID">
                              <shadow type="text" id="uHNphjS^h7Zh|eF:[2HV">
                                <field name="TEXT"></field>
                              </shadow>
                              <block type="variables_get" id="a@;ce{1B.J=16UwPtP(8">
                                <field name="VAR" id="pkt|st/Cek!e1rU)d:03">i</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="controls_if" id="Cc((*OSV]#!gyL;)bhm}">
                            <value name="IF0">
                              <block type="get_value_var" id="a+V9qy^A)h%.;9[A.p/{">
                                <field name="ATTR">val</field>
                                <value name="OID">
                                  <shadow type="text">
                                    <field name="TEXT"></field>
                                  </shadow>
                                  <block type="text_join" id="f7eDd5B[|h%CwdvDH)ZT">
                                    <mutation items="2"></mutation>
                                    <value name="ADD0">
                                      <block type="text_getSubstring" id="}F(}=/aI47ar,nmgv3Es">
                                        <mutation at1="false" at2="true"></mutation>
                                        <field name="WHERE1">FIRST</field>
                                        <field name="WHERE2">FROM_END</field>
                                        <value name="STRING">
                                          <block type="variables_get" id="7:a33VN;jOwS?0#KJHIm">
                                            <field name="VAR" id="pkt|st/Cek!e1rU)d:03">i</field>
                                          </block>
                                        </value>
                                        <value name="AT2">
                                          <block type="math_number" id="jR;$5/3[PUr~d@q`rVrI">
                                            <field name="NUM">9</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="ADD1">
                                      <block type="text" id="}DVtEPx5rLg/1/QX98JY">
                                        <field name="TEXT">is_online</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="debug" id="kV~NE!s|Ek`WRWA_3z=f">
                                <field name="Severity">warn</field>
                                <value name="TEXT">
                                  <shadow type="text" id="+/+uj1X|3wvPa+EL==Aa">
                                    <field name="TEXT">test</field>
                                  </shadow>
                                  <block type="get_value_var" id="ld$Y]!h,n*asj4VOLP05">
                                    <field name="ATTR">val</field>
                                    <value name="OID">
                                      <shadow type="text" id="lorWqtUi2q{,SgHNm,O(">
                                        <field name="TEXT"></field>
                                      </shadow>
                                      <block type="text_join" id="%Mj,=I9Y(7rI(SPf26H^">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text_getSubstring" id="A;bSBAJzH#KBwHr(oJ|I">
                                            <mutation at1="false" at2="true"></mutation>
                                            <field name="WHERE1">FIRST</field>
                                            <field name="WHERE2">FROM_END</field>
                                            <value name="STRING">
                                              <block type="variables_get" id="p!Le_?0:lGo(BlaN1p;3">
                                                <field name="VAR" id="pkt|st/Cek!e1rU)d:03">i</field>
                                              </block>
                                            </value>
                                            <value name="AT2">
                                              <block type="math_number" id="rd+j#2SK?tM@Kg0$z:k?">
                                                <field name="NUM">9</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="text" id="Ir%@AjEm,i:bfX5S~Ay0">
                                            <field name="TEXT">hostname</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                  
                  1 Reply Last reply Reply Quote 1
                  • Hant0r
                    Hant0r last edited by

                    @maximal1981 Mega, vielen lieben Dank - wieder was gelernt 😄

                    1 Reply Last reply Reply Quote 1
                    • M
                      Malz1902 last edited by

                      also bei mir läuft der 24/7 durch

                      W 1 Reply Last reply Reply Quote 0
                      • W
                        warp735 @Malz1902 last edited by

                        @malz1902
                        Bei mir auch... Nur bei Updates kommen Absturz Meldungen. 1x Neustart und gut ist

                        1 Reply Last reply Reply Quote 0
                        • F
                          fliegema last edited by

                          Moin Freunde des smarten Homes,

                          nutze den Adapter (v0.6.6) schon länger und bis dato hat dieser immer tadelos funktioniert.

                          Leider bekomme ich nun folgende Fehlermeldungen (leider kommt zwischen debug und info keine andere Meldung zustande):

                          a3905e7b-4be2-48c1-b56f-e4dc620b4847-image.png

                          Eben habe ich den Adapter zum xten Mal neu gestartet und es kommt kein Fehler mehr und die Datenpunkte werden übertragen.

                          Der Controller ist ein: Ubuntu 20.04.6 LTS (GNU/Linux 5.15.0-1038-oracle x86_64) mit Unifi 7.4.162

                          Vouchers, Alarm, DPI und Gateway Traffic sind deaktiviert.

                          Irgendwelche Ideen?
                          Gruss

                          Meister Mopper 1 Reply Last reply Reply Quote 0
                          • Meister Mopper
                            Meister Mopper @fliegema last edited by

                            @fliegema sagte in Adapter: ioBroker.unifi:

                            Irgendwelche Ideen?

                            Hast du heute das update des Adapters durchgeführt? In diesem Fall kommt diese Meldung, weil eine gewisse Zeit der Controller nicht erreichbar ist.

                            F 1 Reply Last reply Reply Quote 0
                            • F
                              fliegema @Meister Mopper last edited by

                              @meister-mopper jup, hatte durch Zufall gesehen, dass es ein Update gibt. Hat mir der vorhergehenden Version aber auch nicht geklappt, es fing direkt nach dem Unif Adapter Update an. Habe auch bis auf 5.1. gedowngraded hat aber leider auch keinen Erfolg gebracht.

                              Kann ich irgendwie noch mehr debug Code zur Verfügung stellen?

                              1 Reply Last reply Reply Quote 0
                              • Meister Mopper
                                Meister Mopper last edited by Meister Mopper

                                @fliegema

                                Ok, dann stell mal hier das Ergebnis von

                                iob diag ein,

                                aber bitte in code tags

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

                                  @fliegema sagte in Adapter: ioBroker.unifi:

                                  Irgendwelche Ideen?

                                  einfach mal das passwort neu eintragen in der Instanz

                                  F 1 Reply Last reply Reply Quote 0
                                  • F
                                    fliegema @crunchip last edited by

                                    Danke für die Hinweise, hat leider noch nicht geklappt.

                                    @crunchip said in Adapter: ioBroker.unifi:

                                    @fliegema sagte in Adapter: ioBroker.unifi:

                                    Irgendwelche Ideen?

                                    einfach mal das passwort neu eintragen in der Instanz

                                    Hatte ich bereits probiert und eben erneut ein neues Passwort vergeben. Er synced auch manchmal die Datenpunkte aber verabschiedet sich in den roten Status.

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

                                    @fliegema

                                    Ok, dann stell mal hier das Ergebnis von

                                    iob diag ein,

                                    aber bitte in code tags

                                    2023-07-08 13:51:24.150  - info: host.ioBroker instance system.adapter.unifi.0 started with pid 621374
                                    2023-07-08 13:51:25.027  - info: unifi.0 (621374) Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
                                    2023-07-08 13:51:25.183  - info: unifi.0 (621374) starting. Version 0.6.6 in /opt/iobroker/node_modules/iobroker.unifi, node: v16.20.0, js-controller: 4.0.24
                                    2023-07-08 13:51:25.228  - info: unifi.0 (621374) UniFi adapter is ready
                                    2023-07-08 13:51:30.556  - error: unifi.0 (621374) [updateUnifiData-login site undefined] error: timeout of 5000ms exceeded, stack: AxiosError: timeout of 5000ms exceeded
                                        at RedirectableRequest.handleRequestTimeout (/opt/iobroker/node_modules/node-unifi/node_modules/axios/dist/node/axios.cjs:3047:16)
                                        at RedirectableRequest.emit (node:events:513:28)
                                        at Timeout.<anonymous> (/opt/iobroker/node_modules/follow-redirects/index.js:169:12)
                                        at listOnTimeout (node:internal/timers:559:17)
                                        at processTimers (node:internal/timers:502:7)
                                    2023-07-08 13:51:30.557  - error: unifi.0 (621374) 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().
                                    2023-07-08 13:51:30.557  - error: unifi.0 (621374) unhandled promise rejection: Cannot read properties of undefined (reading 'captureException')
                                    2023-07-08 13:51:30.557  - error: unifi.0 (621374) 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:268:22)
                                    2023-07-08 13:51:30.557  - error: unifi.0 (621374) Cannot read properties of undefined (reading 'captureException')
                                    2023-07-08 13:51:30.571  - info: unifi.0 (621374) cleaned everything up...
                                    2023-07-08 13:51:30.571  - info: unifi.0 (621374) terminating
                                    2023-07-08 13:51:30.572  - warn: unifi.0 (621374) Terminated (UNCAUGHT_EXCEPTION): Without reason
                                    2023-07-08 13:51:31.135  - error: host.ioBroker instance system.adapter.unifi.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                                    2023-07-08 13:51:31.135  - info: host.ioBroker Restart adapter system.adapter.unifi.0 because enabled
                                    2023-07-08 13:51:32.215  - info: host.ioBroker instance system.adapter.unifi.0 started with pid 621464
                                    2023-07-08 13:51:33.513  - info: unifi.0 (621464) Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
                                    2023-07-08 13:51:33.942  - info: unifi.0 (621464) starting. Version 0.6.6 in /opt/iobroker/node_modules/iobroker.unifi, node: v16.20.0, js-controller: 4.0.24
                                    2023-07-08 13:51:34.084  - info: unifi.0 (621464) UniFi adapter is ready
                                    

                                    Hier hat er es mal für 1min überlebt, danach wieder auf rot.

                                    Versionsstände:

                                    Core adapters versions
                                    js-controller:  4.0.24
                                    admin:          6.3.5
                                    javascript:     7.0.3
                                    
                                    Operatingsystem:        Ubuntu 22.04.2 LTS
                                    Kernel:                 5.15.74-1-pve
                                    Installation:           lxc
                                    Timezone:               Europe/Berlin (CEST, +0200)
                                    User-ID:                1001
                                    X-Server:               false
                                    Boot Target:            graphical.target
                                    
                                    Pending OS-Updates:     6
                                    Pending iob updates:    0
                                    
                                    Nodejs-Installation:    /usr/bin/nodejs         v18.16.1
                                                            /usr/local/bin/node             v16.20.0
                                                            /usr/local/bin/npm              8.19.4
                                                            /usr/local/bin/npx              8.19.4
                                    
                                    Recommended versions are nodejs 18.x.y and npm 9.x.y
                                    *** nodejs is NOT correctly installed ***
                                    

                                    Hier wunder mich das "nicht korrekt installiert", habe einmal iob fix gemacht und danach kam es auch wieder.

                                    Gruss

                                    Neuschwansteini crunchip 2 Replies Last reply Reply Quote 0
                                    • Neuschwansteini
                                      Neuschwansteini @fliegema last edited by

                                      @fliegema

                                      Schau mal, ich denke deine Node Installation ist nicht ok… Nodejs v18 und Node v16…?

                                      F 1 Reply Last reply Reply Quote 0
                                      • crunchip
                                        crunchip Forum Testing Most Active @fliegema last edited by crunchip

                                        @fliegema nodejs ist falsch installiert
                                        https://forum.iobroker.net/post/460727

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          fliegema @Neuschwansteini last edited by

                                          @ilovegym said in Adapter: ioBroker.unifi:

                                          @fliegema

                                          Schau mal, ich denke deine Node Installation ist nicht ok… Nodejs v18 und Node v16…?

                                          Korrekt, habe ich nun korrigiert.

                                          @crunchip said in Adapter: ioBroker.unifi:

                                          @fliegema nodejs ist falsch installiert
                                          https://forum.iobroker.net/post/460727

                                          Danke für den Link, habe in einem anderen Beitrag noch einen Befehl gefunden, welcher das Verzeichnis löscht, damit die v18 auch endlich startet.

                                          Kurze Zusammenfassung, falls noch Jemand diese Infos braucht:
                                          Kudos an: Help 1 & Help 2

                                          iob stop
                                          sudo rm /usr/local/bin/n*
                                          sudo apt purge --autoremove nodejs* npm node-* libnode*
                                          curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash
                                          apt policy nodejs
                                          sudo apt install nodejs
                                          sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
                                          iob fix
                                          iob start
                                          

                                          Die oben genannten Befehle haben bei mir unter

                                          Operatingsystem:        Ubuntu 22.04.2 LTS
                                          Kernel:                 5.15.74-1-pve
                                          

                                          sowie

                                          Operatingsystem:        Raspbian GNU/Linux 11 (bullseye)
                                          Kernel:                 6.1.21-v7l+
                                          

                                          und

                                          Operatingsystem:        Raspbian GNU/Linux 10 (buster)
                                          Kernel:                 5.10.103-v7+
                                          

                                          funktioniert.

                                          Nodejs-Installation:    /usr/bin/nodejs         v18.16.1
                                                                  /usr/bin/node           v18.16.1
                                                                  /usr/bin/npm            9.5.1
                                                                  /usr/bin/npx            9.5.1
                                          
                                          Recommended versions are nodejs 18.x.y and npm 9.x.y
                                          Your nodejs installation is correct
                                          

                                          Zum Unifi Adapater zurück, der bringt mir leider nach wie vor die gleichen Fehlermeldungen:

                                          2023-07-08 16:43:26.513  - info: host.ioBroker instance system.adapter.unifi.0 started with pid 11431
                                          2023-07-08 16:43:27.483  - info: unifi.0 (11431) Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
                                          2023-07-08 16:43:27.600  - info: unifi.0 (11431) starting. Version 0.6.6 in /opt/iobroker/node_modules/iobroker.unifi, node: v18.16.1, js-controller: 4.0.24
                                          2023-07-08 16:43:27.649  - info: unifi.0 (11431) UniFi adapter is ready
                                          2023-07-08 16:43:33.039  - error: unifi.0 (11431) [updateUnifiData-login site undefined] error: timeout of 5000ms exceeded, stack: AxiosError: timeout of 5000ms exceeded
                                              at RedirectableRequest.handleRequestTimeout (/opt/iobroker/node_modules/node-unifi/node_modules/axios/dist/node/axios.cjs:3047:16)
                                              at RedirectableRequest.emit (node:events:513:28)
                                              at Timeout.<anonymous> (/opt/iobroker/node_modules/follow-redirects/index.js:169:12)
                                              at listOnTimeout (node:internal/timers:569:17)
                                              at process.processTimers (node:internal/timers:512:7)
                                          2023-07-08 16:43:33.040  - error: unifi.0 (11431) 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().
                                          2023-07-08 16:43:33.040  - error: unifi.0 (11431) unhandled promise rejection: Cannot read properties of undefined (reading 'captureException')
                                          2023-07-08 16:43:33.040  - error: unifi.0 (11431) 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:268:22)
                                          2023-07-08 16:43:33.041  - error: unifi.0 (11431) Cannot read properties of undefined (reading 'captureException')
                                          2023-07-08 16:43:33.049  - info: unifi.0 (11431) cleaned everything up...
                                          2023-07-08 16:43:33.050  - info: unifi.0 (11431) terminating
                                          2023-07-08 16:43:33.050  - warn: unifi.0 (11431) Terminated (UNCAUGHT_EXCEPTION): Without reason
                                          2023-07-08 16:43:33.608  - error: host.ioBroker instance system.adapter.unifi.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                                          2023-07-08 16:43:33.608  - info: host.ioBroker Restart adapter system.adapter.unifi.0 because enabled
                                          2023-07-08 16:43:34.670  - info: host.ioBroker instance system.adapter.unifi.0 started with pid 11485
                                          2023-07-08 16:43:35.456  - info: unifi.0 (11485) Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
                                          2023-07-08 16:43:35.537  - info: unifi.0 (11485) starting. Version 0.6.6 in /opt/iobroker/node_modules/iobroker.unifi, node: v18.16.1, js-controller: 4.0.24
                                          2023-07-08 16:43:35.603  - info: unifi.0 (11485) UniFi adapter is ready
                                          

                                          habe auch nochmal Passwort neu eingetragen, leider kein Erfolg.

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

                                            @fliegema worauf läuft dein unifi bzw welche Firmware?

                                            nach deiner nodejs Korrektur mal probiert den Adapter zu löschen und neu zu installieren?

                                            ansonsten mal dort nachsehen, eventuell auch bei den bereits geschlossenen
                                            https://github.com/iobroker-community-adapters/ioBroker.unifi/issues

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

                                            Support us

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

                                            719
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            unifi
                                            170
                                            998
                                            309459
                                            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