FHEM Forum

FHEM => Sonstiges => Thema gestartet von: justme1968 am 06 Februar 2022, 11:40:14

Titel: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 06 Februar 2022, 11:40:14
die erste version des unifi protect moduls ist inzwischen eingecheckt. deshalb hier ein neuer test für die nächste version mit ein paar grundlegenden änderungen:

- es werden push events vom protect server unterstützt.
  d.h. für die kameras gibt es jetzt unter anderm motion events

- es werden neben den kameras im prinzip auch alle anderen protect geräte
  (sensoren, lampen, klingel, türschloß, ...) unterstützt.
  getestet und funktionierend sind aktuell aber nur der protect smart sensor

- aktuell werden alle geräte nur lesend unterstütz. steuern lässt sich aus fhem heraus (noch) nichts

- wegen der potentiellen anzahl der geräte wurde das modul in IODev und device modul aufgeteilt.
  d.h es wird für jedes gerät ein eigenes fhem device erzeugt. auch für die kameras.

- in der ersten test version sind die kameras zusätzlich wie bisher auch im haupt device vorhanden.
  das wird sich aber ändern. da dies dann nicht mehr kompatibel zur alten version ist bitte testen!

- die events sind aktuell nur für unifi os installationen implementiert.
  wer noch ein älteres system ohne unifi os hat bitte melden.

- in den events gibt es potentiell noch sehr viel mehr interessante informationen. deshalb bitte rückmeldung
  über die readings die gewünscht sind bzw. nicht  gewünscht sind.

- da ich aktuell ausser kameras nichts von der theoretisch unterstützten hardware habe müssen wir mal
  sehen wie weit wir hier kommen. das betrifft vor allem das steuern aus fhem heraus.

edit 2022-02-09: die wichtigsten sichtbaren änderungen sind:
- cam readings aus dem UnifiProtect device entfernt
- mehr redings in Protect und ProtectDevice
  insbesondere ein reading score an dem die interne bewertung für die bewegungserkennung abzulesen ist.
  d.h. man sieht wie wahrscheinlich es ist das es tatsächlich eine echte bewegung gegeben hat. damit kann
  man zum einen das system besser einstellen, und zum anderen motion mit schlechter bewertungen in fhem
  ignorieren.
- es gibt ein paar internals und readings für die smart detection.
  ich habe aber keine ahnung ob und was hier schon geht.
- set kommando im ProtectDevice für cameras um den ir mode umzuschalten

edit 2022-02-10: es werden nur noch set kommandos angezeigt die vom kamera modell unterstützt werden
- neue set recordingMode, set hdrMode und set videoMode kommandos
- neues featureFlags internal
- neues get features [<regex>] kommando: zeigt unterstütze features einer kamera an.
  wenn <regex> angeben ist werden nur die darauf matchende features gezeigt
  z.b. get Uni.* features zoom oder get Uni.* features smart
- neues attribut includeTransferStats
- bessere smart detection readings

- noch mehr includeXXX attribute in beiden modulen um bestimmte teadings zu (de-)aktivieren.
  den default bei nicht gesetztem attribut erkennt man an der reihenfolge der 0,1 bzw. 1,0
- diverse readings etwas umbenannt, am besten ein mal alle readings löschen
- manche readings werden nur noch angelegt wenn die kamera das entsprechende feature auch hat

edit 2022-02-13: ein paar interne dinge aufgeräumt, neue device set kommandos: irLedLevel, micVolume, statusLed jeweils mit zugehörigen readings. nur sichtbar wenn das device das feature auch unterstützt.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 06 Februar 2022, 12:28:06
Vielen Dank! Finde ich super, dass diese Weiterentwicklung stattfindet - vor allem, dass Motion-Events von Kameras unterstützt und dadurch in FHEM für das Triggern von Aktionen genutzt werden können. So kann ich perspektivisch den einen oder anderen Bewegungssensor ersetzen.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 07 Februar 2022, 17:30:35
Moin Andre,

super Arbeit! Gut gemacht!

Habe gerade die beiden neuen Module installiert. Die Kamera wurde nun auch angelegt. Das Motion Reading und ein paar andere tolle Readings sind ebenfalls im Kamera Device vorhanden.

An den Sensoren sehe ich nun auch ein open Reading.

Folgenden stand haben wir also jetzt beim Smart Sensor (Up Sense):


Auch wenn ich jetzt ein open Reading am Sensor habe, will ich das erst nochmal testen, bevor ich es in der Liste final abhake. Den Water Sensor habe ich erstmal orange gemacht, da ich den vrsl. nicht ermitteln/testen kann, da es die Funktion nur gibt, wenn man das Dreierpack bestellt (was es so wohl noch gar nicht gibt).

Na wie dem auch sei. Was du da übers Wochenende geleistet hast, ist wirklich richtig cool. Jetzt bin ich noch mehr geneigt mir eine Doorbell zu kaufen. :D Allerdings will ich damit noch warten bis die nächste Generation offiziell gelauncht (General Available) wurde.

Vielen, vielen Dank nochmal und viele Grüße Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 07 Februar 2022, 17:37:30
Ein paar Logmeldungen sehe ich gerade noch die beim Starten von FHEM entstehen.

Klar mit dem UnifiClient hast du erstmal nichts zu kriegen. Das autocreate der Kamera sieht gut aus. Aber über den Rest kannst du ja bis zur offiziellen Version nochmal drüber schauen. ;)

2022.02.07 17:14:00 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_UnifiClient.pm line 179.
2022.02.07 17:14:00 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_UnifiProtectDevice.pm line 37.
2022.02.07 17:14:00 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_UnifiProtectDevice.pm line 39.
2022.02.07 17:14:00 1: PERL WARNING: Use of uninitialized value $list in concatenation (.) or string at ./FHEM/74_UnifiProtectDevice.pm line 51.
2022.02.07 17:14:01 1: PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.07 17:14:01 2: autocreate: define UnifiProtectDevice_61fdc20c02dd7303e70003fa UnifiProtectDevice 61fdc20c02dd7303e70003fa
2022.02.07 17:14:01 2: autocreate: define FileLog_UnifiProtectDevice_61fdc20c02dd7303e70003fa FileLog ./log/UnifiProtectDevice_61fdc20c02dd7303e70003fa-%Y.log UnifiProtectDevice_61fdc20c02dd7303e70003fa
2022.02.07 17:14:01 3: Opening UnifiProtect device wss:10.10.15.1:443/proxy/protect/ws/updates?lastUpdateId=4af22fb3-6b68-49e0-a194-3723701ae0fb
2022.02.07 17:14:01 3: UnifiProtect device opened
2022.02.07 17:14:22 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_UnifiProtect.pm line 304.
2022.02.07 17:14:25 1: RMDIR: ./restoreDir/save/2022-02-03
2022.02.07 17:29:01 3: UnifiProtect: is UnifiOS: 1
2022.02.07 17:29:02 3: Opening UnifiProtect device wss:10.10.15.1:443/proxy/protect/ws/updates?lastUpdateId=a31679c5-0b40-4f24-8c83-3d47f1649e1b
2022.02.07 17:29:02 3: UnifiProtect device opened


Danke und Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Schlimbo am 08 Februar 2022, 16:57:27
wow, das Modul ist ja echt klasse, nun kann ich die Motion Events der Kameras auch für andere Logiken nutzen :-) vielen Danke für das Modul.
Kann über die API auch die "Smart Detections" information mit ausgelesen werden, ob eine Person oder ein Auto erkannt wurde?

Beste Grüße
Schlimbo
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 08 Februar 2022, 17:57:36
es gibt events und infos zu smart detections. ich habe aber noch nichts davon gesehen. meine g4 liegt noch eingepackt im schrank. mit verbose 4 oder 5 solltest du etwas dazu sehen.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 09 Februar 2022, 14:43:31
es gibt ganz oben eine neue version.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 09 Februar 2022, 17:00:01
Zitat von: justme1968 am 09 Februar 2022, 14:43:31
es gibt ganz oben eine neue version.


2022.02.09 16:53:51 1: undef

2022.02.09 16:53:51 1: undef

2022.02.09 16:53:51 1: undef

2022.02.09 16:53:51 1: undef

2022.02.09 16:53:51 1: undef

2022.02.09 16:53:51 1: undef

2022.02.09 16:53:55 1: undef

2022.02.09 16:53:55 1: undef

2022.02.09 16:53:55 1: undef

2022.02.09 16:53:55 1: undef

2022.02.09 16:53:56 1: undef

2022.02.09 16:53:56 1: undef

2022.02.09 16:53:58 1: undef

2022.02.09 16:53:58 1: undef

2022.02.09 16:53:58 1: undef

2022.02.09 16:53:58 1: undef

2022.02.09 16:53:58 1: undef

2022.02.09 16:53:58 1: undef

2022.02.09 16:53:59 1: undef

2022.02.09 16:53:59 1: undef

2022.02.09 16:53:59 1: undef

2022.02.09 16:53:59 1: undef

2022.02.09 16:53:59 1: undef

2022.02.09 16:53:59 1: undef


Das spamt dauerhaft!
Sonst sieht es ganz gut aus. Events kommen von Motion.
Schließe später mal die G4-Dome an.
Auf was soll man noch achten beim Testen?

Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 09 Februar 2022, 17:59:49
Zeile 183 auskommentieren bei UnifiProtectDevice hat Ruhe gebracht.

Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 09 Februar 2022, 19:19:34
ich habe die version ganz oben noch mal ausgetauscht. es waren noch ein paar debug zeilen mehr drin.

ich habe meine g4 bullet eben auch ausgepackt. die ersten eindrücke der smart detection sind ... naja...

es wäre interessant mehr feedback dazu zu haben. aktuell verschwindet das reading dazu wieder sobald die bewegung beendet ist. die einzelnen infos zu einer bewegungerkennung kommen über das api im übrigen nach und nach. erst ein start, dann ein smart/normal dann etwas zum typ dann etwas zum bereich, dann allgemein etwas zur bewegung, dann das ende und dann (bzw auch zwischendurch mal) der score. die einzel infos sind mehr oder weniger unabhängig und es bedürfte einiger klimmzüge um alles in ein einzelnes fhem event zu bekommen. keine ahnung ob das sinnvoll ist.

im prinzip kommt man auch an infos zur bewegunserkennung. bis hin zum bereich im bild bzw. der zone. keine ahnung ob das interessant ist.

ansonsten wäre interessant zu wissen was man aus fhem heraus schalten können sollte.

ich bin mir noch nicht sicher ob die readings zur übertragen datenmenge sinnvoll sind. oder ob man die nur bei bedarf per attribut aktiviert.

wer noch pretect geräte hat die nicht oder nicht vollständig funktionieren: bitte melden. das wäre die klingel, die diversen möglichkeiten des sensors, andere kammeras, ...

wer mag kann auch mal verbose 4 oder 5 aktivieren und schauen ob da sonst noch was interessantes dabei ist. aber achtung: da kommt schnell einiges zusammen wenn man es laufen lässt. das ding ist wirklich sehr gesprächig.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 09 Februar 2022, 19:51:54
Ich spiele nachher noch ein Wenig damit rum! Habe auch gerade die G4 angeschlossen.

Wie ist das jetzt mit dem WebLink? Der vom alten Protect Modul zeigt keine Bilder mehr an.
Hab auch in den einzelnen Kamera Devices kein Bild der jeweiligen Kamera.

Gruß
Dan

EDIT: Die neue Version von eben zeigt nun auch in den Kamera Devices das Live Bild an.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 09 Februar 2022, 21:31:26
Zitat von: DeeSPe am 09 Februar 2022, 19:51:54
EDIT: Die neue Version von eben zeigt nun auch in den Kamera Devices das Live Bild an.

Beim Weblink werden jetzt auch die Live Bilder der Kameras wieder angezeigt.
Bei der G4 hat sich auch "smartDetectTypes" auf "person" geändert nachdem ich vorbeigegangen bin.

Allerdings habe ich jetzt wieder jede Menge Spam im Log:

2022.02.09 21:26:37 1:  gone
2022.02.09 21:26:39 1:  gone
2022.02.09 21:26:40 1:  gone
2022.02.09 21:26:46 1:  gone
2022.02.09 21:26:50 1:  gone
2022.02.09 21:26:52 1:  gone
2022.02.09 21:26:54 1:  gone
2022.02.09 21:26:57 1:  gone
2022.02.09 21:26:58 1:  gone
2022.02.09 21:27:00 1:  gone
2022.02.09 21:27:02 1:  gone
2022.02.09 21:27:03 1:  gone
2022.02.09 21:27:05 1:  gone
2022.02.09 21:27:06 1:  gone
2022.02.09 21:27:07 1:  gone
2022.02.09 21:27:08 1:  gone
2022.02.09 21:27:09 1:  gone
2022.02.09 21:27:10 1:  gone
2022.02.09 21:27:11 1:  gone
2022.02.09 21:27:12 1:  gone
2022.02.09 21:27:14 1:  gone
2022.02.09 21:27:15 1:  gone
2022.02.09 21:27:16 1:  gone
2022.02.09 21:27:17 1:  gone
2022.02.09 21:27:18 1:  gone
2022.02.09 21:27:19 1:  gone
2022.02.09 21:27:20 1:  gone
2022.02.09 21:27:21 1:  gone
2022.02.09 21:27:22 1:  gone
2022.02.09 21:27:23 1:  gone
2022.02.09 21:27:23 1:  gone
2022.02.09 21:27:23 1:  gone
2022.02.09 21:27:23 1:  gone
2022.02.09 21:28:28 1:  gone
2022.02.09 21:28:28 1:  gone
2022.02.09 21:28:29 1:  gone
2022.02.09 21:28:29 1:  gone
2022.02.09 21:28:29 1:  gone
2022.02.09 21:28:30 1:  gone
2022.02.09 21:29:49 1:  gone


Mein Feature Wunsch: ich würde gern bei den Kameras den "Recording Mode" per FHEM ändern können.
Damit wäre es dann möglich die Aufnahmen z.B. anhand der Anwesenheit scharf zu schalten. Im Sommer muss nämlich nicht immer aufgenommen werden wenn man im Garten herum wuselt.

Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 10 Februar 2022, 08:46:01
das gone ist auch noch eine alte debug meldung und hat was damit zu tun das fhem die browser seite zum ausliefern des live bildes nicht mehr erreichen kann. das problem ist das das ganze live bild handling asynchron und im hintergrund passieren muss da der browser bzw. das javascript dort auf grund von rechten das bild nicht selber holen kann. deshalb fragt der browser fhem nach dem bild. fhem holt es vom protect nvr und liefert es zurück. das ganze ohne das fhem dabei wartet oder blockiert. deshalb merkt fhem sich den kanal auf dem die anfrage rein gekommen ist und schickt dort das bild zurück. die meldung kommt genau dann wenn fhem versucht das bild zurück zu schicken aber der anfragende kanal nicht mehr da ist.

kannst du nachstellen wann das genau passiert?


der recordingMode ist seit gestern abend schon drin :). die version habe ich ganz oben angehängt.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 10 Februar 2022, 09:46:53
Zitat von: justme1968 am 10 Februar 2022, 08:46:01
kannst du nachstellen wann das genau passiert?

Ich denke das passiert wenn ich die Seite verlasse die das/die Live Bild(er) anzeigt.
2022.02.10 09:39:21 1:  UnifiProtect.ws.system: SYSTEM
2022.02.10 09:43:36 1:  gone
2022.02.10 09:43:36 1:  gone


Zitat von: justme1968 am 10 Februar 2022, 08:46:01
der recordingMode ist seit gestern abend schon drin :). die version habe ich ganz oben angehängt.

Wow! Das klappt! Ich bin total begeistert. Das wollte ich schon immer gern über FHEM steuern und nun geht es endlich.
Vielen Dank dafür.

Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 10 Februar 2022, 12:29:48
das ist genau der fall bei dem das gone erwartet wird. ich habe aber dafür jetzt den loglevel geändert.

ich habe die smart detection jetzt mal auf der strasse probiert statt mich selber mit der in der hand gehaltenen kamera zu finden und siehe da: es macht gleich einen viel besseren eindruck.

ganz oben gibt es noch mal eine neue version mit ein paar ergänzungen.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 10 Februar 2022, 13:30:31
Ich musste FHEM neu starten damit die Änderungen richtig gegriffen haben (Setter).

Habe dann folgende beide Zeilen im Log gefunden:
Zitat
2022.02.10 13:19:39 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.10 13:19:44 1:  PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_UnifiProtect.pm line 311.

"get ... features" klappt auch.
Das Attribut "includeTransferStats" finde ich auch gut.

Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 10 Februar 2022, 16:48:03
ganz oben gibt es noch mal eine etwas aktualisierte version mit mehr includeXXX attributen und ein paar anderen kleinigkeiten.

die warnung sollte eigentlich nicht mehr auftreten. ist aber auch unkritisch.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 10 Februar 2022, 18:24:54
könnt ihr mal bitte alle schauen wie die controllers zeile in den internals ausschaut? insbesondere wenn es mehr als einen controller auf der console gibt. also z.b. udm oder cloudkey2 mit network und protect.

werden beide/alle controller aufgelistet?
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 10 Februar 2022, 18:32:34
Ich habe grade dieses Device entdeckt:
defmod UnifiProtect.ws.system UnifiProtect
Ist das jetzt nötig oder wo kommt das auf einmal her?
Kann ich das löschen?

Bei mir stehen alle möglichen Controller im Internal und die beiden installierten sind richtig:
network(6.5.55,Installed,Running,Configured),protect(1.21.0,Installed,Running,Configured),access(notInstalled,notRunning,notConfigured),talk(notInstalled,notRunning,notConfigured),uid-agent(notInstalled,notRunning,notConfigured)

Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 10 Februar 2022, 18:34:26
Bei mir (UDM Pro) steht nur


protect(1.21.0,Installed,Running,Configured)


