NEWS
Adapter: ioBroker.unifi
-
@Chaot habs gerade nochmal editiert meinen Beitrag werds aber mal neustarten
-
Problem besteht auch nach Neustart weiterhin, ich denke das liegt wie oben geschrieben daran das die Adresse sich geändert hat zum aufrufen.
-
@Camuri
mach den Port beim Adapter raus (bei Dir im Foto steht noch 8443 drinn) -
@dslraser sagte in Adapter: ioBroker.unifi:
@Camuri
mach den Port beim Adapter raus (bei Dir im Foto steht noch 8443 drinn)danke das wars
-
@aleks-83 sagte in Adapter: ioBroker.unifi:
In der Doku steht, dass wenn man Datenpunkte vermisst, man unter der URL "https://IP:PORT/api/s/SITE/stat/sta" nachschauen soll.
Dort gibt es den Datenpunkt tx_rates. Aber wie bekome ich ihn jetzt in meinen Adapter?
Hat jemand vielleicht einen Tipp für mich?
-
@aleks-83 said in Adapter: ioBroker.unifi:
https://IP:PORT/api/s/SITE/stat/sta
Ich kann dir vielleicht danach helfen, wenn ich mal gesehen habe was man dort sehen kann, aber ich kriege dort nichts angezeigt. Wie sieht dies bei dir aus?
-
@uwe72 für SITE muss dein sitename rein - meist: default - bin aber nicht sicher, ob du da nicht eingeloggt sein muss
-
@uwe72
@liv-in-sky
Das stimmt. Man muss den Site Namen eintragen. In der Regel "default".
Bei mir also z.B. "https://10.0.0.11:8443/api/s/default/stat/sta"Dann erhalte ich eine ellenlange Ausgabe.
Hier mal ein Auszug bis zum ersten Auftreten von "tx_rate":
(Teilweise unkenntlich gemacht){"meta":{"rc":"ok"},"data":[{"site_id":"5c0044c5ff4a9304fXXXXXXXX","assoc_time":1611896641,"latest_assoc_time":1613001782,"oui":"SlimDevi","user_id":"5c00501cff4a930XXXXXXXX","_id":"5c00501cff4a930XXXXXXXX","mac":"00:04:20:XXXXXXXX","is_guest":false,"first_seen":1543524380,"last_seen":1613113047,"is_wired":false,"hostname":"HarmonyHub","usergroup_id":"","name":"HarmonyHubWoZi","noted":true,"fingerprint_override":true,"dev_id_override":2360,"_uptime_by_uap":111266,"_last_seen_by_uap":1613113047,"_is_guest_by_uap":false,"ap_mac":"78:8a:20:XXXXXXXX","channel":5,"radio":"ng","radio_name":"wifi0","essid":"WLAN24","bssid":"7a:8a:20:XXXXXXXX","powersave_enabled":false,"is_11r":false,"ccq":991,"rssi":47,"noise":-113,"signal":-49,"tx_rate":72222,
-
@aleks-83
Der Sitename tauch übrigens in der Adresszeile des Browsers auf und hat nichts mit dem Namen der Site zu tun:https://192.xxx.xxx.xxx:8443/manage/site/ka118xps/v2/clients
In dem Fall hier ist der Sitename
ka118xps
-
was ich immer noch nicht verstehe, warum kann man weder im Adapter noch über die API den Status (Verbunden, Getrennt, Isoliert,...) der AccessPoints auslesen?
Ich mache dies aktuell sehr umständlich über ein eigenes Java-Programm (parse die Webseite) und befülle dann ioBroker Datenpunkte)
-
@uwe72 Kann ich dir leider nicht beantworten. Ich nutze nur einen UAP.
Aber wenn der Status schon nicht über die API kommt wird der auch nicht in den Adapter kommen können.
Da muss dann Ubiquiti nacharbeiten. -
Moin wo wir gerade dabei sind, seit ein paar Tagen kommen unregelmäßig
folgende Fehlermeldungen:Heute 16:56 error unifi.0 fetchGatewayTraffic: Returned data is not in valid format. This option is only available for gateway Heute 11:20 error unifi.0 fetchAlarms: Returned data is not in valid format Gestern 19:22 error unifi.0 fetchWlans: Returned data is not in valid format
Kann es sein das es was mit einem neuen Update der Firmware für die AP-AC zu tun hat?
-
@nashra sagte in Adapter: ioBroker.unifi:
Kann es sein das es was mit einem neuen Update der Firmware für die AP-AC zu tun hat?
Habe das Update auch seit gestern drauf, bei mir ist noch..... Nichts
-
@frank579 sagte in Adapter: ioBroker.unifi:
@nashra sagte in Adapter: ioBroker.unifi:
Kann es sein das es was mit einem neuen Update der Firmware für die AP-AC zu tun hat?
Habe das Update auch seit gestern drauf, bei mir ist noch..... Nichts
Ich habe das Update auch noch nicht installiert, es wird mir lediglich angezeigt und
seitdem die Fehler. Ich gehe davon aus, das wenn ich das Update mache, auch die
Fehler weg sind, mal sehen. Ist oben in meinem Beitrag etwas falsch rüber gekommen. -
Hallo,
ich lese gerade, dass Du eine UDM Pro mit den Adapter am laufen hast. Ich habe gerade mein
UCK gegen die UDM Pro ausgetauscht und ich bekomme den Adapter nicht gestartet ...... habe gefühlt schon alles versucht
Port: 443 ?
Hast Du einen Tipp für mich wie ich die gelbe Lampe in grün konvertieren kann ?
Liebe Grüsse
Jörg
-
@bauerpower said in Adapter: ioBroker.unifi:
... habe das Problem gefunden... war die 2-Faktor-Authentifizierung .. habe neuen lokalen
User angelegt .... und alles war fein!Danke
Jörg
-
Moin zusammen,
ist es über den Adapter möglich, die Anzahl der bestehenden Wifi Verbindungen rauszufinden?Ich möchte gerne wissen, wie viele gerade mit meinem Gäste-Wlan verbunden sind, um entsprechende Variablen zu bedienen.
Danke und Gruß
-
Hi,
ich habe ebenfalls error Logs:
An was könnte das liegen? Ich habe eine UDM Pro (Dream Machine Pro) und 5 AP`s
Das kommt beim start des Adapters:
-
@elektroniker86 Logfiles bitte als Text in Code Tag </> Posten:
Und den Text bitte nicht aus dem Browser kopieren, da könnten die Zeilen abgeschnitten sein.
Besser direkt aus dem log holen:
/opt/iobroker/log/iobroker.current.log
-
Ok, kein Problem.
Bitte:2021-03-18 18:21:21.314 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:21.373 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:21.373 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:21.374 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:21.732 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:22.537 - [31merror[39m: unifi.0 (28873) fetchWlans: Returned data is not in valid format 2021-03-18 18:21:22.613 - [31merror[39m: unifi.0 (28873) fetchWlans: Returned data is not in valid format 2021-03-18 18:21:22.620 - [31merror[39m: unifi.0 (28873) fetchWlans: Returned data is not in valid format 2021-03-18 18:21:22.819 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 4 updated 2021-03-18 18:21:23.942 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 5 updated 2021-03-18 18:21:24.241 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:25.071 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:26.162 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:27.282 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:27.976 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:28.377 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 5 updated 2021-03-18 18:21:29.474 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 4 updated 2021-03-18 18:21:30.584 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 5 updated 2021-03-18 18:21:30.684 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:31.692 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:32.844 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:33.924 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 5 updated 2021-03-18 18:21:35.025 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 5 updated 2021-03-18 18:21:36.163 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 5 updated 2021-03-18 18:21:37.271 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:37.272 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:38.354 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:39.450 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 5 updated 2021-03-18 18:21:40.579 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 5 updated 2021-03-18 18:21:41.683 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:42.804 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:43.938 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:45.007 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 5 updated 2021-03-18 18:21:46.128 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 4 updated 2021-03-18 18:21:47.233 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:48.333 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:49.456 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:50.551 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:51.672 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:52.758 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:52.893 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:53.874 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:54.706 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:54.707 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:54.707 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:54.707 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:54.708 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:54.717 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:54.759 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:54.759 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:54.759 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:54.760 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:54.760 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format 2021-03-18 18:21:54.963 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:56.093 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:56.498 - [31merror[39m: unifi.0 (28873) fetchWlans: Returned data is not in valid format 2021-03-18 18:21:57.189 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:58.296 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:21:59.411 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 6 updated 2021-03-18 18:22:00.504 - [32minfo[39m: smartmeter.0 (762) Received 13 values, 5 updated 2021-03-18 18:22:00.758 - [31merror[39m: unifi.0 (28873) fetchSites: Returned data is not in valid format
2021-03-18 20:13:14.759 - [32minfo[39m: unifi.0 (2002) Update done 2021-03-18 20:13:15.684 - [32minfo[39m: smartmeter.0 (736) Received 13 values, 5 updated 2021-03-18 20:13:15.956 - [32minfo[39m: linux-control.0 (1527) getting data from Visualisierung (192.168.1.93:22) 2021-03-18 20:13:16.389 - [32minfo[39m: unifi.0 (2002) Update done 2021-03-18 20:13:16.993 - [32minfo[39m: smartmeter.0 (736) Received 13 values, 5 updated 2021-03-18 20:13:17.885 - [34mdebug[39m: javascript.0 (1114) system.adapter.admin.0: logging false 2021-03-18 20:13:18.280 - [32minfo[39m: smartmeter.0 (736) Received 13 values, 6 updated 2021-03-18 20:13:18.358 - [32minfo[39m: unifi.0 (2002) Update done 2021-03-18 20:13:19.546 - [32minfo[39m: smartmeter.0 (736) Received 13 values, 5 updated 2021-03-18 20:13:19.828 - [32minfo[39m: host.ioBroker-Pi4 stopInstance system.adapter.unifi.0 (force=false, process=true) 2021-03-18 20:13:19.847 - [32minfo[39m: unifi.0 (2002) Got terminate signal TERMINATE_YOURSELF 2021-03-18 20:13:19.849 - [32minfo[39m: unifi.0 (2002) cleaned everything up... 2021-03-18 20:13:19.851 - [32minfo[39m: unifi.0 (2002) terminating 2021-03-18 20:13:19.854 - [32minfo[39m: unifi.0 (2002) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason 2021-03-18 20:13:19.857 - [32minfo[39m: host.ioBroker-Pi4 stopInstance system.adapter.unifi.0 send kill signal 2021-03-18 20:13:20.003 - [34mdebug[39m: javascript.0 (1114) system.adapter.admin.0: logging true 2021-03-18 20:13:20.362 - [33mwarn[39m: unifi.0 (2002) redis get unifi.0.default.devices.e0:63:da:55:57:5d.port_table.port_11.poe_power, error - Connection is closed. 2021-03-18 20:13:20.367 - [33mwarn[39m: unifi.0 (2002) get state error: Connection is closed. 2021-03-18 20:13:20.389 - [31merror[39m: unifi.0 (2002) [applyJsonLogic] error: DB closed, stack: Error: DB closed at Redis.sendCommand (/opt/iobroker/node_modules/ioredis/built/redis/index.js:607:24) at Redis.get (/opt/iobroker/node_modules/ioredis/built/commander.js:111:25) at StateRedisClient.setState (/opt/iobroker/node_modules/@iobroker/db-states-redis/lib/states/statesInRedisClient.js:477:40) at Unifi.setState (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:6069:35) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5) 2021-03-18 20:13:20.390 - [33mwarn[39m: unifi.0 (2002) redis get unifi.0.default.devices.e0:63:da:55:57:5d.port_table.port_12.enable, error - Connection is closed. 2021-03-18 20:13:20.393 - [33mwarn[39m: unifi.0 (2002) get state error: Connection is closed. 2021-03-18 20:13:20.395 - [31merror[39m: unifi.0 (2002) [applyJsonLogic] error: DB closed, stack: Error: DB closed at Redis.sendCommand (/opt/iobroker/node_modules/ioredis/built/redis/index.js:607:24) at Redis.get (/opt/iobroker/node_modules/ioredis/built/commander.js:111:25) at StateRedisClient.setState (/opt/iobroker/node_modules/@iobroker/db-states-redis/lib/states/statesInRedisClient.js:477:40) at Unifi.setState (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:6069:35) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5) 2021-03-18 20:13:20.396 - [33mwarn[39m: unifi.0 (2002) redis get unifi.0.default.devices.e0:63:da:55:57:5d.port_table.port_13.enable, error - Connection is closed. 2021-03-18 20:13:20.399 - [31merror[39m: unifi.0 (2002) Cannot check object existence of "unifi.0.default.devices.e0:63:da:55:57:5d.port_table.port_13.enable": Connection is closed. 2021-03-18 20:13:20.400 - [33mwarn[39m: unifi.0 (2002) Could not check object existence of state unifi.0.default.devices.e0:63:da:55:57:5d.port_table.port_13.enable: Cannot check object existence of "unifi.0.default.devices.e0:63:da:55:57:5d.port_table.port_13.enable": Connection is closed. 2021-03-18 20:13:20.401 - [33mwarn[39m: unifi.0 (2002) get state error: Connection is closed. 2021-03-18 20:13:20.404 - [31merror[39m: unifi.0 (2002) [applyJsonLogic] error: DB closed, stack: Error: DB closed at Redis.sendCommand (/opt/iobroker/node_modules/ioredis/built/redis/index.js:607:24) at Redis.get (/opt/iobroker/node_modules/ioredis/built/commander.js:111:25) at StateRedisClient.setState (/opt/iobroker/node_modules/@iobroker/db-states-redis/lib/states/statesInRedisClient.js:477:40) at Unifi.setState (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:6069:35) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5) 2021-03-18 20:13:20.404 - [33mwarn[39m: unifi.0 (2002) redis get unifi.0.default.devices.e0:63:da:55:57:5d.port_table.port_14.enable, error - Connection is closed. 2021-03-18 20:13:20.406 - [31merror[39m: unifi.0 (2002) Cannot check object existence of "unifi.0.default.devices.e0:63:da:55:57:5d.port_table.port_14.enable": Connection is closed. 2021-03-18 20:13:20.407 - [33mwarn[39m: unifi.0 (2002) Could not check object existence of state unifi.0.default.devices.e0:63:da:55:57:5d.port_table.port_14.enable: Cannot check object existence of "unifi.0.default.devices.e0:63:da:55:57:5d.port_table.port_14.enable": Connection is closed. 2021-03-18 20:13:20.407 - [33mwarn[39m: unifi.0 (2002) get state error: Connection is closed. 2021-03-18 20:13:20.409 - [31merror[39m: unifi.0 (2002) [applyJsonLogic] error: DB closed, stack: Error: DB closed at Redis.sendCommand (/opt/iobroker/node_modules/ioredis/built/redis/index.js:607:24) at Redis.get (/opt/iobroker/node_modules/ioredis/built/commander.js:111:25) at StateRedisClient.setState (/opt/iobroker/node_modules/@iobroker/db-states-redis/lib/states/statesInRedisClient.js:477:40) at Unifi.setState (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:6069:35) 2021-03-18 20:13:20.410 - [33mwarn[39m: unifi.0 (2002) redis get unifi.0.default.devices.e0:63:da:55:57:5d.port_table.port_15.enable, error - Connection is closed. 2021-03-18 20:13:20.496 - [32minfo[39m: host.ioBroker-Pi4 instance system.adapter.unifi.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2021-03-18 20:13:20.816 - [32minfo[39m: smartmeter.0 (736) Received 13 values, 4 updated 2021-03-18 20:13:22.116 - [32minfo[39m: smartmeter.0 (736) Received 13 values, 6 updated 2021-03-18 20:13:23.080 - [32minfo[39m: host.ioBroker-Pi4 instance system.adapter.unifi.0 started with pid 2036 2021-03-18 20:13:23.404 - [32minfo[39m: smartmeter.0 (736) Received 13 values, 6 updated 2021-03-18 20:13:23.776 - [32minfo[39m: linux-control.0 (1527) successful received data from Visualisierung (192.168.1.93:22) 2021-03-18 20:13:24.691 - [32minfo[39m: smartmeter.0 (736) Received 13 values, 6 updated 2021-03-18 20:13:25.776 - [32minfo[39m: unifi.0 (2036) starting. Version 0.5.8 in /opt/iobroker/node_modules/iobroker.unifi, node: v12.21.0, js-controller: 3.2.16 2021-03-18 20:13:25.818 - [32minfo[39m: unifi.0 (2036) UniFi adapter is ready 2021-03-18 20:13:25.946 - [32minfo[39m: smartmeter.0 (736) Received 13 values, 4 updated 2021-03-18 20:13:27.244 - [32minfo[39m: smartmeter.0 (736) Received 13 values, 6 updated 2021-03-18 20:13:28.522 - [32minfo[39m: smartmeter.0 (736) Received 13 values, 6 updated 2021-03-18 20:13:29.775 - [32minfo[39m: smartmeter.0 (736) Received 13 values, 5 updated 2021-03-18 20:13:31.064 - [32minfo[39m: smartmeter.0 (736) Received 13 values, 6 updated 2021-03-18 20:13:32.316 - [32minfo[39m: smartmeter.0 (736) Received 13 values, 6 updated
Passt es so?