test: modul 74_UnifiProtect.pm & 74_UnifiProtectDevice.pm

Begonnen von justme1968, 06 Februar 2022, 11:40:14

Vorheriges Thema - Nächstes Thema

Ralli

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.
Gruß,
Ralli

Proxmox 8.1 Cluster mit HP ED800G2i7, Intel NUC11TNHi7+NUC7i5BNH, virtualisiertes fhem 6.3 dev, virtualisierte RaspberryMatic (3.75.6.20240316) mit HB-RF-ETH 1.3.0 / RPI-RF-MOD, HM-LAN-GW (1.1.5) und HMW-GW, FRITZBOX 7490 (07.57), FBDECT, Siri und Alexa

hoppel118

Server: Openmediavault, XEON E3-1240L-v5, Supermicro X11SSH-CTF, 64GB ECC RAM, SSD, RAID-Z2
Homebridge | Alexa | Yowsup
Homematic | HomeConnect | MQTT | Philips Hue | Sonos | Unifi Network & Protect | vbus | Xiaomi

justme1968

ich schau es mir an sobald ich dazu komme. bin grad an einer komplett anderen baustelle dran...
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

justme1968

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.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Mitch

#79
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 = {
FHEM im Proxmox Container

justme1968

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.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Mitch

#81
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"
FHEM im Proxmox Container

Mitch

FHEM im Proxmox Container

justme1968

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?
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Mitch

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

FHEM im Proxmox Container

Mitch

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.
FHEM im Proxmox Container

Mitch

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.
FHEM im Proxmox Container

Schlimbo

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

hoppel118

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
Server: Openmediavault, XEON E3-1240L-v5, Supermicro X11SSH-CTF, 64GB ECC RAM, SSD, RAID-Z2
Homebridge | Alexa | Yowsup
Homematic | HomeConnect | MQTT | Philips Hue | Sonos | Unifi Network & Protect | vbus | Xiaomi

hoppel118

Server: Openmediavault, XEON E3-1240L-v5, Supermicro X11SSH-CTF, 64GB ECC RAM, SSD, RAID-Z2
Homebridge | Alexa | Yowsup
Homematic | HomeConnect | MQTT | Philips Hue | Sonos | Unifi Network & Protect | vbus | Xiaomi