obwohl natürlich auch Network drauf ist.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 10 Februar 2022, 19:08:06
sehr komisch. auf meinem cloud key zeigt er auch nur network an, auch wenn protect installiert ist. auf dem unvr zeigt er den uid-agent an den ich kurz zum testen installiert habe, aber es hat eine weile gedauert.

natürlich blöd wenn das nicht zuverlässig ist. vor allem wenn welche fehlen die tatsächlich installiert sind.


bitte keine devices löschen :). das UnifiProtect.ws.system wird intern für die websocket events gebraucht. pro fhem device vertragen die fhem routinen nur ein DevIO device. wenn man mehr braucht muss man interne devices verwenden. ich stecke es jetzt zusäzlich noch in de hidden room. dann stolpert man nicht mehr aus versehen drüber.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 11 Februar 2022, 09:06:06
Die aktuelle UnifiProtect aus dem ersten Beitrag tuts nicht mehr.


Undefined subroutine &main::UnifiProtect_Initialize called at fhem.pl line 2728.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 11 Februar 2022, 10:03:57
Zitat von: Ralli am 11 Februar 2022, 09:06:06
Die aktuelle UnifiProtect aus dem ersten Beitrag tuts nicht mehr.


Undefined subroutine &main::UnifiProtect_Initialize called at fhem.pl line 2728.


Das kann ich nicht bestätigen.
Die Module liefen bei mir die ganze Nacht unauffällig durch.

Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 11 Februar 2022, 10:52:41
die version läuft bei mir ohne probleme. ich habe sie eben extra noch mal runtergeladen. kann es sein das beim download etwas schief gegangen ist? schau mal bitte ins file.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 11 Februar 2022, 15:33:24
Du hast Recht. Mein Download war korrupt, hatte nur 13kB.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 13 Februar 2022, 21:57:37
es gibt ganz oben noch mal eine neue version mit ein paar neuen set kommandos. wenn es keine einwände gibt werde ich diese version dem nächst einchecken.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 14 Februar 2022, 10:29:54
Moin Andre,

bei mir ist gerade eine Kamera (beabsichtigt) vom Netzwerk getrennt und ich finde beim Neustart folgende Zeilen im Log:

2022.02.14 10:25:25 1:  PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_UnifiProtectDevice.pm line 42.
2022.02.14 10:25:25 1:  PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_UnifiProtectDevice.pm line 46.
2022.02.14 10:25:25 1:  PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_UnifiProtectDevice.pm line 57.


Etwas weiter kommt noch:

2022.02.14 10:25:32 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.


Evtl. sollte das noch vor dem Einchecken beseitigt werden.
Falls nochmal getestet werden soll, so mache ich das gern.

Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 14 Februar 2022, 10:57:26
es gibt ganz oben noch mal eine version bei der die meldungen weg sein sollten. wenn du magst probier noch mal.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 14 Februar 2022, 13:15:04
Danke für deine Zeit mit dem Modul bzw. den Modulen.

Eingespielt, bislang keine Auffälligkeiten (zwei Kameras, keine Sensoren). In den Internals wird nach wie vor nur "protect(1.21.0,Installed,Running,Configured)" gefunden, kein Network (und kein Talk, ID und Access, die zwar vorhanden aber veraltete und nicht gestartet sind).
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 14 Februar 2022, 15:13:35
Moin Andre,

habe gerade das neuste Modul (bzw. die beiden) installiert. Grundsätzlich sieht erstmal alles gut aus. Ich habe keine komischen Log Meldungen mehr. FHEM läuft aber jetzt erst seit 15 Minuten wieder. Ich melde mich später nochmal. ;)

Ist das jetzt die Version die potentiell eingecheckt werden soll?

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 14 Februar 2022, 15:26:34
Uppsss...

Mein FHEM hat sich gerade verabschiedet und ist komplett abgeschmiert. Hier die letzten Zeilen aus dem Logfile:

2022.02.14 15:20:17 1: !!!!closed!!!!
2022.02.14 15:20:17 1: disconnected
Undefined subroutine &main::UnifiProtect_ConnectWebsocket called at fhem.pl line 3430.


Hast du eine Idee?

EDIT: Ich habe FHEM jetzt einfach erstmal neugestartet. Mal sehen, ob es in einer halben Stunde noch läuft.

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 14 Februar 2022, 15:29:20
Beim Speichern der neuen Module finde ich folgende Warnungen im Log:

2022.02.14 15:14:30 1:  PERL WARNING: Prototype mismatch: sub main::decode_json: none vs ($) at ./FHEM/74_UnifiProtect.pm line 8.
2022.02.14 15:14:30 1:  PERL WARNING: Possible attempt to put comments in qw() list at ./FHEM/74_UnifiProtect.pm line 627.


Nach einen Neustart sehe ich folgende Warnungen, weiß aber nicht (trotz stacktrace) ob die was mit UnifiProtect zu tun haben, hatte diese Warnungen vorher aber nicht:

2022.02.14 15:21:39 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 15:21:39 1:  stacktrace:
2022.02.14 15:21:39 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 15:21:39 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 15:21:39 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 15:21:39 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 15:21:39 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 15:21:39 1:  stacktrace:
2022.02.14 15:21:39 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 15:21:39 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 15:21:39 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 15:21:39 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 15:21:39 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 15:21:39 1:  stacktrace:
2022.02.14 15:21:39 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 15:21:39 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 15:21:39 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 15:21:39 1:      main::CallFn                        called by fhem.pl (776)


Und dann noch Warnungen die definitiv von UnifiProtect kommen:

2022.02.14 15:21:40 1:  PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_Unifi.pm line 949.
2022.02.14 15:21:40 1:  stacktrace:
2022.02.14 15:21:40 1:      main::__ANON__                      called by ./FHEM/74_Unifi.pm (949)
2022.02.14 15:21:40 1:      main::Unifi_Login_Receive           called by FHEM/HttpUtils.pm (696)
2022.02.14 15:21:40 1:      main::__ANON__                      called by fhem.pl (773)
2022.02.14 15:21:41 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 15:21:41 1:  stacktrace:
2022.02.14 15:21:41 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 15:21:41 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 15:21:41 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 15:21:41 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 15:21:41 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 15:21:41 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 15:21:41 1:  stacktrace:
2022.02.14 15:21:41 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 15:21:41 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 15:21:41 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 15:21:41 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 15:21:41 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 15:21:41 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 15:21:41 1:  stacktrace:
2022.02.14 15:21:41 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 15:21:41 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 15:21:41 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 15:21:41 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 15:21:41 1:      main::CallFn                        called by fhem.pl (776)


Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 14 Februar 2022, 16:37:41
Es ist wieder passiert.

Diesmal ziemlich exakt 40min später.

2022.02.14 16:08:17 1: !!!!closed!!!!
2022.02.14 16:08:17 1: disconnected
Undefined subroutine &main::UnifiProtect_ConnectWebsocket called at fhem.pl line 3430.


Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 14 Februar 2022, 16:53:52
@hoppel118: ups. ich habe vergessen was umzubennen. komisch das das hier nicht aufgefallen ist.

sollte jetzt ganz oben repariert sein.

@DeeSPe: die decode_json meldung hat nicht direkt was mit dem protect modul zu tun. ich vermute aus irgendeinem grund hast du module die unterschiedliche json libs verwenden. schau mal on du den versionen mit grep auf die spur kommst.

für die readingsBulkUpdateIfChanged meldungen wäre verbose 4 nützlich um zu sehen welche daten das verursachen.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 14 Februar 2022, 17:08:03
:D OK, die nächste Version ist installiert. Ich behalte das im Auge. ;)

Danke dir und Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 14 Februar 2022, 17:24:28
Ich hoffe das hilft:
2022.02.14 17:21:27 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"cb2418d5-1229-4226-940b-64596b4cfc4a","modelKey":"camera","id":"6202984603953a03e70003eb"}
2022.02.14 17:21:27 4:  UnifiProtect: websocket: got: {"recordingSchedules":[]}
2022.02.14 17:21:27 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"b95116cf-c39e-4ee4-b562-9411a1ea2fa5","modelKey":"camera","id":"6202984603c33a03e70003ec"}
2022.02.14 17:21:27 4:  UnifiProtect: websocket: got: {"recordingSchedules":[]}
2022.02.14 17:21:27 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"a493ca66-ed9c-46b5-8a9e-b496a5544e71","modelKey":"camera","id":"62040118012b8203e7000d40"}
2022.02.14 17:21:27 4:  UnifiProtect: websocket: got: {"recordingSchedules":[]}
2022.02.14 17:21:27 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"edbf7111-64f9-44d2-a29f-293281daa3a0","modelKey":"camera","id":"6202a69303678203e7000427"}
2022.02.14 17:21:27 4:  UnifiProtect: websocket: got: {"recordingSchedules":[]}
2022.02.14 17:21:27 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"04c08190-add6-4466-a0c5-100649c01744","modelKey":"camera","id":"6202984700153a03e70003ee"}
2022.02.14 17:21:27 4:  UnifiProtect: websocket: got: {"recordingSchedules":[]}
2022.02.14 17:21:27 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"41b9d4e2-ac17-4270-b23d-2c4b116f44b3","modelKey":"camera","id":"6202984603e13a03e70003ed"}
2022.02.14 17:21:27 4:  UnifiProtect: websocket: got: {"recordingSchedules":[]}
2022.02.14 17:21:27 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"028f6679-bb2a-4597-b54c-0e9406fabd00","modelKey":"camera","id":"6203bad901348203e7000b18"}
2022.02.14 17:21:27 4:  UnifiProtect: websocket: got: {"recordingSchedules":[]}
2022.02.14 17:21:28 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 17:21:28 1:  stacktrace:
2022.02.14 17:21:28 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 17:21:28 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 17:21:28 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 17:21:28 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 17:21:28 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 17:21:28 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 17:21:28 1:  stacktrace:
2022.02.14 17:21:28 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 17:21:28 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 17:21:28 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 17:21:28 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 17:21:28 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 17:21:28 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 17:21:28 1:  stacktrace:
2022.02.14 17:21:28 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 17:21:28 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 17:21:28 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 17:21:28 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 17:21:28 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"c32a17f5-f98f-4e09-9eb2-49d36180f9ea","modelKey":"camera","id":"6203bad901348203e7000b18"}
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"recordingSchedules":[],"stats":{"rxBytes":1852792210,"txBytes":91891070888,"wifi":{"channel":48,"frequency":5240,"linkSpeedMbps":null,"signalQuality":42,"signalStrength":-83},"battery":{"percentage":null,"isCharging":false,"sleepState":"disconnected"},"video":{"recordingStart":1644411837526,"recordingEnd":1644854058474,"recordingStartLQ":1644411724035,"recordingEndLQ":1644854056480,"timelapseStart":1644411837540,"timelapseEnd":1644855510000,"timelapseStartLQ":1644411837540,"timelapseEndLQ":1644854729484},"storage":{"used":2147483648,"rate":5.03269000894734}}}
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"37505222-cb52-4aad-b607-3d74ce1d733e","modelKey":"camera","id":"6202984603e13a03e70003ed"}
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"recordingSchedules":[],"stats":{"rxBytes":6767694372,"txBytes":200298732517,"wifi":{"channel":null,"frequency":null,"linkSpeedMbps":null,"signalQuality":50,"signalStrength":0},"battery":{"percentage":null,"isCharging":false,"sleepState":"disconnected"},"video":{"recordingStart":1644340954690,"recordingEnd":1644822345356,"recordingStartLQ":1644340954739,"recordingEndLQ":1644822342260,"timelapseStart":1644340954738,"timelapseEnd":1644822092254,"timelapseStartLQ":1644340954738,"timelapseEndLQ":1644821762277},"storage":{"used":null}}}
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"61bed97a-386a-4458-a6b8-3e51bf103556","modelKey":"camera","id":"6202a69303678203e7000427"}
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"recordingSchedules":[],"stats":{"rxBytes":4004948209,"txBytes":128444748681,"wifi":{"channel":null,"frequency":null,"linkSpeedMbps":null,"signalQuality":50,"signalStrength":0},"battery":{"percentage":null,"isCharging":false,"sleepState":"disconnected"},"video":{"recordingStart":1644353286478,"recordingEnd":1644853644750,"recordingStartLQ":1644353286439,"recordingEndLQ":1644853649643,"timelapseStart":1644353286426,"timelapseEnd":1644853414750,"timelapseStartLQ":1644353286426,"timelapseEndLQ":1644852059808},"storage":{"used":1073741824,"rate":2.2219005407666}}}
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"9180fb4f-ab37-4dcc-aee2-90d4a6ebd1cb","modelKey":"camera","id":"6202984700153a03e70003ee"}
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"recordingSchedules":[],"stats":{"rxBytes":6350150799,"txBytes":177674573329,"wifi":{"channel":null,"frequency":null,"linkSpeedMbps":null,"signalQuality":50,"signalStrength":0},"battery":{"percentage":null,"isCharging":false,"sleepState":"disconnected"},"video":{"recordingStart":1644340188506,"recordingEnd":1644650170283,"recordingStartLQ":1644340254535,"recordingEndLQ":1644650167719,"timelapseStart":1644340188506,"timelapseEnd":1644855408893,"timelapseStartLQ":1644340188506,"timelapseEndLQ":1644854459762},"storage":{"used":null}}}
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"e23b42ee-d167-42cd-9735-b9881251d1cc","modelKey":"camera","id":"6202984603953a03e70003eb"}
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"recordingSchedules":[],"stats":{"rxBytes":73118976,"txBytes":1943963721,"wifi":{"channel":null,"frequency":null,"linkSpeedMbps":null,"signalQuality":50,"signalStrength":0},"battery":{"percentage":null,"isCharging":false,"sleepState":"disconnected"},"video":{"recordingStart":1644340954269,"recordingEnd":1644741149512,"recordingStartLQ":1644340954271,"recordingEndLQ":1644741149515,"timelapseStart":1644340954268,"timelapseEnd":1644740822086,"timelapseStartLQ":1644340954268,"timelapseEndLQ":1644740317135},"storage":{"used":null}}}
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"d12d61ab-fd33-45e2-b04c-623122f225c2","modelKey":"camera","id":"6202984603c33a03e70003ec"}
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"recordingSchedules":[],"stats":{"rxBytes":7411501590,"txBytes":229511100736,"wifi":{"channel":null,"frequency":null,"linkSpeedMbps":null,"signalQuality":50,"signalStrength":0},"battery":{"percentage":null,"isCharging":false,"sleepState":"disconnected"},"video":{"recordingStart":1644340953999,"recordingEnd":1644822345308,"recordingStartLQ":1644340954006,"recordingEndLQ":1644822342082,"timelapseStart":1644340953981,"timelapseEnd":1644821807154,"timelapseStartLQ":1644340953981,"timelapseEndLQ":1644820922158},"storage":{"used":null}}}
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"bb3b8a2e-8091-412c-b704-df79682d0ce1","modelKey":"camera","id":"62040118012b8203e7000d40"}
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"recordingSchedules":[],"stats":{"rxBytes":5462343704,"txBytes":377423708907,"wifi":{"channel":null,"frequency":null,"linkSpeedMbps":null,"signalQuality":50,"signalStrength":0},"battery":{"percentage":null,"isCharging":false,"sleepState":"disconnected"},"video":{"recordingStart":1644429623025,"recordingEnd":1644822343288,"recordingStartLQ":1644429623093,"recordingEndLQ":1644822343342,"timelapseStart":1644429623025,"timelapseEnd":1644821808303,"timelapseStartLQ":1644429623025,"timelapseEndLQ":1644821763270},"storage":{"used":null}}}
2022.02.14 17:21:29 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 17:21:29 1:  stacktrace:
2022.02.14 17:21:29 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 17:21:29 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 17:21:29 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 17:21:29 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 17:21:29 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 17:21:29 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 17:21:29 1:  stacktrace:
2022.02.14 17:21:29 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 17:21:29 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 17:21:29 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 17:21:29 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 17:21:29 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 17:21:29 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 17:21:29 1:  stacktrace:
2022.02.14 17:21:29 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 17:21:29 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 17:21:29 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 17:21:29 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 17:21:29 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"action":"update","newUpdateId":"b0aef4c0-351a-443b-af96-2baca768adc4","modelKey":"nvr","id":"5b2cd99a01349503e70003e9"}
2022.02.14 17:21:29 4:  UnifiProtect: websocket: got: {"uptime":517998000,"lastSeen":1644855689884,"systemInfo":{"cpu":{"averageLoad":1.25,"temperature":60.467},"memory":{"available":991616,"free":110656,"total":3053288},"storage":{"available":908027027456,"isRecycling":false,"size":942307909632,"type":"hdd","used":34264104960,"devices":[{"model":"TOSHIBA MQ01ABD100V","size":1000204886016,"healthy":true}]},"ustorage":null,"tmpfs":{"available":256212,"total":262144,"used":5932,"path":"/var/opt/unifi-protect/tmp"}}}
2022.02.14 17:21:31 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 17:21:31 1:  stacktrace:
2022.02.14 17:21:31 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 17:21:31 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 17:21:31 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 17:21:31 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 17:21:31 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 17:21:31 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 17:21:31 1:  stacktrace:
2022.02.14 17:21:31 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 17:21:31 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 17:21:31 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 17:21:31 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 17:21:31 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 17:21:31 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 17:21:31 1:  stacktrace:
2022.02.14 17:21:31 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 17:21:31 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 17:21:31 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 17:21:31 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 17:21:31 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 17:21:32 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 17:21:32 1:  stacktrace:
2022.02.14 17:21:32 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 17:21:32 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 17:21:32 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 17:21:32 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 17:21:32 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 17:21:32 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 17:21:32 1:  stacktrace:
2022.02.14 17:21:32 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 17:21:32 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 17:21:32 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 17:21:32 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 17:21:32 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 17:21:32 1:  PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4929.
2022.02.14 17:21:32 1:  stacktrace:
2022.02.14 17:21:32 1:      main::__ANON__                      called by fhem.pl (4929)
2022.02.14 17:21:32 1:      main::readingsBulkUpdateIfChanged   called by ./FHEM/74_UnifiProtect.pm (615)
2022.02.14 17:21:32 1:      main::UnifiProtect_Parse            called by ./FHEM/74_UnifiProtect.pm (985)
2022.02.14 17:21:32 1:      main::UnifiProtect_Read             called by fhem.pl (3898)
2022.02.14 17:21:32 1:      main::CallFn                        called by fhem.pl (776)


Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 14 Februar 2022, 17:55:23
sehr komisch... ich glaube ich habe das problem behoben, aber die fehler zeilen passen nicht so recht zu den daten. und es hätte schon vorher und heftiger krachen müssen...
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 14 Februar 2022, 18:19:45
Mit der aktuellen Version war erst einmal Ruhe im Log.
Nach einem Neustart kam dann:

2022.02.14 18:13:03 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:03 1:  stacktrace:
2022.02.14 18:13:03 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:03 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:03 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:03 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:03 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:03 1:  stacktrace:
2022.02.14 18:13:03 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:03 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:03 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:03 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:03 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:03 1:  stacktrace:
2022.02.14 18:13:03 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:03 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:03 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:03 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:03 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:03 1:  stacktrace:
2022.02.14 18:13:03 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:03 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:03 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:03 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:03 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:03 1:  stacktrace:
2022.02.14 18:13:03 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:03 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:03 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:03 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:03 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:03 1:  stacktrace:
2022.02.14 18:13:03 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:03 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:03 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:03 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:04 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:04 1:  stacktrace:
2022.02.14 18:13:04 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:04 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:04 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:04 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:04 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:04 1:  stacktrace:
2022.02.14 18:13:04 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:04 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:04 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:04 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:04 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:04 1:  stacktrace:
2022.02.14 18:13:04 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:04 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:04 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:04 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:04 1:  PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_Unifi.pm line 949.
2022.02.14 18:13:04 1:  stacktrace:
2022.02.14 18:13:04 1:      main::__ANON__                      called by ./FHEM/74_Unifi.pm (949)
2022.02.14 18:13:04 1:      main::Unifi_Login_Receive           called by FHEM/HttpUtils.pm (696)
2022.02.14 18:13:04 1:      main::__ANON__                      called by fhem.pl (773)
2022.02.14 18:13:04 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:04 1:  stacktrace:
2022.02.14 18:13:04 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:04 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:04 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:04 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:04 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:04 1:  stacktrace:
2022.02.14 18:13:04 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:04 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:04 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:04 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:04 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:04 1:  stacktrace:
2022.02.14 18:13:04 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:04 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:04 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:04 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:04 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:04 1:  stacktrace:
2022.02.14 18:13:04 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:04 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:04 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:04 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:04 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:04 1:  stacktrace:
2022.02.14 18:13:04 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:04 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:04 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:04 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:04 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:04 1:  stacktrace:
2022.02.14 18:13:04 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:04 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:04 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:04 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:04 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:04 1:  stacktrace:
2022.02.14 18:13:04 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:04 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:04 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:04 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:04 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:04 1:  stacktrace:
2022.02.14 18:13:04 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:04 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:04 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:04 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:04 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:04 1:  stacktrace:
2022.02.14 18:13:04 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:04 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:04 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:04 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 2:  AttrTemplates: got 255 entries
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 634.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (634)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $length in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:05 1:  PERL WARNING: Use of uninitialized value $FW_RET in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 636.
2022.02.14 18:13:05 1:  stacktrace:
2022.02.14 18:13:05 1:      main::__ANON__                      called by ./FHEM/01_FHEMWEB.pm (636)
2022.02.14 18:13:05 1:      main::FW_finishRead                 called by ./FHEM/01_FHEMWEB.pm (604)
2022.02.14 18:13:05 1:      main::FW_Read                       called by fhem.pl (3898)
2022.02.14 18:13:05 1:      main::CallFn                        called by fhem.pl (776)
2022.02.14 18:13:19 2:  UnifiProtect: http request (https://192.168.2.2/proxy/protect/api/bootstrap) failed: read from https://192.168.2.2:443 timed out
2022.02.14 18:13:19 2:  UnifiProtect: http request (https://192.168.2.2/proxy/protect/api/cameras) failed: read from https://192.168.2.2:443 timed out


Gruß
Dan

EDIT: Jetzt sind leider keine Videostreams mehr zu sehen. Weder im Device noch im Weblink.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 14 Februar 2022, 18:51:04
hast du beim neustart fenster mit dem device bzw. dem livebild offen ?
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 14 Februar 2022, 18:52:44
Ich bin jetzt nicht auf der letzten verfügbaren Version, aber ich sehe jetzt zwischendurch immer diese ,,closed / disconnected Meldungen":

2022.02.14 17:18:17 2: OG_Buero_Schalter: bridge has events api, events connected, removing interval
2022.02.14 17:18:33 2: DG_Galerie_AK_Schalter: bridge has events api, events connected, removing interval
2022.02.14 17:21:31 2: OG_Badezimmer_Schalter: bridge has events api, events connected, removing interval
2022.02.14 17:22:07 1: !!!!closed!!!!
2022.02.14 17:22:07 1: disconnected
2022.02.14 17:27:00 2: DG_KS_Bewegungsmelder_Temperatur: bridge has events api, events connected, removing interval
2022.02.14 17:30:11 2: DG_AK_Schalter: bridge has events api, events connected, removing interval
2022.02.14 17:30:20 2: OG_WZ_Essbereich_Schalter: bridge has events api, events connected, removing interval
2022.02.14 17:37:07 1: !!!!closed!!!!
2022.02.14 17:37:07 1: disconnected
2022.02.14 17:37:26 3: CUL_HM set EG_HWR_Strom_Waeschetrockner_Sw statusRequest noArg
2022.02.14 17:39:48 3: Badezimmer Licht und Sonos: an
2022.02.14 17:39:50 3: Badezimmer Licht und Sonos: an
2022.02.14 17:40:04 3: Badezimmer Licht und Sonos: an
2022.02.14 17:41:31 3: Badezimmer Licht und Sonos: aus
2022.02.14 17:42:01 2: OG_KZ_Schalter: bridge has events api, events connected, removing interval
2022.02.14 17:52:08 1: !!!!closed!!!!
2022.02.14 17:52:08 1: disconnected
2022.02.14 17:59:42 2: OG_Flur_Schalter: bridge has events api, events connected, removing interval
2022.02.14 18:07:08 1: !!!!closed!!!!
2022.02.14 18:07:08 1: disconnected
2022.02.14 18:11:23 3: Badezimmer Licht und Sonos: an
2022.02.14 18:11:24 3: Badezimmer Licht und Sonos: an
2022.02.14 18:13:14 3: Küche Licht und Sonos: an
2022.02.14 18:13:15 3: Küche Licht und Sonos: an
2022.02.14 18:13:19 2: OG_WZ_Wohnbereich_Schalter: bridge has events api, events connected, removing interval
2022.02.14 18:15:31 3: Küche Licht und Sonos: aus
2022.02.14 18:22:08 1: !!!!closed!!!!
2022.02.14 18:22:08 1: disconnected
2022.02.14 18:30:31 2: DG_KS_Bewegungsmelder: bridge has events api, events connected, removing interval
2022.02.14 18:37:09 1: !!!!closed!!!!
2022.02.14 18:37:09 1: disconnected
2022.02.14 18:43:46 3: Küche Licht und Sonos: an
2022.02.14 18:43:47 3: Küche Licht und Sonos: an
2022.02.14 18:44:04 3: Küche Licht und Sonos: an
2022.02.14 18:47:55 3: Küche Licht und Sonos: aus


FHEM läuft aber weiter.

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 14 Februar 2022, 18:54:23
@DeeSPe: das einige wenige meldungen kommen wenn während eines neustart die browser weiter offen sind kann sein, da der browser von dem neustart nichts weiss und das livebild weiter abgefragt wird.

wenn der neustart vorbei ist sollte sich aber alles normal neu verbindungen und das bild wieder da sein. anderes kann ich nicht reproduzieren.

welchen browser verwendest du ?
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 14 Februar 2022, 18:58:44
Ich sehe gerade, dass das UnifiProtect Device im Status ,,disconnected" ist. Ich habe bisher nur eine G3-Instant eingerichtet und die soll als Babyphone verwendet werden. Die ist also nicht dauerhaft an und somit auch gerade disconnected.

Bin gerade am Handy und kann mein System nicht wirklich analysieren. ;)
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 14 Februar 2022, 18:59:06
Zitat von: justme1968 am 14 Februar 2022, 18:51:04
hast du beim neustart fenster mit dem device bzw. dem livebild offen ?

Das ist möglich. Habe den Weblink auf meiner Startseite eingebunden und von dort aus (glaube ich) den Restart ausgelöst.
Habe jetzt nochmal neu gestartet auf einer Seite ohne Kamerabild und nun sah es besser aus.
Habe aber trotzdem noch diese Warnung im Log gefunden:

2022.02.14 18:56:16 1:  PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_Unifi.pm line 949.
2022.02.14 18:56:16 1:  stacktrace:
2022.02.14 18:56:16 1:      main::__ANON__                      called by ./FHEM/74_Unifi.pm (949)
2022.02.14 18:56:16 1:      main::Unifi_Login_Receive           called by FHEM/HttpUtils.pm (696)
2022.02.14 18:56:16 1:      main::__ANON__                      called by fhem.pl (773)


Ich verwendet den Chrome Browser.

Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 14 Februar 2022, 19:01:44
@hoppel118: aus irgendeinem grund schließt dein controller das websocket mit den update events. das kann ab und an passieren. bei dir ist das aber viel zu oft der fall.

war das mit den älteren versionen anders ?

andererseits scheint es regelmäßig alle 15 minuten zu passieren.

wenn nicht alle konfigurierten kameras da sind sollte das kein problem sein. ich habe hier auch aktuell eine nicht dran.

@DeeSPe: das ist das normale unifi modul, nicht protect.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 14 Februar 2022, 19:30:23
Zitat von: justme1968 am 14 Februar 2022, 19:01:44
@DeeSPe: das ist das normale unifi modul, nicht protect.

Oh ja richtig. Lesen muss man auch können. ;)
Ich bitte vielmals um Verzeihung.

Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 14 Februar 2022, 20:16:46
gerne doch :)
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 14 Februar 2022, 20:30:44
Zitat von: justme1968 am 14 Februar 2022, 19:01:44
@hoppel118: aus irgendeinem grund schließt dein controller das websocket mit den update events. das kann ab und an passieren. bei dir ist das aber viel zu oft der fall.

war das mit den älteren versionen anders ?

andererseits scheint es regelmäßig alle 15 minuten zu passieren.

wenn nicht alle konfigurierten kameras da sind sollte das kein problem sein. ich habe hier auch aktuell eine nicht dran.

Jo, diese "closed / disconnected" Meldungen sehe ich seit der Version, die ich heute Nachmittag installiert hatte (direkt vor dem Crash waren diese beiden Meldungen auch schon zu sehen) und nun alle 15 min. Vorher mit der Version vom 07.02. gab es diese Meldungen nicht.

Hatte vorhin alle Readings aller EndDevices und des MainDevices einmal gelöscht. Es wurde aber anschließend wieder alles neu reingezogen, so dass eigentlich erstmal alles gut aussah.

Mein UnifiProtect MainDevice war dann immer noch im Status "disconnected", obwohl die Kamera schon ein paar Minuten wieder "connected" war.

Anschließend habe ich dann FHEM gerade nochmal neugestartet. Nun ist das UnifiProtect MainDevice wieder im Status "opened". Ich beobachte das mal. Keine Ahnung, was das jetzt war.

Falls es noch komische Logmeldungen gibt, melde ich mich nochmal. Momentan sieht erstmal alles gut aus.

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 14 Februar 2022, 21:55:44
Hm..., nö, das war nicht die Lösung:

2022.02.14 20:47:06 1: !!!!closed!!!!
2022.02.14 20:47:06 1: disconnected
2022.02.14 21:18:01 1: !!!!closed!!!!
2022.02.14 21:18:01 1: disconnected


Da sich in den letzten Tagen ja wieder einiges am Modul getan hat, habe ich nun alle Protect Devices nochmal gelöscht und von vorn begonnen.

Im Logfile sah das dann wie folgt aus:

2022.02.14 21:29:28 3: UnifiProtect: is UnifiOS: 1
2022.02.14 21:29:28 2: UnifiProtect: can't connect without password
2022.02.14 21:29:28 3: stored obfuscated user
2022.02.14 21:29:28 3: stored obfuscated password
2022.02.14 21:29:29 2: autocreate: define UnifiProtectDevice_61fdc20c02dd7303e70003fa UnifiProtectDevice 61fdc20c02dd7303e70003fa
2022.02.14 21:29:29 2: autocreate: define FileLog_UnifiProtectDevice_61fdc20c02dd7303e70003fa FileLog ./log/UnifiProtectDevice_61fdc20c02dd7303e70003fa-%Y.log UnifiProtectDevice_61fdc20c02dd7303e70003fa
2022.02.14 21:29:29 2: autocreate: define UnifiProtectDevice_61f5af5f000c0803e700140c UnifiProtectDevice 61f5af5f000c0803e700140c
2022.02.14 21:29:29 2: autocreate: define FileLog_UnifiProtectDevice_61f5af5f000c0803e700140c FileLog ./log/UnifiProtectDevice_61f5af5f000c0803e700140c-%Y.log UnifiProtectDevice_61f5af5f000c0803e700140c
2022.02.14 21:29:29 2: autocreate: define UnifiProtectDevice_61fdbd8201e24a03e700142e UnifiProtectDevice 61fdbd8201e24a03e700142e
2022.02.14 21:29:29 2: autocreate: define FileLog_UnifiProtectDevice_61fdbd8201e24a03e700142e FileLog ./log/UnifiProtectDevice_61fdbd8201e24a03e700142e-%Y.log UnifiProtectDevice_61fdbd8201e24a03e700142e
2022.02.14 21:29:32 1: PERL WARNING: Use of uninitialized value in hash element at fhem.pl line 1731.


Ganz am Ende gab es also nochmal eine PERL WARNING.

Nun scheint aber Ruhe zu sein. Das MainDevice bleibt auf opened und die Meldungen sind anscheinend weg (knappe halbe Stunde ist nun rum).

Schönen Abend noch! Sieht also erstmal gut aus. ;)

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 14 Februar 2022, 23:19:46
Nö, das war leider auch nicht die Lösung. Das UnifiProtect Device ist nun wieder im Status "disconnected". Um 21:27 Uhr hatte ich FHEM gestartet.

2022.02.14 22:54:38 1: !!!!closed!!!!
2022.02.14 22:54:38 1: disconnected
2022.02.14 22:59:31 1: !!!!closed!!!!
2022.02.14 22:59:31 1: disconnected
2022.02.14 23:14:31 1: !!!!closed!!!!
2022.02.14 23:14:31 1: disconnected


Was brauchst du von mir Andre?

Bin erstmal wieder auf der Version vom 07.02.. Die läuft bei mir.

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 15 Februar 2022, 11:17:38
kannst du bitte mal in der neusten version in zeile 1260 den log eintrag Log 1, "UnifiProtect_Disconnect: $name";und in zeile 1285 den log eintrag Log 1, "UnifiProtect_Connect: $name";aktivieren und schauen ob die dann direkt vor dem closed eintrag auftauchen.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 15 Februar 2022, 22:56:36
Hi Andre,

habe die beiden Logzeilen auskommentiert. Nun sehe ich folgende Zeilen im Logfile:

2022.02.15 22:30:33 1: UnifiProtect_Connect: UnifiProtect
2022.02.15 22:30:33 1: UnifiProtect_Disconnect: UnifiProtect
2022.02.15 22:30:54 1: !!!!closed!!!!
2022.02.15 22:30:54 1: disconnected
2022.02.15 22:45:33 1: UnifiProtect_Connect: UnifiProtect
2022.02.15 22:45:33 1: UnifiProtect_Disconnect: UnifiProtect
2022.02.15 23:00:34 1: UnifiProtect_Connect: UnifiProtect
2022.02.15 23:00:34 1: UnifiProtect_Disconnect: UnifiProtect


Bringt uns das irgendwie weiter?

Hattest du an den Modulen noch irgendwas verändert?

Das UnifiProtect MainDevice ist immer noch im Status "opened". Das sieht also erstmal gut aus.

Ist es für dich logisch, dass diesen (Dis)Connect alle 15 Minuten gibt?

Mal sehen, ob FHEM morgen früh noch läuft.

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 16 Februar 2022, 23:22:39
Ohne Ende alle 15 Minuten folgende Meldungen, aber FHEM stürzt nicht mehr ab.

2022.02.16 20:13:03 1: UnifiProtect_Connect: UnifiProtect
2022.02.16 20:13:03 1: UnifiProtect_Disconnect: UnifiProtect
2022.02.16 20:13:03 1: !!!!closed!!!!
2022.02.16 20:13:03 1: disconnected
2022.02.16 20:28:03 1: UnifiProtect_Connect: UnifiProtect
2022.02.16 20:28:03 1: UnifiProtect_Disconnect: UnifiProtect
2022.02.16 20:28:04 1: !!!!closed!!!!
2022.02.16 20:28:04 1: disconnected
2022.02.16 20:43:04 1: UnifiProtect_Connect: UnifiProtect
2022.02.16 20:43:04 1: UnifiProtect_Disconnect: UnifiProtect
2022.02.16 20:43:04 1: !!!!closed!!!!
2022.02.16 20:43:04 1: disconnected
2022.02.16 20:58:04 1: UnifiProtect_Connect: UnifiProtect
2022.02.16 20:58:04 1: UnifiProtect_Disconnect: UnifiProtect
2022.02.16 20:58:05 1: !!!!closed!!!!
2022.02.16 20:58:05 1: disconnected
2022.02.16 21:13:04 1: UnifiProtect_Connect: UnifiProtect
2022.02.16 21:13:04 1: UnifiProtect_Disconnect: UnifiProtect
2022.02.16 21:13:05 1: !!!!closed!!!!
2022.02.16 21:13:05 1: disconnected
2022.02.16 21:28:05 1: UnifiProtect_Connect: UnifiProtect
2022.02.16 21:28:05 1: UnifiProtect_Disconnect: UnifiProtect
2022.02.16 21:28:05 1: !!!!closed!!!!
2022.02.16 21:28:05 1: disconnected
2022.02.16 21:43:05 1: UnifiProtect_Connect: UnifiProtect
2022.02.16 21:43:05 1: UnifiProtect_Disconnect: UnifiProtect
2022.02.16 21:43:06 1: !!!!closed!!!!
2022.02.16 21:43:06 1: disconnected
2022.02.16 21:58:06 1: UnifiProtect_Connect: UnifiProtect
2022.02.16 21:58:06 1: UnifiProtect_Disconnect: UnifiProtect
2022.02.16 21:58:06 1: !!!!closed!!!!
2022.02.16 21:58:06 1: disconnected
2022.02.16 22:13:06 1: UnifiProtect_Connect: UnifiProtect
2022.02.16 22:13:06 1: UnifiProtect_Disconnect: UnifiProtect
2022.02.16 22:13:07 1: !!!!closed!!!!
2022.02.16 22:13:07 1: disconnected
2022.02.16 22:15:58 1: !!!!closed!!!!
2022.02.16 22:15:58 1: disconnected
2022.02.16 22:28:07 1: UnifiProtect_Connect: UnifiProtect
2022.02.16 22:28:07 1: UnifiProtect_Disconnect: UnifiProtect
2022.02.16 22:28:07 1: !!!!closed!!!!
2022.02.16 22:28:07 1: disconnected
2022.02.16 22:43:07 1: UnifiProtect_Connect: UnifiProtect
2022.02.16 22:43:07 1: UnifiProtect_Disconnect: UnifiProtect
2022.02.16 22:43:07 1: !!!!closed!!!!
2022.02.16 22:43:07 1: disconnected
2022.02.16 22:58:07 1: UnifiProtect_Connect: UnifiProtect
2022.02.16 22:58:07 1: UnifiProtect_Disconnect: UnifiProtect
2022.02.16 22:58:18 1: !!!!closed!!!!
2022.02.16 22:58:18 1: disconnected


Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 03 März 2022, 16:31:41
Hi Andre,

ich sehe immer noch alle 15 Minuten diese disconnect Meldungen und mein "UnifiProtect" device ist auch gerade wieder im Status "disconnected", obwohl die verbundenen Geräte "CONNECTED" sind und auch funktionieren.

Neulich habe ich ohne Ende folgende Meldungen erhalten:

2022.03.01 20:40:15 2: UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.01 20:50:15 2: UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.01 21:00:15 2: UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.01 21:10:15 2: UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.01 21:20:15 2: UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.01 21:30:15 2: UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.01 21:40:15 2: UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.01 21:50:15 2: UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in


Erst ein FHEM Neustart hat das Logging dieser Meldungen gestoppt. Evtl. bringen uns diese Meldungen irgendwie weiter.

Hier ist nochmal ein verbose 5 mit den von dir neulich benannten Log-Einstellungen:

https://pastebin.com/9vBB6qEx

Wahrscheinlich wolltest du das Logfile neulich schon im verbose 5 haben. ::) Das war allerdings nicht der Fall. Das hattest du nicht geschrieben. Auf die Idee kam ich gestern Abend zufällig.  ;D

Es endet mit den Meldungen:

2022.03.03 16:20:36 1: !!!!closed!!!!
2022.03.03 16:20:36 4: UnifiProtect: UnifiProtect_CloseWebsocket: wss:10.10.10.1:443/proxy/protect/ws/updates?lastUpdateId=e62dc137-f4d5-467c-965e-8800990d3cb0
2022.03.03 16:20:36 1: disconnected


15 Minuten später kommt das gleiche Log erneut.

Siehst du da was? Hast du evtl. sonst noch eine Idee, was ich dir liefern könnte?

Danke dir und Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 03 März 2022, 16:45:43
Die von hoppel118 gemeldeten Log Zeilen sind/waren bei mir auch gestern und heute zu finden.
2022.03.03 08:50:09 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.03 08:58:47 1:  PERL WARNING: Use of uninitialized value in string eq at (eval 248534) line 1.
2022.03.03 08:58:47 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 744.
in
2022.03.03 08:58:47 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 744.
in
2022.03.03 08:58:47 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 744.
in
2022.03.03 08:58:47 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 744.
in
2022.03.03 08:58:47 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 744.
in
2022.03.03 09:00:09 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.03 09:10:09 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.03 09:20:09 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.03 09:30:09 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.03 09:40:09 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.03 09:50:09 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.03 10:00:09 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.03 10:10:09 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.03 10:20:09 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.03 10:28:37 2:  UnifiProtect: http request (https://192.168.1.1/proxy/protect/api/cameras/62167dd0032d8903e70004e4/snapshot?w=320) failed: read from https://192.168.1.1:443 timed out
2022.03.03 10:30:37 2:  UnifiProtect: http request (https://192.168.1.1/proxy/protect/api/cameras/62167dd0032d8903e70004e4/snapshot?w=320) failed: read from https://192.168.1.1:443 timed out
2022.03.03 10:39:37 2:  UnifiProtect: http request (https://192.168.1.1/proxy/protect/api/cameras/62167dd0032d8903e70004e4/snapshot?w=320) failed: read from https://192.168.1.1:443 timed out
2022.03.03 10:44:37 2:  UnifiProtect: http request (https://192.168.1.1/proxy/protect/api/cameras/62167dd0032d8903e70004e4/snapshot?w=320) failed: read from https://192.168.1.1:443 timed out
2022.03.03 10:52:37 2:  UnifiProtect: http request (https://192.168.1.1/proxy/protect/api/cameras/62167dd0032d8903e70004e4/snapshot?w=320) failed: read from https://192.168.1.1:443 timed out


Danach kamen dann auch keine Bilder mehr von den Kameras. Ein "reconnect" im UnifiProtect Device hat dann die Funktion wieder hergestellt.

Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 03 März 2022, 16:58:07
Stimmt, reconnect gibts ja auch noch. Dann brauche ich FHEM beim nächsten Mal nicht Neustarten.

@DeeSPe Diese ,,!!!!closed!!!!" und ,,disconnected" Meldungen alle 15Minuten hast du nicht? Warum bin ich denn der einzige? :D

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 03 März 2022, 17:12:46
Zitat von: hoppel118 am 03 März 2022, 16:58:07
@DeeSPe Diese ,,!!!!closed!!!!" und ,,disconnected" Meldungen alle 15Minuten hast du nicht?

Nö, die habe ich noch nie gesehen.

Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 04 März 2022, 10:42:09
Heute Früh habe ich das wieder im Log:
2022.03.04 08:50:17 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.04 09:00:17 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.04 09:10:17 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.04 09:20:17 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.04 09:30:17 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.04 09:40:17 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.04 09:50:18 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.04 10:00:18 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.04 10:10:18 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.04 10:20:18 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in


Das UnifiProtect Hauptdevice war auch wieder nicht verbunden, ein reconnect hat soeben wieder Abhilfe geschaffen.

Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 05 März 2022, 21:06:45
ich glaube die neuverbindungen sind 'nur' der reconnect der im modul nicht drin steckt. das sich der unterschiedlich auswirkt (d.h. mit oder ohne closed eintrag) könnte zufall sein und am system liegen.

im code gibt es ein InternalTimer mit 900 sekunden. könnt ihr den mal ändern und schauen ob es einen unterschied macht?


der malformed JSON string schein ein abgelaufenes token zu sein. das sollte eigentlich regelmässig aktualisiert werden und im fehlerfall ebenfalls. eventuell habe ich hier bei der umstellung noch was übersehen.

ich schaue es mir an sobald ich dazu komme.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: DeeSPe am 08 März 2022, 14:33:04
Zitat von: justme1968 am 05 März 2022, 21:06:45
der malformed JSON string schein ein abgelaufenes token zu sein. das sollte eigentlich regelmässig aktualisiert werden und im fehlerfall ebenfalls. eventuell habe ich hier bei der umstellung noch was übersehen.

Ich habe das jetzt jeden Tag im Log, irgendwas scheint mit der Aktualisierung des Token noch nicht zu klappen:

2022.03.08 13:41:03 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.08 13:51:03 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.08 14:01:03 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.08 14:11:03 2:  UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.


Ein "reconnect" behebt das Problem immer wieder.

Gruß
Dan
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 08 März 2022, 17:25:54
Zitat von: justme1968 am 05 März 2022, 21:06:45
ich glaube die neuverbindungen sind 'nur' der reconnect der im modul nicht drin steckt. das sich der unterschiedlich auswirkt (d.h. mit oder ohne closed eintrag) könnte zufall sein und am system liegen.

im code gibt es ein InternalTimer mit 900 sekunden. könnt ihr den mal ändern und schauen ob es einen unterschied macht?

OK, ich habe gerade mal den InternalTimer auf 1800 gesetzt. Nun siehts erstmal so aus:

2022.03.08 16:59:40 1: !!!!closed!!!!
2022.03.08 16:59:40 1: disconnected
2022.03.08 17:07:49 1: !!!!closed!!!!
2022.03.08 17:07:49 1: disconnected
2022.03.08 17:19:38 1: UnifiProtect_Connect: UnifiProtect
2022.03.08 17:19:38 1: UnifiProtect_Disconnect: UnifiProtect
2022.03.08 17:19:39 1: !!!!closed!!!!
2022.03.08 17:19:39 1: disconnected


Melde mich später nochmal. Vielleicht pendelt sich das ja noch bei einer halben Stunde ein. Hatte FHEM beendet, den Code angepasst und anschließend um 16:49 Uhr FHEM wieder gestartet.

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 08 März 2022, 21:14:57
Jo, der InternalTimer auf 1800 verschiebt die Meldungen auf alle 30min:

2022.03.08 17:19:38 1: UnifiProtect_Connect: UnifiProtect
2022.03.08 17:19:38 1: UnifiProtect_Disconnect: UnifiProtect
2022.03.08 17:19:39 1: !!!!closed!!!!
2022.03.08 17:19:39 1: disconnected
2022.03.08 17:49:39 1: UnifiProtect_Connect: UnifiProtect
2022.03.08 17:49:39 1: UnifiProtect_Disconnect: UnifiProtect
2022.03.08 17:49:39 1: !!!!closed!!!!
2022.03.08 17:49:39 1: disconnected
2022.03.08 18:19:39 1: UnifiProtect_Connect: UnifiProtect
2022.03.08 18:19:39 1: UnifiProtect_Disconnect: UnifiProtect
2022.03.08 18:19:39 1: !!!!closed!!!!
2022.03.08 18:19:39 1: disconnected
2022.03.08 18:49:39 1: UnifiProtect_Connect: UnifiProtect
2022.03.08 18:49:39 1: UnifiProtect_Disconnect: UnifiProtect
2022.03.08 18:49:40 1: !!!!closed!!!!
2022.03.08 18:49:40 1: disconnected
2022.03.08 19:19:40 1: UnifiProtect_Connect: UnifiProtect
2022.03.08 19:19:40 1: UnifiProtect_Disconnect: UnifiProtect
2022.03.08 19:19:40 1: !!!!closed!!!!
2022.03.08 19:19:40 1: disconnected
2022.03.08 19:49:40 1: UnifiProtect_Connect: UnifiProtect
2022.03.08 19:49:40 1: UnifiProtect_Disconnect: UnifiProtect
2022.03.08 19:49:41 1: !!!!closed!!!!
2022.03.08 19:49:41 1: disconnected
2022.03.08 20:19:41 1: UnifiProtect_Connect: UnifiProtect
2022.03.08 20:19:41 1: UnifiProtect_Disconnect: UnifiProtect
2022.03.08 20:19:51 1: !!!!closed!!!!
2022.03.08 20:19:51 1: disconnected
2022.03.08 20:45:03 1: !!!!closed!!!!
2022.03.08 20:45:03 1: disconnected
2022.03.08 20:49:41 1: UnifiProtect_Connect: UnifiProtect
2022.03.08 20:49:41 1: UnifiProtect_Disconnect: UnifiProtect
2022.03.08 20:49:42 1: !!!!closed!!!!
2022.03.08 20:49:42 1: disconnected


Um 20:45 Uhr gab es ein !!!!closed!!!! disconnected außerhalb der Reihe.

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: OMIT am 18 März 2022, 18:34:37
Hallo zusammen,

bei mir werden die Devices nicht mehr aktualisiert. Es kommen also keine Events an.
Hat das sonst noch jemand festgestellt?
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 18 März 2022, 20:46:44
Moin, habe auch gerade nochmal meine devices angeschaut. Da wird auch nichts mehr aktualisiert.

Im Logfile sehe ich wieder die json errors. Aber als das losging, gab es auch noch eine PERL Warnung:

2022.03.16 05:22:15 1: UnifiProtect_Connect: UnifiProtect
2022.03.16 05:22:15 1: UnifiProtect_Disconnect: UnifiProtect
2022.03.16 05:22:16 1: !!!!closed!!!!
2022.03.16 05:22:16 1: disconnected
2022.03.16 05:22:16 1: !!!!closed!!!!
2022.03.16 05:22:16 1: disconnected
2022.03.16 06:22:16 1: PERL WARNING: Use of uninitialized value $json in concatenation (.) or string at ./FHEM/74_UnifiProtect.pm line 836.
2022.03.16 06:22:16 2: UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.16 06:32:16 2: UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in
2022.03.16 06:42:16 2: UnifiProtect: json error: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Unauthorized") at ./FHEM/74_UnifiProtect.pm line 835.
in


set UnifiProtect reconnect bzw. inactive/active funktioniert bei mir nicht. Das Device bleibt im Status ,,disconnected".

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 07 April 2022, 20:20:59
@justme1968

Ist zwar offtopic hier, aber du André warst ja am Überlegen. UXG-Pro-EU ist verfügbar:

https://eu.store.ui.com/collections/unifi-network-routing-offload/products/unifi-next-generation-gateway-professional

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 07 April 2022, 20:41:38
danke. meiner ist vorhin gekommen :) und ich habe auch schon platz dafür gemacht.

aber es ist noch ein c13 winkel kabel im anflug damit er in den kleinen netzwerk schrank passt. das ding ist leider ziemlich tief und ich muss sogar die winkel umgekehrt befestigen. das ist etwas doof da das gehäuse scheinbar fast leer ist. der usw 24 poe ist deutlich weniger tief und der usw aggregation sogar fast nur halb so tief :(.

ach ja, und die nächste firmware version muss ich eventuell auch noch abwarten. das policy based routing für den telekom anschluss geht zwar scheinbar schon mit der aktuellen 1.12, aber das failover zwischen kabel und dsl anschluss geht wohl erst mit 1.13 :(.


und um auch noch was zum eigentlichen thema zusagen: das modul ist nicht vergessen und ich glaube ich habe die meisten probleme inzwischen im griff, aber es gibt noch irgendwo ein memory leak mit dem das modul mein test fhem über nach auf über 12gb aufbläst. wenn ich das auch repariert habe gibt es hier eine neue version.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 15 April 2022, 19:51:17
immer noch offtoppic...

uxg-pro läuft inzwischen und das policy based routing funktioniert. unterm strich sogar besser als mit den klimmzügen und der handarbeit die im usg per config.json und script nötig waren.

fallback auf dsl geht auch. schon zu gehen. hatte oben die features bzw. die versionen vertauscht.

so weit läuft also alles gut und stabil.

load balancing scheint laut gui auch mit der 1.12 obwohl erst für 1.13 angekündigt. bei dsl 16 gegenüber kabel 1000 ist das aber sowieso eher uninteressant.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 15 April 2022, 20:09:48
Cool! Freut mich für dich!

Eigentlich hätte ich auch gern ein UXG mit einem Controller in einem Docker Container. Das würde aber bedeuten, dass ich mir auch ein NVR oder Cloud Key Gen2 Plus für Protect holen müsste. NVR brauche ich nicht für 2-3 Kameras und bei der Kombi UXG/CK2+ sehe ich keinen wirklichen Vorteil ggü. meiner jetzigen UDM-SE. :)

Load Balancing macht hier auch keinen Sinn. Ich habe hier zwar FTTH. Die einzige Alternative wäre ADSL mit 1MBit down und 100KBit up. Evtl. irgendwann ein Fallback per 5G. Die Telekom hat hier in der Nähe gerade einen Mast aufgestellt. Der soll im zweiten Quartal erschlossen werden, also bald. Einen Telekom-Handyvertrag habe ich bereits. Mal sehen, wie das Signal so auf meinem Smartphone ist. Wie dem auch sei, U-LTE Pro gibt's noch nicht in der 5G Variante... :)

Gibt's schon was neues bezüglich Modul? Hast du das Memory Leak schon in den Griff bekommen? ;)

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 24 Mai 2022, 22:31:54
Moin @justme1968

ich will ja nicht nerven, aber ich habe gerade entdeckt, dass die G4 Doorbell Pro nun GA ist. Das Teil finde ich interessant. Da ich dann meine Sonos klingeln lassen möchte, bin ich in gewisser Weise auf dieses Modul angewiesen.

Gibts hier schon was neues? :)

Momentan ist das gute Stück schon wieder Sold Out:

https://eu.store.ui.com/collections/unifi-protect-cameras/products/g4-doorbell-pro?variant=41478134825142

Es ist jetzt auch nicht total eilig, aber ein Bisschen schon. ;)

Mach dir keinen Stress deswegen. Es wäre aber cool zu verstehen, ob du weiter gekommen bist oder wie so der Stand der Dinge ist.

Viele Grüße Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 25 Mai 2022, 06:49:49
Hallo Hoppel,

das Ding hatte/habe ich auch auf der Liste. Allerdings insbesondere wegen des ursprünglich integrierten Fingerabdrucksensors - in der GA-Version in EU ist davon nun keine Rede mehr. Leider. Was ich nicht weiß, ist, ob der Sensor hardwaremäßig verbaut aber in der Firmware noch nicht implementiert ist, oder tatsächlich nicht vorhanden ist - dann wäre das ein KO-Kriterium für mich für dieses Device, denn der Unterschied zur normalen Doorbell ist dann nicht mehr so riesig.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 25 Mai 2022, 09:00:16
sorry für die verspätung...

da es kein api gibt und ich nicht weiß ob und wie das implementiert ist geht vermutlich selbst das probieren nicht ohne das gerät hier zu haben. und ich habe eigentlich nicht vor mir einen zu kaufen. hier im haus ist das türsprechsystem gira basiert. wenn ich auf video aktualisiere vermutlich auch gira a der bus halt schon liegt und benutz wird. auch für die fhem anbindung über klingelsensoren mit hm taster schnittstellen.

bevor sich jemand hoffnung macht: ich weiß nicht ob von der erkennung überhaupt etwas im controller zu sehen ist. ich vermute eher das nur die indirekten auswirkungen wie 'tür geöffnet' zu sehen sein werden. eventuell noch durch welchen finder. vielleicht sogar nur im log. alles andere ('echte daten') wäre auch ein sicherheitsrisiko und mich nachdenklich stimmen was das system angeht.

die normale klingel sollte mit dem modul schon funktionieren und ich hoffe ich komme in nächster zeit dazu das modul fertig zu machen.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 25 Mai 2022, 09:12:10
Zitat von: Ralli am 25 Mai 2022, 06:49:49
Hallo Hoppel,

das Ding hatte/habe ich auch auf der Liste. Allerdings insbesondere wegen des ursprünglich integrierten Fingerabdrucksensors - in der GA-Version in EU ist davon nun keine Rede mehr. Leider. Was ich nicht weiß, ist, ob der Sensor hardwaremäßig verbaut aber in der Firmware noch nicht implementiert ist, oder tatsächlich nicht vorhanden ist - dann wäre das ein KO-Kriterium für mich für dieses Device, denn der Unterschied zur normalen Doorbell ist dann nicht mehr so riesig.

Evtl. fehlt nur die Softwareseitige Implementierung des Fingerprint Readers.

Zitat von: justme1968 am 25 Mai 2022, 09:00:16
sorry für die verspätung...

da es kein api gibt und ich nicht weiß ob und wie das implementiert ist geht vermutlich selbst das probieren nicht ohne das gerät hier zu haben. und ich habe eigentlich nicht vor mir einen zu kaufen. hier im haus ist das türsprechsystem gira basiert. wenn ich auf video aktualisiere vermutlich auch gira a der bus halt schon liegt und benutz wird. auch für die fhem anbindung über klingelsensoren mit hm taster schnittstellen.

bevor sich jemand hoffnung macht: ich weiß nicht ob von der erkennung überhaupt etwas im controller zu sehen ist. ich vermute eher das nur die indirekten auswirkungen wie 'tür geöffnet' zu sehen sein werden. eventuell noch durch welchen finder. vielleicht sogar nur im log. alles andere ('echte daten') wäre auch ein sicherheitsrisiko und mich nachdenklich stimmen was das system angeht.

die normale klingel sollte mit dem modul schon funktionieren und ich hoffe ich komme in nächster zeit dazu das modul fertig zu machen.

Meinst du nicht, dass wir das auf dem gleichen Weg eingebunden bekommen, wie wir das auch mit den Sensoren gemacht haben?

Bei HomeAssistant scheint es schon zu funktionieren:

https://ubiquiti-networks-forum.de/board/thread/3788-g4-doorbell-pro/?postID=59041#post59041

Habe dort allerdings nicht hinterfragt, ob das dort schon nativ integriert ist bzw. was über die API möglich ist.

Hm..., ohne Integartion in FHEM macht das Teil keinen Sinn...

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 25 Mai 2022, 09:26:24
also... niemals vergessen: es gibt kein (dokumentiertes) api sondern nur das was sich zwischen browser und controller mit hören lässt. kammeras und sensoren funktionieren weil sie sich im browser anzeigen und konfigurieren lassen. entsprechend für den fingerabdruck sensor: ich vermute man kann im browser sehen ob und wann jemand einen finger aufgelegt hat und wer erkannt wurde. wenn das so ist sollte das auch im modul gehen. die klingel und das bild werden genau so funktionieren wie ein normaler sensor und eine kamera.

so lange niemand ein gerät hat ist es aber müßig zu spekulieren.

wie gut sich das remote implementieren lässt weiß ich nicht. um die kommunikation zwischen controller und browser zu belauschen braucht man ein gerät bei sich vor ort. wir müssen also wenn es so weit ist schauen wie wir das machen. wie gesagt werde ich mir ziemlich sicher keins kaufen.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 25 Mai 2022, 10:04:57
OK, verstanden...

Habe gerade mal die üblichen Verdächtigen durchsucht:

Anbindung HomeAssistant: https://github.com/briis/unifiprotect?WT.mc_id=-blog-scottha
Anbindung Homebridge: https://github.com/hjdhjd/homebridge-unifi-protect/blob/main/docs/Doorbell.md

Es handelt sich bei diesen Integrationen zwar nicht um das G4 Doorbell Pro Modell, sondern um das normale Modell (ohne Pro), aber wer weiß schon, ob es da Unterschiede gibt. Das wird sich dann zeigen.   

Ich will auch gar nicht spekulieren, zumal das Modul noch gar nicht fertig ist.

Wie eine Integration dann genau ablaufen kann, müssen wir dann schauen, wenn jemand so ein Teil hat.

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 25 Mai 2022, 11:04:16
Zitat von: Ralli am 25 Mai 2022, 06:49:49
Hallo Hoppel,

das Ding hatte/habe ich auch auf der Liste. Allerdings insbesondere wegen des ursprünglich integrierten Fingerabdrucksensors - in der GA-Version in EU ist davon nun keine Rede mehr. Leider. Was ich nicht weiß, ist, ob der Sensor hardwaremäßig verbaut aber in der Firmware noch nicht implementiert ist, oder tatsächlich nicht vorhanden ist - dann wäre das ein KO-Kriterium für mich für dieses Device, denn der Unterschied zur normalen Doorbell ist dann nicht mehr so riesig.

Dem folgenden Beitrag nach wurde der Fingerprint Reader bisher nur Softwareseitig noch nicht freigeschaltet:

https://ubiquiti-networks-forum.de/board/thread/3788-g4-doorbell-pro/?postID=59242#post59242

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 28 Mai 2022, 22:37:53
Hallo in die Runde,

anscheinend haben ja neben mir hier noch weitere Leute Interesse an einer Integration der Unifi G4 Doorbell Pro in FHEM. Es geht um folgendes Produkt:

https://eu.store.ui.com/collections/unifi-protect-cameras/products/g4-doorbell-pro

Wer von euch hat Lust, André hinsichtlich Test-Hardware zu unterstützen?

Das gute Stück kostet 283€ ohne Mehrwertsteuer, inkl. Mwst. 336€ plus Versand in Summe also ca. 345€.

Grundsätzlich gibt es keine Erfolgsgarantie, dass die Integration überhaupt klappt. Aber die Chancen stehen wohl nicht so schlecht, nachdem was schon alles läuft. Falls es klappt und es kommt später zu Schwierigkeiten, wird es für André ohne Testhardware wieder schwierig.

Es wäre also sinnvoll und wertschätzend ihn mit entsprechender Hardware auszustatten.

Für mich allein ist das zu viel, da ich selbst auch so ein Gerät haben möchte. ;) Umso mehr Leute umso besser und günstiger für jeden von uns.

Zunächst möchte ich erstmal verstehen, wer überhaupt bereit ist, sich zu beteiligen. Je nach Menge der Leute die mitmachen (und somit Preis pro Person) entscheiden wir dann hier gemeinsam, ob wir es machen. Mindestens 3-5 Leute müssten hier schon zusammenkommen.

Wenn wir das hinkriegen, stimmen wir ab, wie wir das mit der Bestellung und Bezahlung machen. Zu guter letzt muss die Hardware dann auch noch verfügbar sein. Das ist momentan auch nicht der Fall.

Mit André hatte ich dazu Kontakt. Er geht da mit, allerdings wie bereits erwähnt, ohne Erfolgsgarantie.

Also wer ist dabei?

Viele Grüße Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 14 Juli 2022, 18:19:48
Guten Abend zusammen,

kleine Warnung und Information: nach Update auf die heute neu veröffentlichte Version Unifi-Protoct 2.1.1 erscheinen massenhaft folgende Fehler im Protokoll:


2022.07.14 18:17:22.383 2: UnifiProtect: updates: json error: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at ./FHEM/74_UnifiProtect.pm line 1021.
in
2022.07.14 18:17:22.383 2: UnifiProtect: updates: error


Eine Fehlfunktion des Moduls kann ich allerdings ansonsten nicht feststellen.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 14 Juli 2022, 20:52:42
@Ralli Danke für die Info.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 15 Juli 2022, 22:09:39
ich schau es mir an sobald ich dazu komme. bin grad an einer komplett anderen baustelle dran...
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 15 Juli 2022, 22:13:57
auf die schnelle noch: meine version hier läuft mit der 2.1.1 schon länger ohne probleme und meldungen. ist also vermutlich nichts größeres.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Mitch am 25 Juli 2022, 17:49:42
Hallo Zusammen,

habe schon seit Jahren Unifi und bin jetzt auf eine UDM Pro umgestiegen.
Habe dann gleich noch eine Kamera zum testen mitbestellt.

Leider geht die Cam nicht?

Internals:
   CFGFN     
   DEF        192.168.0.1
   FUUID      62deb66e-f33f-5738-ceba-0af2b5a9ffa7afc5
   HOST       192.168.0.1
   NAME       UnifiProtect
   NOTIFYDEV  global
   NR         191243
   NTFY_ORDER 50-UnifiProtect
   STATE      running
   TYPE       UnifiProtect
   eventCount 10
   READINGS:
     2022-07-25 17:27:42   cam0id          62deac4f00daa003870004a9
     2022-07-25 17:27:42   cam0name        Gartentor
     2022-07-25 17:27:42   cam0state       CONNECTED
     2022-07-25 17:41:52   state           running
     2022-07-25 17:41:37   totalCount      1
   helper:
     cookie     TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJlMGRkNTBmMy01MDNkLTQ5YjMtYTU3Zi00Y2YyYjM4YzZkY2YiLCJjc3JmVG9rZW4iOiJlNTcyOGMyNC03M2EwLTRjNDAtYWQ2YS01MzFhNWMyM2Y0YmUiLCJpYXQiOjE2NTg3NjM3MTIsImV4cCI6MTY1ODc2NzMxMiwianRpIjoiNDliNDNjZDktMWNhOC00NmY4LWE4ZTEtN2VkMDBlZjJkZjE1In0.YW0JBKwWwe_hLtGAz0r39JrQGvy25mq4DwafgYkpHmM; path=/; samesite=none; secure; httponly
     csrfToken  e5728c24-73a0-4c40-ad6a-531a5c23f4be
     isUnifiOS  1
     json:
       HASH(0x561b71d4e040)
Attributes:
   filePath   .../www/snapshots
   group      Unifi
   password   crypt:7e5b525822585f1306
   room       Technik
   user       crypt:5e5b525802585f
   verbose    1


Auf der UDM habe ich einen Viewer angelegt, der ist hier im Device eingetragen.
Die Cam wurde ja auch erkannt.

Oben ist ein leeres Fenster, das sollte wohl das Kamerabild sein?
Der Link copy-past geht auch nicht.

siehe Anhang

Hier noch der Log. Habe versucht einen Snapshot zu machen (ohne Erfolg):
2022.07.25 17:43:58 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:58 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:57 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:57 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:57 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:56 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:56 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'ts' => '1658763836.474'
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
          'name' => 'UnifiProtect',
2022.07.25 17:43:56 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:56 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'cam' => '62deac4f00daa003870004a9'
          'width' => '200',
          'ts' => '1658763836.474',
          'name' => 'UnifiProtect',
2022.07.25 17:43:56 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:55 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
          'ts' => '1658763835.469',
2022.07.25 17:43:55 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:55 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
          'ts' => '1658763835.469',
2022.07.25 17:43:55 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:55 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
          'ts' => '1658763835.469',
2022.07.25 17:43:55 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:55 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'ts' => '1658763834.463'
          'width' => '200',
          'cam' => '62deac4f00daa003870004a9',
          'name' => 'UnifiProtect',
2022.07.25 17:43:55 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:55 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'width' => '200',
          'cam' => '62deac4f00daa003870004a9',
          'ts' => '1658763834.463',
2022.07.25 17:43:55 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:55 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'ts' => '1658763834.463',
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
2022.07.25 17:43:55 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:55 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:54 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:54 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:53 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:53 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'ts' => '1658763833.457'
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
          'name' => 'UnifiProtect',
2022.07.25 17:43:53 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:53 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'ts' => '1658763833.457'
          'width' => '200',
          'cam' => '62deac4f00daa003870004a9',
          'name' => 'UnifiProtect',
2022.07.25 17:43:53 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:53 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'ts' => '1658763833.457'
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
          'name' => 'UnifiProtect',
2022.07.25 17:43:53 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:53 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:53 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:53 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:53 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'width' => '200',
          'cam' => '62deac4f00daa003870004a9',
          'ts' => '1658763832.449',
2022.07.25 17:43:53 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:53 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:52 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'ts' => '1658763832.449'
          'width' => '200',
          'cam' => '62deac4f00daa003870004a9',
          'name' => 'UnifiProtect',
2022.07.25 17:43:52 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:52 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:52 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'width' => '200'
          'cam' => '62deac4f00daa003870004a9',
          'ts' => '1658763832.449',
          'name' => 'UnifiProtect',
2022.07.25 17:43:52 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:52 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:52 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'width' => '200'
          'cam' => '62deac4f00daa003870004a9',
          'ts' => '1658763831.445',
          'name' => 'UnifiProtect',
2022.07.25 17:43:52 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:51 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'ts' => '1658763831.445'
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
          'name' => 'UnifiProtect',
2022.07.25 17:43:51 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:51 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
          'ts' => '1658763831.445',
2022.07.25 17:43:51 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:51 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:51 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:50 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:49 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot
2022.07.25 17:43:49 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'ts' => '1658763828.809',
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
2022.07.25 17:43:49 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:49 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'width' => '200',
          'cam' => '62deac4f00daa003870004a9',
          'ts' => '1658763828.809',
2022.07.25 17:43:49 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:49 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:48 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'ts' => '1658763828.809',
          'width' => '200',
          'cam' => '62deac4f00daa003870004a9',
2022.07.25 17:43:48 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:48 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:48 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'width' => '200',
          'cam' => '62deac4f00daa003870004a9',
          'ts' => '1658763827.804',
2022.07.25 17:43:48 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:48 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'ts' => '1658763827.804',
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
2022.07.25 17:43:48 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:48 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:48 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'ts' => '1658763827.804',
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
2022.07.25 17:43:48 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:48 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:48 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'ts' => '1658763826.8',
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
2022.07.25 17:43:48 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:47 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'width' => '200'
          'cam' => '62deac4f00daa003870004a9',
          'ts' => '1658763826.8',
          'name' => 'UnifiProtect',
2022.07.25 17:43:47 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:47 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
          'ts' => '1658763826.8',
2022.07.25 17:43:47 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:47 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:47 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:46 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:46 2: UnifiProtect: http request (https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200) failed: read from https://192.168.0.1:443 timed out
2022.07.25 17:43:46 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'ts' => '1658763825.796',
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
2022.07.25 17:43:46 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:46 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'name' => 'UnifiProtect'
          'ts' => '1658763825.796',
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
2022.07.25 17:43:46 5: UnifiProtect: CGI:$VAR1 = {
2022.07.25 17:43:45 4: UnifiProtect: fetching data from https://192.168.0.1/proxy/protect/api/cameras/62deac4f00daa003870004a9/snapshot?w=200

        };
          'ts' => '1658763825.796'
          'cam' => '62deac4f00daa003870004a9',
          'width' => '200',
          'name' => 'UnifiProtect',
2022.07.25 17:43:45 5: UnifiProtect: CGI:$VAR1 = {
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 25 Juli 2022, 20:10:12
was sagt das js script log im browser?

du musst dich mindestens ein mal vorher mit dem gleichen browser zum unvr verbunden haben und das zertifikat dauerhaft akzeptiert haben.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Mitch am 25 Juli 2022, 21:34:25
hm.js:1          Failed to load resource: the server responded with a status of 404 (Not Found)
fhemweb.js:576 21:33:21.764 FW_queryValue:{ReadingsVal("UnifiProtect","reconnect","")}
fhemweb.js:576 21:33:21.765 FW_queryValue:{AttrVal("UnifiProtect","room","")}
fhemweb.js:576 21:33:21.866 Inform-channel opened (HTTP) with filter UnifiProtect
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=200&ts=1658777602.758:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777603.759:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777604.763:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777605.768:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777606.77:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777607.774:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777609.253:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
192.168.0.202/:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777636.286:1          GET https://192.168.0.202:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777636.286 net::ERR_EMPTY_RESPONSE
Image (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777637.291:1          GET https://192.168.0.202:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777637.291 net::ERR_EMPTY_RESPONSE
Image (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777638.295:1          GET https://192.168.0.202:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777638.295 net::ERR_EMPTY_RESPONSE
Image (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777639.299:1          GET https://192.168.0.202:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777639.299 net::ERR_EMPTY_RESPONSE
Image (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777640.304:1          GET https://192.168.0.202:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777640.304 net::ERR_EMPTY_RESPONSE
Image (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777641.306:1          GET https://192.168.0.202:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777641.306 net::ERR_EMPTY_RESPONSE
Image (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777642.31:1          GET https://192.168.0.202:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777642.31 net::ERR_EMPTY_RESPONSE
Image (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777643.314:1          GET https://192.168.0.202:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777643.314 net::ERR_EMPTY_RESPONSE
Image (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777644.316:1          GET https://192.168.0.202:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777644.316 net::ERR_EMPTY_RESPONSE
Image (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777645.321:1          GET https://192.168.0.202:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777645.321 net::ERR_EMPTY_RESPONSE
Image (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777646.324:1          GET https://192.168.0.202:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777646.324 net::ERR_EMPTY_RESPONSE
Image (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777647.329:1          GET https://192.168.0.202:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777647.329 net::ERR_EMPTY_RESPONSE
Image (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777648.333:1          GET https://192.168.0.202:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777648.333 net::ERR_EMPTY_RESPONSE
Image (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777649.337:1          GET https://192.168.0.202:8084/fhem/protect/?name=UnifiProtect&cam=62deac4f00daa003870004a9&width=16&ts=1658777649.337 net::ERR_EMPTY_RESPONSE
Image (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172
setTimeout (async)
loadImages @ fhem?detail=UnifiProtect:172
(anonymous) @ fhem?detail=UnifiProtect:172



Zitat von: justme1968 am 25 Juli 2022, 20:10:12
du musst dich mindestens ein mal vorher mit dem gleichen browser zum unvr verbunden haben und das zertifikat dauerhaft akzeptiert haben.

Habe ja eine Dream Machine, da verbindet man sich ja nicht direkt mit Protect, sondern mit der "Hauptseite"
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Mitch am 26 Juli 2022, 13:48:42
Es gibt wohl doch eine API: https://github.com/hjdhjd/unifi-protect
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: justme1968 am 26 Juli 2022, 14:08:59
es gibt kein offizielles dokumentiertes api. auch das homebridge unifi protect plugin ist durch reverse engineering und probieren entstanden.

dein fhem scheint aus irgend einem grund die snapshots nicht zu liefern. was passiert wenn du die urls von hand aufrufst? ist an deinem fhem etwas ungewöhnlich konfiguriert? auf welcher plattform list es installiert? geht es wenn du den normalen 8083 port verwendest?
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Mitch am 27 Juli 2022, 14:16:03
URL von hand geht auch nicht, wird nichts gefunden.
Port ist egal.

Mein fhem ist (denke ich) nicht ungewöhnlich  ;)
Es läuft seit Jahren auf Proxmox im Container unter Ubuntu

Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Mitch am 28 Juli 2022, 12:07:05
so, bin einen Schritt weiter:

wenn ich in der FHEMWEB Instanz folgendes habe "attr WEB HTTPS 1", geht es nicht mehr, sprich es wird kein Bild angezeigt. Die Verbindung passt, auch Screenshots gehen.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Mitch am 28 Juli 2022, 16:30:30
so, bin jetzt soweit, dass es geht.
Habe FHEMWEB "umgebaut".

Was mir noch nicht gefällt ist das Kamerabild via define <name> webLink htmlCode {UnifiProtect_2html('<nvr>','<cam>[,<cam2>,..]'[,<width>])}
Das Bild wird nur alle 10 Sekunden aktualisiert, kein direkter Stream.

Das zweite "unschöne" Ding, ich habe ganze viele dieser Meldungen im Log: 2022.07.28 15:56:48 1: gone
Keine Ahnung warum genau.
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Schlimbo am 15 August 2022, 01:12:20
Zitat von: Ralli am 14 Juli 2022, 18:19:48
Guten Abend zusammen,

kleine Warnung und Information: nach Update auf die heute neu veröffentlichte Version Unifi-Protoct 2.1.1 erscheinen massenhaft folgende Fehler im Protokoll:


2022.07.14 18:17:22.383 2: UnifiProtect: updates: json error: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at ./FHEM/74_UnifiProtect.pm line 1021.
in
2022.07.14 18:17:22.383 2: UnifiProtect: updates: error


Eine Fehlfunktion des Moduls kann ich allerdings ansonsten nicht feststellen.

Hallo Andre,

bekomme eine ähnlich Meldung im Log:
2022.08.14 23:01:30.507 5: Websocket msg: OP:2 LEN:199 MASK:0 FIN:1
2022.08.14 23:01:30.507 5: UnifiProtect: websocket: TYPE: 1, FORMAT: 1, DEFLATED: 0, LEN: 158
2022.08.14 23:01:30.507 4: UnifiProtect: websocket: got:
2022.08.14 23:01:30.507 2: UnifiProtect: updates: json error: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at ./FHEM/74_UnifiProtect.pm line 1025.
in
2022.08.14 23:01:30.507 2: UnifiProtect: updates: error
2022.08.14 23:01:30.508 5: UnifiProtect: websocket: TYPE: 2, FORMAT: 1, DEFLATED: 0, LEN: 25
2022.08.14 23:01:30.508 4: UnifiProtect: websocket: got:
2022.08.14 23:01:30.508 2: UnifiProtect: updates: json error: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at ./FHEM/74_UnifiProtect.pm line 1035.
in
2022.08.14 23:01:30.508 2: UnifiProtect: updates: error
2022.08.14 23:01:30.538 5: Websocket msg: OP:2 LEN:744 MASK:0 FIN:1
2022.08.14 23:01:30.538 5: UnifiProtect: websocket: TYPE: 1, FORMAT: 1, DEFLATED: 0, LEN: 158
2022.08.14 23:01:30.538 4: UnifiProtect: websocket: got:
2022.08.14 23:01:30.539 2: UnifiProtect: updates: json error: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at ./FHEM/74_UnifiProtect.pm line 1025.
in
2022.08.14 23:01:30.539 2: UnifiProtect: updates: error
2022.08.14 23:01:30.539 5: UnifiProtect: websocket: TYPE: 2, FORMAT: 1, DEFLATED: 0, LEN: 570
2022.08.14 23:01:30.539 4: UnifiProtect: websocket: got:
2022.08.14 23:01:30.539 2: UnifiProtect: updates: json error: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at ./FHEM/74_UnifiProtect.pm line 1035.
in
2022.08.14 23:01:30.539 2: UnifiProtect: updates: error


und hier noch mal ein Ausschnitt mit aktiviertem Stacktrace:
2022.08.14 23:32:03.482 5: Websocket msg: OP:2 LEN:1987 MASK:0 FIN:1
2022.08.14 23:32:03.482 5: UnifiProtect: websocket: TYPE: 1, FORMAT: 1, DEFLATED: 0, LEN: 1061
2022.08.14 23:32:03.482 1: PERL WARNING: Use of uninitialized value $action in concatenation (.) or string at ./FHEM/74_UnifiProtect.pm line 1024.
2022.08.14 23:32:03.482 1: stacktrace:
2022.08.14 23:32:03.482 1:     main::__ANON__                      called by ./FHEM/74_UnifiProtect.pm (1024)
2022.08.14 23:32:03.482 1:     main::UnifiProtect_Read             called by fhem.pl (3955)
2022.08.14 23:32:03.482 1:     main::CallFn                        called by fhem.pl (782)
2022.08.14 23:32:03.483 4: UnifiProtect: websocket: got:
2022.08.14 23:32:03.483 1: PERL WARNING: Use of uninitialized value $action in concatenation (.) or string at ./FHEM/74_UnifiProtect.pm line 1026.
2022.08.14 23:32:03.483 1: stacktrace:
2022.08.14 23:32:03.483 1:     main::__ANON__                      called by ./FHEM/74_UnifiProtect.pm (1026)
2022.08.14 23:32:03.483 1:     main::UnifiProtect_Read             called by fhem.pl (3955)
2022.08.14 23:32:03.483 1:     main::CallFn                        called by fhem.pl (782)
2022.08.14 23:32:03.483 2: UnifiProtect: updates: json error: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at ./FHEM/74_UnifiProtect.pm line 1025.
in
2022.08.14 23:32:03.483 2: UnifiProtect: updates: error
2022.08.14 23:32:03.483 5: UnifiProtect: websocket: TYPE: 2, FORMAT: 1, DEFLATED: 0, LEN: 910
2022.08.14 23:32:03.483 1: PERL WARNING: Use of uninitialized value $data in concatenation (.) or string at ./FHEM/74_UnifiProtect.pm line 1034.
2022.08.14 23:32:03.483 1: stacktrace:
2022.08.14 23:32:03.483 1:     main::__ANON__                      called by ./FHEM/74_UnifiProtect.pm (1034)
2022.08.14 23:32:03.483 1:     main::UnifiProtect_Read             called by fhem.pl (3955)
2022.08.14 23:32:03.483 1:     main::CallFn                        called by fhem.pl (782)
2022.08.14 23:32:03.483 4: UnifiProtect: websocket: got:
2022.08.14 23:32:03.484 1: PERL WARNING: Use of uninitialized value $data in concatenation (.) or string at ./FHEM/74_UnifiProtect.pm line 1036.
2022.08.14 23:32:03.484 1: stacktrace:
2022.08.14 23:32:03.484 1:     main::__ANON__                      called by ./FHEM/74_UnifiProtect.pm (1036)
2022.08.14 23:32:03.484 1:     main::UnifiProtect_Read             called by fhem.pl (3955)
2022.08.14 23:32:03.484 1:     main::CallFn                        called by fhem.pl (782)
2022.08.14 23:32:03.484 2: UnifiProtect: updates: json error: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at ./FHEM/74_UnifiProtect.pm line 1035.
in
2022.08.14 23:32:03.484 2: UnifiProtect: updates: error
2022.08.14 23:32:03.484 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_UnifiProtect.pm line 1054.
2022.08.14 23:32:03.484 1: stacktrace:
2022.08.14 23:32:03.484 1:     main::__ANON__                      called by ./FHEM/74_UnifiProtect.pm (1054)
2022.08.14 23:32:03.484 1:     main::UnifiProtect_Read             called by fhem.pl (3955)
2022.08.14 23:32:03.484 1:     main::CallFn                        called by fhem.pl (782)
2022.08.14 23:32:03.484 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_UnifiProtect.pm line 1060.
2022.08.14 23:32:03.484 1: stacktrace:
2022.08.14 23:32:03.484 1:     main::__ANON__                      called by ./FHEM/74_UnifiProtect.pm (1054)
2022.08.14 23:32:03.484 1:     main::UnifiProtect_Read             called by fhem.pl (3955)
2022.08.14 23:32:03.485 1:     main::CallFn                        called by fhem.pl (782)
2022.08.14 23:32:03.485 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_UnifiProtect.pm line 1077.
2022.08.14 23:32:03.485 1: stacktrace:
2022.08.14 23:32:03.485 1:     main::__ANON__                      called by ./FHEM/74_UnifiProtect.pm (1054)
2022.08.14 23:32:03.485 1:     main::UnifiProtect_Read             called by fhem.pl (3955)
2022.08.14 23:32:03.485 1:     main::CallFn                        called by fhem.pl (782)
2022.08.14 23:32:03.485 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_UnifiProtect.pm line 1086.
2022.08.14 23:32:03.485 1: stacktrace:
2022.08.14 23:32:03.485 1:     main::__ANON__                      called by ./FHEM/74_UnifiProtect.pm (1054)
2022.08.14 23:32:03.485 1:     main::UnifiProtect_Read             called by fhem.pl (3955)
2022.08.14 23:32:03.485 1:     main::CallFn                        called by fhem.pl (782)
2022.08.14 23:32:03.485 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_UnifiProtect.pm line 1092.
2022.08.14 23:32:03.485 1: stacktrace:
2022.08.14 23:32:03.485 1:     main::__ANON__                      called by ./FHEM/74_UnifiProtect.pm (1054)
2022.08.14 23:32:03.485 1:     main::UnifiProtect_Read             called by fhem.pl (3955)
2022.08.14 23:32:03.485 1:     main::CallFn                        called by fhem.pl (782)


Da scheinbar mit der Variable $action etwas schief geht habe ich mal die Variable $action mit geloggt indem ich nach Zeile 1022
Log3 $name, 5, "$name: Var action: $action"; eingefügt habe.
  } elsif( $hash->{DeviceName} =~ /updates/ ) {
    my $pos = 0;
    my($type, $format, $deflated, $unknown, $len) = unpack('CCCCN', substr($buf,$pos,8));
    Log3 $name, 5, "$name: websocket: TYPE: $type, FORMAT: $format, DEFLATED: $deflated, LEN: $len";
    my $action = substr( $buf, $pos+8, $len );
    Log3 $name, 5, "$name: Var action: $action";
    $action = Compress::Zlib::uncompress($action); 
    Log3 $name, 4, "$name: websocket: got: $action";
    $action = eval { decode_json($action) } if( $format == 1 );
    Log3 $name, 2, "$name: updates: json error: $@ in $action" if( $@ );
    Log3 $name, 2, "$name: updates: error" if( ref($action) ne 'HASH' );

Ergebniss:
2022.08.15 00:40:00.697 5: UnifiProtect: Var action: {"action":"update","newUpdateId":"xxx","modelKey":"camera","id":"xxx","mac":"xxx","token":null}
(die Werte UpdateID, id und mac habe ich ,mit "xxx" ersetzt)

Kann es sein das in der aktuellen Version die Daten nicht mehr komprimiert übertragen werden?

Kommentiere ich die Zeile  1023 und 1033 aus bekomme ich keine Fehlermeldungen im Log mehr   
# $action = Compress::Zlib::uncompress($action); 
# $data = Compress::Zlib::uncompress($data);


Meine Unifi-Protect Version ist 2.1.2

Viele Grüße
Schlimbo
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 19 August 2022, 16:47:18
Hi Leute,

auch wenn er ganz schön teuer geworden ist, der Smart Sensor ist wieder verfügbar:

https://eu.store.ui.com/collections/unifi-protect-accessories/products/smart-sensor

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 22 August 2022, 08:49:12
Da ist der Sensor wieder:

https://eu.store.ui.com/collections/unifi-protect-accessories/products/smart-sensor

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: hoppel118 am 15 September 2022, 08:02:24
Moin in die Runde,

der G4 Doorbell Pro PoE Adapter ist gerade verfügbar:

https://eu.store.ui.com/collections/unifi-protect-accessories/products/g4-doorbell-pro-poe-adapter

Gruß Hoppel
Titel: Antw:test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: OliS. am 15 Februar 2023, 07:48:05
Guten Morgen,

ich versuche gerade, meine Doorbell G4 in FHEM einzubinden. UnifiProtect läuft als IODev.

define Unifi_Protect UnifiProtect 192.168.1.1
attr Unifi_Protect password crypt:xxxxxxxxxxxxxxxxxx
attr Unifi_Protect room Unifi
attr Unifi_Protect user crypt:23297d7d
attr Unifi_Protect verbose 0
#   DEF        192.168.1.1
#   FUUID      63ec5d3f-f33f-08ae-26a0-f81dbe5ab090fba5
#   HOST       192.168.1.1
#   NAME       Unifi_Protect
#   NOTIFYDEV  global
#   NR         1007
#   NTFY_ORDER 50-Unifi_Protect
#   STATE      running
#   TYPE       UnifiProtect
#   eventCount 4
#   READINGS:
#     2023-02-15 05:19:13   cam0id          63ebcdc302243d0387000ae5
#     2023-02-15 05:19:13   cam0name        Haustuer
#     2023-02-15 05:19:13   cam0state       CONNECTED
#     2023-02-15 07:26:56   state           running
#     2023-02-15 05:19:13   totalCount      1
#   helper:
#     cookie     TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MzM3MTNhNS00MWI1LTRhMmItOWQ2Yy1kZjU3M2RiYjg3MjEiLCJjc3JmVG9rZW4iOiI2OTAxZmJlNC0xNjdlLTQ5MTEtODMzNi01NWIzNzFlZWQwNmYiLCJpYXQiOjE2NzY0NDI0MjgsImV4cCI6MTY3NjQ0NjAyOCwianRpIjoiMzY1ZGYyMWUtODJhYS00MDc3LTllZjgtODFiOTEzOWVhODI5In0.rU9RgKBvvKMa9of5wWfLVs3M-jH3uKiaC5ENATAfklM; path=/; samesite=none; secure; httponly
#     csrfToken  6901fbe4-167e-4911-8336-55b371eed06f
#     isUnifiOS  1
#     json:
#       HASH(0x55d78dbe4660)
#
setstate Unifi_Protect running
setstate Unifi_Protect 2023-02-15 05:19:13 cam0id 63ebcdc302243d0387000ae5
setstate Unifi_Protect 2023-02-15 05:19:13 cam0name Haustuer
setstate Unifi_Protect 2023-02-15 05:19:13 cam0state CONNECTED
setstate Unifi_Protect 2023-02-15 07:26:56 state running
setstate Unifi_Protect 2023-02-15 05:19:13 totalCount 1



Ich bekomme auch ein Vorschaubild der Kamera angezeigt.

Allerdings wird das UnifiProtectDevice nicht automatisch angelegt. Ich habe es dann einmal manuell definiert und als IODev mein UnifiProtect zugewiesen.

define Unifi_haustuer UnifiProtectDevice 63ebcdc302243d0387000ae5
attr Unifi_haustuer IODev Unifi_Protect
attr Unifi_haustuer room Unifi
#   CFGFN     
#   DEF        63ebcdc302243d0387000ae5
#   FUUID      63ec78ec-f33f-08ae-3c1b-a883f3061833e09a
#   IODev      Unifi_Protect
#   NAME       Unifi_haustuer
#   NR         3976
#   STATE      ???
#   TYPE       UnifiProtectDevice
#   id         63ebcdc302243d0387000ae5
#   READINGS:
#     2023-02-15 07:26:42   IODev           Unifi_Protect
#   helper:
#     featureFlags:
#
setstate Unifi_haustuer 2023-02-15 07:26:42 IODev Unifi_Protect


Allerdings tut sich nichts im Device. Habe ich irgendetwas vergessen?
Wenn ich die beiden Threads richtig verstanden haben, ist das Gefrickel mit dem sshUser nicht notwendig.

Unifi Protect läuft bei mir auf einer UDM-Pro. FHEM läuft in einer VM auf einer Synology Diskstation.

LG
Oli
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Mitch am 03 Mai 2023, 00:11:14
Kann man mit dem Modul auch den Livestream anzeigen?
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Newbie am 03 Mai 2023, 15:57:36
ZitatKann man mit dem Modul auch den Livestream anzeigen?

Nein, es werden nur Bilder angezeigt die regelmäßig aktualisiert werden.

VG Jens
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Mitch am 03 Mai 2023, 16:11:17
Schade, aber Danke Jens!
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Newbie am 03 Mai 2023, 16:12:31
Hallo Andre,

ich habe hier einen "UP ViewPort" und eine "UP Chime" im Bestand.
Diese werden aber im Modul nicht angezeigt.
Benötigst du noch Informationen um diese einzubinden?

VG Jens
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Jewe am 13 Mai 2023, 10:26:44
Hallo,

habe eine G4 Instand mit der UDM. UnifiProtect habe ich angelegt und die Kamera wird dort erkannt und ich sehe auch ein Bild.
Ein UnifiProtectDevice wird nicht Automatisch angelegt. Wenn ich das manuell mache funktioniert es nicht.

Internals:
   CFGFN     
   DEF        644xxx
   IODev      UnifiProtect
   NAME       Unifi_G4
   NR         2799
   STATE      ???
   TYPE       UnifiProtectDevice
   id         644xxx
   READINGS:
     2023-05-13 10:12:58   IODev           UnifiProtect
   helper:
     featureFlags:
Attributes:
   DbLogExclude .*
   IODev      UnifiProtect
   room       UnifiSwitch

Internals:
   CFGFN     
   DEF        192.168.x.x
   HOST       192.168.x.x
   NAME       UnifiProtect
   NOTIFYDEV  global
   NR         2587
   NTFY_ORDER 50-UnifiProtect
   STATE      disconnected
   TYPE       UnifiProtect
   eventCount 1
   READINGS:
     2023-05-13 10:07:11   cam0id          644xxx
     2023-05-13 10:07:11   cam0name        G4 Instant
     2023-05-13 10:07:11   cam0state       CONNECTED
     2023-05-13 10:07:11   totalCount      1
   helper:
     cookie     TOKEN=eyJhb...; path=/; samesite=none; secure; httponly
     csrfToken  7c...
     isUnifiOS  1
     json:
       HASH(0x5615eca69680)
Attributes:
   DbLogExclude .*
   password   crypt:xxx
   room       UnifiSwitch
   user       crypt:xxx
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 31 Mai 2023, 11:06:55
Mit der Version 2.8.25, die mit der UDM-Pro-Firmware 3.1.9 kommt, werden bei mir keine Snapshots der eingebundenen Kameras mehr beim Aufrufen des UnifiProtect-Devices angezeigt. Weiterhin werden die Readings der Kamera-Devices nicht mehr aktualisiert.

Kann das jemand bestätigen? Hat das jemand gelöst?

Edit: Beim Update wurde die Rolle, die ich dem Fhem-User in Protect zugewiesen habe, auf "Custom" ohne Rechte geändert. Das musste auf "View" geändert werden. Nun klappt's wieder.
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: OliS. am 07 Juni 2023, 20:34:52
Zitat von: Jewe am 13 Mai 2023, 10:26:44Hallo,

habe eine G4 Instand mit der UDM. UnifiProtect habe ich angelegt und die Kamera wird dort erkannt und ich sehe auch ein Bild.
Ein UnifiProtectDevice wird nicht Automatisch angelegt. Wenn ich das manuell mache funktioniert es nicht.

Ich habe genau das gleiche Problem. Allerdings scheint sich um das Modul niemand mehr zu kümmern. Was sehr schade ist, da gerade das Verarbeiten der Motion Events in FHEM sehr nützlich wäre.

LG Oli
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Newbie am 01 November 2023, 12:00:06
Hallo,

mit den letzten Beta-Versionen von Unifi-Protect auf dem CloudKey bekomme ich keine Verbindung mehr.

2023.11.01 11:52:03.972 4: UnifiProtect: fetching data from https://xxx.xxx.xxx.xxx:7443/api/auth
2023.11.01 11:52:04.040 5: UnifiProtect: UnifiProtect_parseHttpAnswer: got: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /api/auth</pre>
</body>
</html>

2023.11.01 11:52:04.041 2: UnifiProtect: failed to get authorization: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /api/auth</pre>
</body>
</html>

vG Jens
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 12 Dezember 2023, 16:50:08
Ist jetzt nach dem Update der UDMP auf 3.2.7 und dem damit verbundenen Neustart auch von Protect 2.10.10 hier auch so.
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Mitch am 12 Dezember 2023, 17:42:26
Bei mir leider auch
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 16 Dezember 2023, 09:42:29
Ich denke, ich konnte das Problem lösen. Seit einem der letzten Updates wird zunächst beim Login kein CSRF-Token übermittelt. Dies wird in in einer Routine ausgewertet und damit festgelegt, ob die Maschine UnifiOS hat oder nicht - und dies ist wiederum die entscheidende Variable für den richtigen URL-Zusammenbau. Ab dem erfolgreichen Login wird allerdings das CSRF-Token übermittelt und ist ab dann auch wichtig.

Anbei die von mir angepasste 74_UnifiProtect.pm, mit der es bei mir wieder klappt.

Achtung: in der Routine isUnifiOS wird nun nicht wirklich darauf geprüft sondern das zwangsweise angenommen - mit Firmware-Versionen vor 3.2.x dürfte diese Version nicht funktionieren, sie ist daher ausschließlich für Geräte, die min. UnifiOS 3.2.x einsetzen, geeignet.
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Newbie am 16 Dezember 2023, 13:09:33
Zitat... , mit der es bei mir wieder klappt.

Bei mir auch, danke. :)

Jens
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Jewe am 16 Dezember 2023, 20:03:03
Hi,
das ist ja cool, das es nun funktioniert. Nun werden die CAM-Devices auch bei mir angelegt. Dann kann ich nun mal schauen wie ich damit weiterkomme.
Hat von Euch auch jemand die Doorbell G4 im Einsatz? Bekomme ich den event wenn jemand Klingel auch in Fhem mit?

Ich versuche auch dass auf einem Tablet (Amazon Fire oder Lenovo M10) beim Klingeln der Doorbell die Protect App sich öffnet und das Tablet quasi als Sprechanlage funktioniert. Leider sind meine
Versuche nicht von Erfolg gekrönt. Auf einem Iphone und Android Telefon fuktioniert das aber.
Kann mir hier jemand Helfen?

Vielen Dank für das nun funktionierende Modul.
Jens
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Mitch am 17 Dezember 2023, 11:43:43
Danke @Ralli, geht auch bei mir wieder!
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Mitch am 17 Dezember 2023, 15:33:21
Nachtrag: das neue Modul spamt mir den Log zu:

ZitatCan't read ./FHEM/_UnifiProtectDevice.pm
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 17 Dezember 2023, 16:05:50
Kann ich nicht nachvollziehen, vor allem nicht mit diesem Namen - hast du vielleicht noch eine Sicherheitskopie mit abgewandeltem Namen im Verzeichnis? Berechtigungen passen?

Edit: Und du hast aus diesem Thread hier auch die Datei 74_UnifiProtectDevice.pm mit den passenden Berechtigungen im FHEM-Verzeichnis?
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Mitch am 18 Dezember 2023, 07:35:11
Ja, stimmt natürlich alles.
Merkwürdig ist, dass es gar keine UnifiProtectDevice.pm Datei gibt?
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 18 Dezember 2023, 07:51:37
Dann musst du bei dem ersten Beitrag dieses Threads anfangen.  ;D
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Mitch am 18 Dezember 2023, 17:02:47
Danke Dir!
Komisch, dass die Datei bei mir nicht vorhanden war?

Mal sehen, ob es jetzt noch zu Fehlern kommt.
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: OliS. am 19 Dezember 2023, 16:01:02
Ralli, danke für das angepasste Modul.
Jetzt wird bei mir zumindest das UnifiProtectDevice angelegt. Nach dem Anlegen kommen auch Readings. Allerdings werden die wenigsten davon tatsächlich aktualisiert. Und soetwas wie ein Ring-Event scheint es an dem Device auch nicht zu geben.
Das Reading lastMotion wird zwar (sehr stark verzögert aktualisiert, motion jedoch seit dem Anlegen noch gar nicht. Habe ich möglicherweise etwas übersehen? Fehlt vieleicht noch eine Einstellung in UnifiProtect?


DEF        64777dc80111aa03e40003ef
  FUUID      657ee046-f33f-08ae-5449-073728b5d7d07014
  IODev      UnifiProtect
  NAME      UnifiProtectDevice_Doorbell
  NR        1020
  STATE      CONNECTED
  TYPE      UnifiProtectDevice
  enabledFeatures led
  eventCount 409
  featureFlags audioCodecs:[aac,opus] noAdjustIrLedLevel noMagicZoom noOpticalZoom noTouchFocus noAccelerometer hasAec hasAutoICROnly noBattery hasBluetooth hasChime noColorLcdScreen noExternalIr noFlash hasHdr hasIcrSensitivity hasInfrared hasLcdScreen hasLdc hasLedIr hasLedStatus hasLineCrossing noLineCrossingCounting noLineIn noLiveviewTracking hasMic hasMotionZones noPackageCamera hasPrivacyMask noRtc noSdCard hasSmartDetect hasSpeaker hasSquareEventThumbnail hasWifi isDoorbell isPtz  motionAlgorithms:[enhanced] smartDetectAudioTypes:[smoke_cmonx] smartDetectTypes:[person,vehicle,package] videoModeMaxFps:[30,30,45,30,20] videoModes:[default,homekit,highFps,sport,slowShutter]
  firmwareVersion 4.68.17
  hardwareRevision 23
  id        64777dc80111aa03e40003ef
  ispSettings.aeMode auto
  mac        68D79ADF986B
  marketName G4 Doorbell
  micVolume  66
  model      UVC G4 Doorbell
  modelKey  camera
  name      Haustuer
  phyRate    43
  smartDetectSettings.objectTypes person,package
  type      UVC G4 Doorbell
  videoMode  default
  wifiConnectionState.channel 11
  wifiConnectionState.frequency 2462
  wifiConnectionState.phyRate 43
  wifiConnectionState.signalQuality 90
  wifiConnectionState.signalStrength -73
  READINGS:
    2023-12-17 12:54:19  IODev          UnifiProtect
    2023-12-17 12:49:27  connectedSince  2023-12-17 11:41:11
    2023-12-17 12:49:27  eventStats.motion.lastDays 0,0,0,0,0,0,0
    2023-12-17 12:49:27  eventStats.motion.recentHours 0,0,0,0,0,0,0,0,0,0,0,0,0
    2023-12-18 00:08:31  eventStats.smart.average 26
    2023-12-19 00:09:03  eventStats.smart.lastDays 19,11,28,31,25,37,32
    2023-12-19 15:09:22  eventStats.smart.today 9
    2023-12-17 12:49:27  hdrMode        true
    2023-12-17 12:49:27  irLedMode      auto
    2023-12-19 08:39:13  isDark         
    2023-12-19 15:09:22  lastMotion      2023-12-19 15:09:21
    2023-12-19 15:29:23  lastSeen        2023-12-19 15:28:21
    2023-12-17 15:51:52  micVolume      66
    2023-12-17 12:49:27  motion          nomotion
    2023-12-17 12:49:27  recordingMode  detections
    2023-12-17 12:49:27  state          CONNECTED
    2023-12-17 12:49:27  statusLed      false
    2023-12-19 15:14:22  upSince        2023-12-17 11:18:41
    2023-12-17 12:49:27  videoMode      default
  helper:
    featureFlags:
      lensModel 
      lensType 
      audio:
      audioCodecs:
        aac
        opus
      focus:
        degrees:
          max       
          min       
          step     
        steps:
          max       
          min       
          step     
      hotplug:
        audio     
        video     
        extender:
          hasFlash 
          hasIR     
          hasRadar 
      motionAlgorithms:
        enhanced
      mountPositions:
      pan:
        degrees:
          max       
          min       
          step     
        steps:
          max       
          min       
          step     
      privacyMaskCapability:
        maxMasks  16
      smartDetectAudioTypes:
        smoke_cmonx
      smartDetectTypes:
        person
        vehicle
        package
      tilt:
        degrees:
          max       
          min       
          step     
        steps:
          max       
          min       
          step     
      videoModeMaxFps:
        30
        30
        45
        30
        20
      videoModes:
        default
        homekit
        highFps
        sport
        slowShutter
      zoom:
        ratio      1
        degrees:
          max       
          min       
          step     
        steps:
          max       
          min       
          step     
Attributes:
  IODev      UnifiProtect
  alias      Haustuer
  includeEventStats 1
  room      UnifiProtect
LG
OliS.
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: BergMuel am 26 Dezember 2023, 10:42:08
Zitat von: Ralli am 16 Dezember 2023, 09:42:29Ich denke, ich konnte das Problem lösen. Seit einem der letzten Updates wird zunächst beim Login kein CSRF-Token übermittelt. Dies wird in in einer Routine ausgewertet und damit festgelegt, ob die Maschine UnifiOS hat oder nicht - und dies ist wiederum die entscheidende Variable für den richtigen URL-Zusammenbau. Ab dem erfolgreichen Login wird allerdings das CSRF-Token übermittelt und ist ab dann auch wichtig.

Anbei die von mir angepasste 74_UnifiProtect.pm, mit der es bei mir wieder klappt.

Achtung: in der Routine isUnifiOS wird nun nicht wirklich darauf geprüft sondern das zwangsweise angenommen - mit Firmware-Versionen vor 3.2.x dürfte diese Version nicht funktionieren, sie ist daher ausschließlich für Geräte, die min. UnifiOS 3.2.x einsetzen, geeignet.

Vielen Dank @Ralli für den Fix vom 16.12.23. Auf den ersten Blick scheint alles wieder zu funktionieren. ABER: nun habe ich festgestellt, dass mein System alle rund 12 Minuten abstürzt und neu startet.
Im Fhem Log finde ich folgenden Eintrag: Undefined subroutine &main::UnifiProtect_ConnectWebsocket
Mein System läuft ansonsten einwandfrei. UnifiProtect ist auf Version 3.2.7 und erfüllt somit auch die Anforderungen für den Fix.

Hat jemand ein ähnliches Phänomen und/oder sogar eine Lösung dazu?
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 26 Dezember 2023, 10:52:56
Kann ich hier nicht nachvollziehen. Vor allem deswegen nicht, weil eine solche Funktion "UnifiProtect_ConnectWebsocket" weder aus der 74_UnifiProtect.pm noch aus der 74_UnifiProtectDevice.pm aufgerufen wird.

BTW: Protect ist bestimmt nicht auf Version 3.2.7 sondern das darunter liegende Unifi-OS.
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: BergMuel am 26 Dezember 2023, 11:06:48
Danke @Ralli für Deine prompte Antwort!
Und ja, natürlich meinte ich mit V3.2.7 das darunter liegend Unifi-OS. Sorry, ich war unpräzise...

In Deiner modifizierten Datei 74_UnifiProtect.pm wird beispielsweise in Zeile 716 das Websocket eingesetzt. Ich kann es zweifelsfrei reproduzieren. Spiele ich wieder die "alte" Datei vom 13.02.22 ein, dann läuft das System stabil, aber die Bilder werden natürlich nicht mehr geliefert. Mit Deiner Version vom 16.12.23 habe ich dann zwar die Bilder, aber zuverlässig auch die Abstürze. Mit dem Austausch der Datei 74_UnifiProtect.pm (und einem entsprechenden reload in Fhem) kann ich das so beeinflussen.

Könnte es sein, dass ich allenfalls noch etwas in Bezug auf websocket nachspielen muss? Kennst Du da die Systemvoraussetzungen?
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 26 Dezember 2023, 11:12:58
Protect ist bei mir die Version 2.10.11 - keine Ahnung, ob das noch eine Rolle spielt in diesem Zusammenhang.

Ja, natürlich werden Websockets verwendet. Aber es gibt mehrere Funktionen, die sich darum kümmern und interessanterweise keine mit dem Namen "UnifiProtect_ConnectWebsocket" sondern immer mit Unterstrich und weiterem Text dahinter.

Gehe mal auf Verbose 5 und poste das Log bis zum Absturz. Dazu bitte ein list vom UnifiProtect-Device.

Nein, nicht dass ich wüsste - zumal ich ja sonst keine Zeilen im Modul angepasst habe außer zweier, wo es um die Erkennung des überlieferten CSRF-Tokens geht. Was für ein System ist unter FHEM? System und FHEM sind aktuell?

Fast das wichtigste vergessen: was hast du für Unifi-Maschine? Nicht dass bei dir richtigerweise isUnifiOS = 0 zurückliefern sollte!

Probiere mal die erneut modifizierte UnifiProtect.pm. Dort habe ich jetzt das Attribut "isUnifiOS" hinzugefügt. Default ist der Wert im Modul auf 1 gesetzt und die UnifiOS-spezifische URL wird für den Login und API-Aufrufe genutzt, wird das neue Attribut auf 0 gesetzt, dann wird die alternative URL genutzt.

Referenz: https://ubntwiki.com/products/software/unifi-controller/api

Darüber hinaus habe ich noch ein paar Zeilen geändert, um Warnungen im FHEM-Log über nicht-initialisierte Variablen zu elimenieren, und ein paar Veränderungen vorgenommen, sodass mehr Events ausgewertet werden können.
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: BergMuel am 26 Dezember 2023, 12:21:36
Protect ist bei mir auch die Version 2.10.11
System läuft auf einem Raspberry PI 4
Das RPI halte ich monatlich atuell.
Bei Fhem bin ich etwas zurückhaltender. Da aktualisierte ich nur einzelne Module, und nur wenn ich etwas vermisse, resp. neues benötige.

Zu den Listings...
Während ich nun Verbose auf 5 gesetzt habe und das Protect und das erste Device detailliert aufgezeichnet und währenddessen die Listings erstellt habe, konnte ich nun #magic während einer halben Stunde keinen Absturz mehr beobachten. Eigentlich schön, aber irgendwie auch doof. Ich kann mir nur vorstellen, dass nun mit dem erneuten beschreiben, reconnecten und so etwas korrekt verankert wurde, was vorher nicht der Fall war.

Um ganz sicher zu gehen, habe ich das RPI noch neu gestartet. Danach leider wieder die alten Probleme.
Ich schiebe die Listings noch nach. Muss zuerst alles erwischen...
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 26 Dezember 2023, 12:26:08
Zitat von: BergMuel am 26 Dezember 2023, 12:21:36Bei Fhem bin ich etwas zurückhaltender. Da aktualisierte ich nur einzelne Module, und nur wenn ich etwas vermisse, resp. neues benötige.

Das ist nicht gut, da ja auch einige Basisdateien und Abhängigkeiten immer wieder erneuert werden.

Daher: mein FHEM ist aktuell und deines sollte es auch sein, damit wir veraltete Software-Stände oder gar fehlende Dateien als Ursache ausschließen können.
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: BergMuel am 26 Dezember 2023, 13:21:38
Du hast wohl recht. Bevor wir uns hier weiter beüben, sollte ich sauberen Tisch machen.
Ich werde das ganze mal auf den neusten Stand bringen...

Edit / 29.12.23:
Du hattest Recht @Ralli...! Ein Update des kompletten Fhem hat das Problem gelöst. Es gab zwar einige kleine Nebeneffekte mit geänderten State Werten und Readings. Aber am Ende läuft nun alles wieder wie gewünscht und meine FHEM Installation ist sogar mal wieder auf dem neusten Stand. Das soll mir (und hoffentlich auch vielen anderen) eine Lehre sein. Haltet Eure Systeme auf dem neusten Stand!
Vielen Dank an @Ralli für die Unterstützung und Deine tolle Arbeit! Das Problem lag klar auf meiner Seite, wofür ich mich entschuldige!
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 27 Dezember 2023, 14:31:48
Zitat von: OliS. am 19 Dezember 2023, 16:01:02Allerdings werden die wenigsten davon tatsächlich aktualisiert. Und soetwas wie ein Ring-Event scheint es an dem Device auch nicht zu geben.
Das Reading lastMotion wird zwar (sehr stark verzögert aktualisiert, motion jedoch seit dem Anlegen noch gar nicht. Habe ich möglicherweise etwas übersehen? Fehlt vieleicht noch eine Einstellung in UnifiProtect?

In dem Beitrag https://forum.fhem.de/index.php?msg=1297819 habe ich die zwei aktualisierten Dateien eingefügt, die auch das Event-Handling verbessern und zu deutlich mehr Events führen und vor allem die Aktualisierung der Readings wesentlich schneller vornehmen sollten.

Ob es einen Ring-Event gibt, kann ich dir nicht sagen, habe keine Doorbell. Allerdings kannst du mit verbose 4 oder 5 jetzt haufenweise Daten sammeln -> verbose 5 einschalten, Klingeln, wieder auf verbose 3 zurück. Vielleicht kann man was herausziehen.
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: 87insane am 04 Februar 2024, 12:55:13
Hallo zusammen, nachdem ich nun x Seiten durch habe und das Modul mit meiner UDMSE auch am rennen habe, bin ich aktuell auch mit der Doorbell beschäftigt.
Bei mir ist es eine G4 Pro. Ich sehe leider auch mit verbose 5 keine Infos, die hier dienlich sein könnten. Es kommt bei betätigen der Taste an der Schelle nichts in FHEM an.
Kann hier ggf noch etwas anderes helfen? Würde meine Klingel gerne wieder in der Automatisierung haben.

define UnifiProtectDevice_65bf54a501ff2303e4000409 UnifiProtectDevice 65xxxxxxxxxxx
attr UnifiProtectDevice_65bf54a501ff2303e4000409 IODev protect_server
attr UnifiProtectDevice_65bf54a501ff2303e4000409 alias Klingel
attr UnifiProtectDevice_65bf54a501ff2303e4000409 event-on-change-reading .*
attr UnifiProtectDevice_65bf54a501ff2303e4000409 room UnifiSwitch
#   CFGFN     
#   DEF        65bxxxxxxxxxxxxxxxx
#   FUUID      65bf78ab-f33f-33ef-fade-701cbf538394d8b8
#   IODev      protect_server
#   NAME       UnifiProtectDevice_65xxxxxxxxxxxxxxx
#   NR         375
#   STATE      CONNECTED
#   TYPE       UnifiProtectDevice
#   enabledFeatures led
#   eventCount 10
#   featureFlags audioCodecs:[aac,opus] noAdjustIrLedLevel noMagicZoom noOpticalZoom noTouchFocus noAccelerometer hasAec hasAutoICROnly noBattery hasBluetooth hasChime hasColorLcdScreen noExternalIr noFlash hasHdr hasIcrSensitivity hasInfrared hasLcdScreen hasLdc hasLedIr hasLedStatus hasLineCrossing noLineCrossingCounting noLineIn noLiveviewTracking hasMic hasMotionZones hasPackageCamera hasPrivacyMask noRtc noSdCard hasSmartDetect hasSpeaker hasSquareEventThumbnail hasVerticalFlip hasWifi isDoorbell isPtz   motionAlgorithms:[enhanced] smartDetectAudioTypes:[smoke_cmonx,alrmSmoke,alrmCmonx] smartDetectTypes:[person,vehicle,animal,package] videoModeMaxFps:[30,24,30,20] videoModes:[default,homekit,sport,slowShutter]
#   firmwareVersion 4.69.55
#   hardwareRevision 24
#   id         65bf54a501ff2303e4000409
#   ispSettings.aeMode auto
#   mac        E438830B4F82
#   marketName G4 Doorbell Pro
#   micVolume  100
#   model      ring
#   modelKey   camera
#   name       Klingel
#   phyRate    135
#   smartDetectSettings.objectTypes person,vehicle,package,animal
#   type       ring
#   videoMode  default
#   wifiConnectionState.channel 36
#   wifiConnectionState.frequency 5180
#   wifiConnectionState.phyRate 135
#   wifiConnectionState.signalQuality 71
#   wifiConnectionState.signalStrength -79
#   READINGS:
#     2024-02-04 12:44:43   IODev           protect_server
#     2024-02-04 12:44:44   connectedSince  2024-02-04 10:35:50
#     2024-02-04 12:44:44   eventStats.motion.average
#     2024-02-04 12:44:44   eventStats.motion.lastDays
#     2024-02-04 12:44:44   eventStats.motion.recentHours 6
#     2024-02-04 12:44:44   eventStats.motion.today 35
#     2024-02-04 12:44:44   eventStats.smart.average
#     2024-02-04 12:44:44   eventStats.smart.lastDays
#     2024-02-04 12:44:44   eventStats.smart.today
#     2024-02-04 12:44:44   hdrMode         true
#     2024-02-04 12:44:44   irLedMode       auto
#     2024-02-04 12:44:44   isDark         
#     2024-02-04 12:44:44   isRecording    
#     2024-02-04 12:44:44   isSmartDetected
#     2024-02-04 12:44:44   lastMotion      2024-02-04 12:43:53
#     2024-02-04 12:52:55   lastSeen        2024-02-04 12:52:54
#     2024-02-04 12:44:44   micVolume       100
#     2024-02-04 12:44:44   motion          nomotion
#     2024-02-04 12:44:44   recordingMode   never
#     2024-02-04 12:49:52   smartDetectTypes
#     2024-02-04 12:44:44   state           CONNECTED
#     2024-02-04 12:44:44   statusLed       true
#     2024-02-04 12:52:55   upSince         2024-02-04 10:34:57
#     2024-02-04 12:44:44   videoMode       default
#   helper:
#     featureFlags:
#       lensModel 
#       lensType  
#       audio:
#       audioCodecs:
#         aac
#         opus
#       audioStyle:
#       focus:
#         degrees:
#           max       
#           min       
#           step      
#         steps:
#           max       
#           min       
#           step      
#       hotplug:
#         audio     
#         video     
#         extender:
#           hasFlash  
#           hasIR     
#           hasRadar  
#       motionAlgorithms:
#         enhanced
#       mountPositions:
#       pan:
#         degrees:
#           max       
#           min       
#           step      
#         steps:
#           max       
#           min       
#           step      
#       privacyMaskCapability:
#         maxMasks   16
#       smartDetectAudioTypes:
#         smoke_cmonx
#         alrmSmoke
#         alrmCmonx
#       smartDetectTypes:
#         person
#         vehicle
#         animal
#         package
#       tilt:
#         degrees:
#           max       
#           min       
#           step      
#         steps:
#           max       
#           min       
#           step      
#       videoModeMaxFps:
#         30
#         24
#         30
#         20
#       videoModes:
#         default
#         homekit
#         sport
#         slowShutter
#       zoom:
#         ratio      1
#         degrees:
#           max       
#           min       
#           step      
#         steps:
#           max       
#           min       
#           step      
#
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 CONNECTED
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:43 IODev protect_server
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 connectedSince 2024-02-04 10:35:50
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 eventStats.motion.average
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 eventStats.motion.lastDays
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 eventStats.motion.recentHours 6
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 eventStats.motion.today 35
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 eventStats.smart.average
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 eventStats.smart.lastDays
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 eventStats.smart.today
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 hdrMode true
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 irLedMode auto
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 isDark
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 isRecording
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 isSmartDetected
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 lastMotion 2024-02-04 12:43:53
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:52:55 lastSeen 2024-02-04 12:52:54
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 micVolume 100
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 motion nomotion
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 recordingMode never
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:49:52 smartDetectTypes
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 state CONNECTED
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 statusLed true
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:52:55 upSince 2024-02-04 10:34:57
setstate UnifiProtectDevice_65bf54a501ff2303e4000409 2024-02-04 12:44:44 videoMode default

EDIT: Da fällt mir gleich noch auf -> Die G4 Pro hat eine zweite Kamera. Die nenen das Packet Kamera. Diese kann ich mir in der APP ansehen, in FHEM leider nicht.

featureFlags
$VAR1 = {
          'hasSdCard' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
          'hotplug' => {
                         'extender' => {
                                         'hasFlash' => undef,
                                         'hasIR' => undef,
                                         'hasRadar' => undef,
                                         'isAttached' => $VAR1->{'hasSdCard'}
                                       },
                         'standaloneAdoption' => $VAR1->{'hasSdCard'},
                         'video' => undef,
                         'audio' => undef
                       },
          'hasAccelerometer' => $VAR1->{'hasSdCard'},
          'hasSquareEventThumbnail' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),
          'hasBluetooth' => $VAR1->{'hasSquareEventThumbnail'},
          'videoModes' => [
                            'default',
                            'homekit',
                            'sport',
                            'slowShutter'
                          ],
          'hasRtc' => $VAR1->{'hasSdCard'},
          'smartDetectAudioTypes' => [
                                       'smoke_cmonx',
                                       'alrmSmoke',
                                       'alrmCmonx'
                                     ],
          'hasLiveviewTracking' => $VAR1->{'hasSdCard'},
          'pan' => {
                     'steps' => {
                                  'min' => undef,
                                  'step' => undef,
                                  'max' => undef
                                },
                     'degrees' => {
                                    'max' => undef,
                                    'step' => undef,
                                    'min' => undef
                                  }
                   },
          'videoModeMaxFps' => [
                                 30,
                                 24,
                                 30,
                                 20
                               ],
          'audioCodecs' => [
                             'aac',
                             'opus'
                           ],
          'lensModel' => undef,
          'tilt' => {
                      'degrees' => {
                                     'step' => undef,
                                     'min' => undef,
                                     'max' => undef
                                   },
                      'steps' => {
                                   'max' => undef,
                                   'min' => undef,
                                   'step' => undef
                                 }
                    },
          'hasBattery' => $VAR1->{'hasSdCard'},
          'canOpticalZoom' => $VAR1->{'hasSdCard'},
          'privacyMaskCapability' => {
                                       'maxMasks' => 16,
                                       'rectangleOnly' => $VAR1->{'hasSdCard'}
                                     },
          'canMagicZoom' => $VAR1->{'hasSdCard'},
          'hasAutoICROnly' => $VAR1->{'hasSquareEventThumbnail'},
          'hasLineIn' => $VAR1->{'hasSdCard'},
          'hasVerticalFlip' => $VAR1->{'hasSquareEventThumbnail'},
          'hasLineCrossingCounting' => $VAR1->{'hasSdCard'},
          'motionAlgorithms' => [
                                  'enhanced'
                                ],
          'hasIcrSensitivity' => $VAR1->{'hasSquareEventThumbnail'},
          'hasMotionZones' => $VAR1->{'hasSquareEventThumbnail'},
          'hasSpeaker' => $VAR1->{'hasSquareEventThumbnail'},
          'hasLedStatus' => $VAR1->{'hasSquareEventThumbnail'},
          'lensType' => undef,
          'hasLedIr' => $VAR1->{'hasSquareEventThumbnail'},
          'audioStyle' => [],
          'smartDetectTypes' => [
                                  'person',
                                  'vehicle',
                                  'animal',
                                  'package'
                                ],
          'hasMic' => $VAR1->{'hasSquareEventThumbnail'},
          'canAdjustIrLedLevel' => $VAR1->{'hasSdCard'},
          'hasInfrared' => $VAR1->{'hasSquareEventThumbnail'},
          'hasLineCrossing' => $VAR1->{'hasSquareEventThumbnail'},
          'isDoorbell' => $VAR1->{'hasSquareEventThumbnail'},
          'canTouchFocus' => $VAR1->{'hasSdCard'},
          'focus' => {
                       'steps' => {
                                    'min' => undef,
                                    'step' => undef,
                                    'max' => undef
                                  },
                       'degrees' => {
                                      'step' => undef,
                                      'min' => undef,
                                      'max' => undef
                                    }
                     },
          'zoom' => {
                      'degrees' => {
                                     'min' => undef,
                                     'step' => undef,
                                     'max' => undef
                                   },
                      'steps' => {
                                   'max' => undef,
                                   'step' => undef,
                                   'min' => undef
                                 },
                      'ratio' => 1
                    },
          'hasAec' => $VAR1->{'hasSquareEventThumbnail'},
          'hasChime' => $VAR1->{'hasSquareEventThumbnail'},
          'hasPackageCamera' => $VAR1->{'hasSquareEventThumbnail'},
          'hasSmartDetect' => $VAR1->{'hasSquareEventThumbnail'},
          'hasHdr' => $VAR1->{'hasSquareEventThumbnail'},
          'hasPrivacyMask' => $VAR1->{'hasSquareEventThumbnail'},
          'mountPositions' => [],
          'hasExternalIr' => $VAR1->{'hasSdCard'},
          'hasFlash' => $VAR1->{'hasSdCard'},
          'hasLdc' => $VAR1->{'hasSquareEventThumbnail'},
          'isPtz' => $VAR1->{'hasSdCard'},
          'hasColorLcdScreen' => $VAR1->{'hasSquareEventThumbnail'},
          'hasLcdScreen' => $VAR1->{'hasSquareEventThumbnail'},
          'audio' => [],
          'hasWifi' => $VAR1->{'hasSquareEventThumbnail'}
        };

Gruß,
87Insane
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 04 Februar 2024, 14:51:22
Zitat von: 87insane am 04 Februar 2024, 12:55:13[...]

Bei mir ist es eine G4 Pro. Ich sehe leider auch mit verbose 5 keine Infos, die hier dienlich sein könnten. Es kommt bei betätigen der Taste an der Schelle nichts in FHEM an.

[...]

Nichts im Log und auch nichts im Eventmonitor?
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: 87insane am 05 Februar 2024, 11:50:26
Hey Ralli,

ich hatte das Eventlog mit Logfile aktiv. Habe es aber eben auch nochmal nachkontrolliert und es ist nichts zu finden.
Spannend finde ich, dass es wohl via Homekit funktionieren soll. Dafür aber extra Homekit bereit stellen, wollte ich eigentlich nicht.

Ich weiß nicht wie komplex das Thema ist aber es wäre auch nice to have, das Farbdisplay ansprechen zu können. Dort kann man kurze Text Nachrichten hinterlegen.

Gibt es ggf. noch einen anderen Weg hier zu helfen um die benötigten Infos zu bekommen? Ich bin gerne bereit zu unterstützen, immerhin möchte ich ja auch das Modul nutzen.

PS: Wird das Modul nicht mehr offiziell ins SVN geschoben? Ich musste echt lange suchen um eine lauffähige Version zu finden. Und Doku dazu ist noch weniger vorhanden ....
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: Ralli am 05 Februar 2024, 13:56:54
Da werde ich dir leider nicht helfen können. Ich bin nicht der Autor des Moduls sondern nur ein Anwender. Ich habe es für meine Installation wieder lauffähig gepatched, noch kleine Verbesserungen eingebaut und das der Allgemeinheit wieder zur Verfügung gestellt. Meines Erachtens ist das Modul verwaist, deswegen auch keine Änderungen mehr im SVN.

Wenn keine Daten im Event monitor kommen und auch bei Verbose 5 keine im Log zu finden sind, so kann ich nirgends ansetzen.

Mein Tipp: es gibt für ioBroker ein Modul für Protect, ggf. ist dort die G4 Doorbell besser abgebildet. Dann könntest du dort den Code analysieren und bei dir mit Try and Error für FHEM im Modul nachbauen.
Titel: Aw: test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm
Beitrag von: 87insane am 09 Februar 2024, 22:46:41
Ich bin leider kein Programmierer... Daher habe ich nun einen Shelly UNI an die Klingel gebaut. Hab nun meinen Knopf :) - Schade das, dass Modul nicht weiter entwickelt wird.