test: modul 74_UnifiProtect.pm

Begonnen von justme1968, 24 Februar 2020, 21:04:58

Vorheriges Thema - Nächstes Thema

Masterfunk

Ich hatte die gleichen Probleme wie andasquared.

Mit der aktuellen Version läuft erstmal alles problemlos.

andasquared

Ich habe jetzt eine Zeit lang damit gespielt.
Die Site mit beiden Devices UnifiProtect und WebLink habe ich offen stehen lassen - hat jetzt Stunden lang ohne Probleme Livebilder angezeigt.

Schaut soweit wirklich gut aus :)

Masterfunk

Zitat von: andasquared am 05 März 2021, 11:11:56
Ich habe jetzt eine Zeit lang damit gespielt.
Die Site mit beiden Devices UnifiProtect und WebLink habe ich offen stehen lassen - hat jetzt Stunden lang ohne Probleme Livebilder angezeigt.

Schaut soweit wirklich gut aus :)

Kann ich nur bestätigen.

andasquared

nochmal eine kurze Rückmeldung:
alles läuft weiterhin super - Livebild funktioniert im Device und in den WebLink Devices - und es gibt keine Systemabstürze.
perfekt!

wegen dem sshUser und den Zugriffen auf die Motion logs - hast du Lust dir da weiter was anzuschauen?
ich kann dir Logfiles zukommen lassen.

ich denke hier zb u.a. daran, das Licht einschalten zu lassen, wenn eine Bewegung in der Kamera erkannt wird, oder eben per Telegram einen Snapshot schicken.

so schaut bei mir zb. das Log aus, wenn bei einer Kamera ein Event auftaucht:


# tail -n 0 -F /srv/unifi-protect/logs/events.cameras.log
2021-03-08T16:14:52.730Z - info: Purging events for G3 Micro [AABBCC112233 @ xxx.xxx.xxx.123]
2021-03-08T16:14:52.781Z - info: Purging events for G4 Pro [AABBCC112233 @ xxx.xxx.xxx.103]
2021-03-08T16:14:52.835Z - info: Purging events for G4 Bullet [AABBCC112233 @ xxx.xxx.xxx.135]
2021-03-08T16:14:52.886Z - info: Purging events for G3 Flex [AABBCC112233 @ xxx.xxx.xxx.124]
2021-03-08T16:15:42.756Z - verbose: motion.event.start G3 Flex [AABBCC112233 @ xxx.xxx.xxx.124]
{ motionAlgorithm: 'enhanced', start: 1615220131517 }
2021-03-08T16:15:46.028Z - verbose: motion.event.stop G3 Flex [AABBCC112233 @ xxx.xxx.xxx.124]
{ motionAlgorithm: 'enhanced',
  end: 1615220152673,
  data:
   { clockBestMonotonic: 13326726,
     clockBestWall: 1615220142517,
     clockMonotonic: 13329882,
     clockStream: 13321033,
     clockStreamRate: 1000,
     clockWall: 1615220145673,
     edgeType: 'stop',
     eventId: 4,
     eventType: 'motion',
     motionHeatmap: 'heatmap_00000002.png',
     motionSnapshot: 'motionsnap_00000002.jpg' } }
2021-03-08T16:15:46.531Z - info: event saved
{ type: 'motion',
  start: 1615220131517,
  end: 1615220152673,
  thumbnailId: '60464db201dc6303870004d9',
  heatmapId: '60464db202016303870004da',
  score: 38,
  smartDetectTypes: [],
  smartDetectEvents: [],
  cameraId: 'CAMIDxxxxxxxxxxxxxxxxx',
  partitionId: null,
  id: '60464dae02f56303870004d8' }
2021-03-08T16:15:52.730Z - info: Purging events for G3 Micro [AABBCC112233 @ xxx.xxx.xxx.123]
2021-03-08T16:15:52.781Z - info: Purging events for G4 Pro [AABBCC112233 @ xxx.xxx.xxx.103]
2021-03-08T16:15:52.835Z - info: Purging events for G4 Bullet [AABBCC112233 @ xxx.xxx.xxx.135]
2021-03-08T16:15:52.886Z - info: Purging events for G3 Flex [AABBCC112233 @ xxx.xxx.xxx.124]


lg

justme1968

wie oben geschrieben: ssh ist glaube ich nicht der richtige weg für protect. es gibt ein besseres event api. sind bei dir die erkennung wirklich gut genug um das ganze in fhem zu integrieren?

ich schaue mir das event api gerade an, ich glaube ich habe aber noch ein bessere idee...
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

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

andasquared

cool, danke dass du dir das anschaust ;)

falls das interessant ist und dir helfen könnte:
https://community.ui.com/questions/Airvision-API-or-External-Control/19503f64-ec22-448d-9d9b-8b4ed155245a

ich nutze dieses script aktuell bei einer anderen Fhem Installation.
damit starte ich über ein Script die Aufnahme einer Kamera (allerdings noch über UniFi Video), wenn ein Event im Fhem passiert, unabhängig davon ob ein Motion Event von der Kamera erkannt wird.

vielleicht ist die Struktur API eh noch ähnlich aufgebaut.

lg

justme1968

hiermit: https://forum.fhem.de/index.php/topic,119483.msg1139212.html funktioniert die integration der protect kameras als bewegungsmelder in fhem ziemlich gut.

ist zwar erst mal blöd wenn man homebridge überhaupt nicht einsetzt, aber für alle anderen sollte es problemlos gehen.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

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

Sascha_F

Hi zusammen,

die Verbindung zu meine UDM-Pro steht jetzt und die Devices für UDM-interner Switch + USW-24-PoE wurden automatisch angelegt.
UniFi-Protect hat die (aktuell) einzige Cam gefunden und die Readings angelegt:

cam0id
cam0name
cam0state
state
totalCount

attr sshUser ist gesetzt und state steht auf "watching".

Meine Annahme war, dass das Reading "cam0motion" mit dem ersten Auslösen einer Bewegung angelegt wird - hier passiert allerdings nichts.

Ich hatte aus den vorherigen Posts schon entnommen, dass die ssh-Variante für Protect vermutlich nicht der richtige Weg (oder nicht der beste Weg?) darstellt - probieren wollte ich es trotzdem mal :)
Habe ich noch etwas übersehen oder ist das ggf. schon wieder überholt (Protect ist bei mir v1.17.4).

Bei Auswahl des Devices startet das Log fleißig jede Sekunde mit

JJJJ.MM.DD HH:MM:SS WEB_<IP des Client, welcher das Device in FHEM in der Ansicht hat>_<Port (nehme ich mal an)>
JJJJ.MM.DD HH:MM:SS HASH(nxnnnnnnn)

Ich hoffe, ihr haltet mich nicht für komplett bescheuert, aber an welche Stelle oder wie knipse ich das denn fürs Log aus?


Und noch eine Frage zu Hinweis/Link zu Homebridge: Ich habe das ganze immer als "Apple-Thema" in Kopf bei mir abgespeichert gehabt. Nur für die UniFi-Motion wäre das ggf. etwas wie "mit Kanonen auf Spatzen". Daher nur die Frage, ob das aktuell erst einmal nur als (vom Disconnect mal abgesehen) funktionierender Workaround anzusehen ist oder ob das eher die zukünftige Marschrichtung sein wird (bei letzterem komme ich dann ja ggf. nicht drum herum).

Danke euch ++ viele Grüße ++ vor allem schöne Ostertage!
Sascha

justme1968

ssh ist für protect nicht relevant. nur für den alten nvr.

ich weiss noch nicht ob ich die event variante für protect einbaue. da ich es selber nicht nutze und die homebridge variante eigentlich gut funktioniert. die installation ist auch nicht besonders aufwändig.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

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

math78

Hallo, ich habe heute auch das Modul probiert - leider kommt bei mir folgende Fehlermeldung und FHEM stürzt nach einer kurzen Zeit ab:
2021.10.23 17:20:01 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_UnifiProtect.pm line 297.
2021.10.23 17:20:01 1: WEB_10.32.10.16_62325
2021.10.23 17:20:01 1: HASH(0x562dfb9cf818)
2021.10.23 17:20:01 1: WEB_10.32.10.16_62333
2021.10.23 17:20:01 1: HASH(0x562dfbeb6490)
2021.10.23 17:20:01 1: WEB_10.32.10.16_62332
2021.10.23 17:20:01 1: HASH(0x562dfb599ef0)
2021.10.23 17:20:02 1: WEB_10.32.10.16_62335
2021.10.23 17:20:02 1: HASH(0x562dfb9cb8d8)
2021.10.23 17:20:02 1: WEB_10.32.10.16_62336
2021.10.23 17:20:02 1: HASH(0x562dfb7782a0)
2021.10.23 17:20:02 1: WEB_10.32.10.16_62337
2021.10.23 17:20:02 1: HASH(0x562df8521248)
2021.10.23 17:20:02 1: WEB_10.32.10.16_62315
2021.10.23 17:20:02 1: HASH(0x562dfb7de658)
2021.10.23 17:20:02 1: WEB_10.32.10.16_62334
2021.10.23 17:20:02 1: HASH(0x562dfb69f410)
2021.10.23 17:20:03 1: WEB_10.32.10.16_62338
2021.10.23 17:20:03 1: HASH(0x562dfb724b58)
2021.10.23 17:20:03 1: WEB_10.32.10.16_62339
2021.10.23 17:20:03 1: HASH(0x562dfb44b1b0)
2021.10.23 17:20:03 1: WEB_10.32.10.16_62340
2021.10.23 17:20:03 1: HASH(0x562dfb73c968)


Das List lautet folgendermaßen:

Internals:
   DEF        10.32.1.11
   FUUID      6174266e-f33f-3b81-a8bd-16e10f89e45cbfb8
   HOST       10.32.1.11
   NAME       Protect
   NOTIFYDEV  global
   NR         677
   NTFY_ORDER 50-Protect
   STATE      initialized
   TYPE       UnifiProtect
   READINGS:
     2021-10-23 17:19:55   cam0id          6055da95020f1a03e70003ef
     2021-10-23 17:19:55   cam0name        Terrasse1
     2021-10-23 17:19:55   cam0state       CONNECTED
     2021-10-23 17:19:55   cam1id          6172a93b02831d03e7000c0e
     2021-10-23 17:19:55   cam1name        Gartenzaun
     2021-10-23 17:19:55   cam1state       CONNECTED
     2021-10-23 17:19:55   cam2id          6172c35b039e1d03e7000cd8
     2021-10-23 17:19:55   cam2name        Grill
     2021-10-23 17:19:55   cam2state       CONNECTED
     2021-10-23 17:19:55   cam3id          6172c44b00bd1d03e7000cdd
     2021-10-23 17:19:55   cam3name        Terrasse
     2021-10-23 17:19:55   cam3state       CONNECTED
     2021-10-23 17:19:12   state           initialized
     2021-10-23 17:19:55   totalCount      4
   helper:
     cookie     TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjc3JmVG9rZW4iOiI1ZTdkY2VmYi1lMDIxLTQ5ZTUtODMyNS03ZTQ3ZmM4Y2Y2OTgiLCJ1c2VySWQiOiJjZDViMGU3My1iOWYyLTQ4ODMtYjAyZi01MjRiMDE2MDk2NDIiLCJpYXQiOjE2MzUwMDIzOTUsImV4cCI6MTYzNTAwNTk5NX0.4qq9keCzgrVDwjAJv1thg6n1m3jhdEIWl19nTVoIl4g; path=/; samesite=strict; secure; httponly
     csrfToken  5e7dcefb-e021-49e5-8325-7e47fc8cf698
     isUnifiOS  1
     json:
       HASH(0x562dfb9631f0)
       HASH(0x562dfb91dc90)
       HASH(0x562dfc4328d0)
       HASH(0x562dfbeeccc8)
Attributes:
   password   crypt:73591158044c0354070750
   room       Zentrale
   user       crypt:5750075e50


Kann mir jemand weiterhelfen?

Danke
Matthias

justme1968

ich brauche ein log vom absturz. abmessen mit verbose 5 und stacktrace.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

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

math78

#71
Hi, ich habe sehr viel Code in der Log Datei, anbei ein Ausschnitt:

2021.10.23 19:06:04 5: {
  'httpheader' => 'HTTP/1.1 200 OK
vary: Origin
X-DNS-Prefetch-Control: off
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Download-Options: noopen
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Accept-Ranges: bytes
access-control-allow-credentials: true
content-type: image/jpeg
content-length: 4474
etag: W/"117a-KW0QLStjaplQRDqp3bhhB1tA0eM"
date: Sat, 23 Oct 2021 17:06:02 GMT
connection: close
Set-Cookie: TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjc3JmVG9rZW4iOiI4MDI5YjY2MS05NTJlLTRlM2YtODU3MC1kYmM2OWUwMzhkNjQiLCJ1c2VySWQiOiJjZDViMGU3My1iOWYyLTQ4ODMtYjAyZi01MjRiMDE2MDk2NDIiLCJwYXNzd29yZFJldmlzaW9uIjoxNjM1MDAyMjI3LCJpYXQiOjE2MzUwMDg3NjIsImV4cCI6MTYzNTAxMjM2Mn0.2Tr8ozUj79OfVfKEHclqxpwy_yVTPCz0RfMNc4MxiWM; path=/; samesite=strict; secure; httponly',
  'redirects' => 0,
  'displayurl' => 'https://10.32.1.11/proxy/protect/api/cameras/6055da95020f1a03e70003ef/snapshot?w=200',
  'path' => '/proxy/protect/api/cameras/6055da95020f1a03e70003ef/snapshot?w=200',
  'hu_blocking' => 0,
  'key' => 'snap',
  'host' => '10.32.1.11',
  'hu_portSfx' => '',
  'fm_originalCallback' => sub { "DUMMY" },
  'auth' => 0,
  'hu_port' => 443,
  'addr' => 'https://10.32.1.11:443',
  'hash' => {
              'DEF' => '10.32.1.11',
              'NTFY_ORDER' => '50-Protect',
              'helper' => {
                            'json' => [
                                        {
                                          'mac' => 'B4FBE49FB105',
                                          'privacyZones' => [],
                                          'osdSettings' => {
                                                             'isNameEnabled' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),
                                                             'isDebugEnabled' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
                                                             'isLogoEnabled' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isDebugEnabled'},
                                                             'isDateEnabled' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isNameEnabled'}
                                                           },
                                          'connectionHost' => '10.32.1.11',
                                          'isAdoptedByOther' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isDebugEnabled'},
                                          'ledSettings' => {
                                                             'blinkRate' => 0,
                                                             'isEnabled' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isNameEnabled'}
                                                           },
                                          'isLiveHeatmapEnabled' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isDebugEnabled'},
                                          'lastRing' => undef,
                                          'isProvisioned' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isNameEnabled'},
                                          'isDeleting' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isDebugEnabled'},
                                          'isRebooting' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isDebugEnabled'},
                                          'pirSettings' => {
                                                             'pirSensitivity' => 100,
                                                             'timelapseTransferInterval' => 600,
                                                             'timelapseFrameInterval' => 15,
                                                             'pirMotionClipLength' => 15
                                                           },
                                          'smartDetectZones' => [
                                                                  {
                                                                    'color' => '#AB46BC',
                                                                    'id' => 1,
                                                                    'name' => 'Default',
                                                                    'points' => [
                                                                                  [
                                                                                    0,
                                                                                    0
                                                                                  ],
                                                                                  [
                                                                                    1,
                                                                                    0
                                                                                  ],
                                                                                  [
                                                                                    1,
                                                                                    1
                                                                                  ],
                                                                                  [
                                                                                    0,
                                                                                    1
                                                                                  ]
                                                                                ],
                                                                    'sensitivity' => 50,
                                                                    'objectTypes' => []
                                                                  }
                                                                ],
                                          'elementInfo' => undef,
                                          'hardwareRevision' => '8',
                                          'canAdopt' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isDebugEnabled'},
                                          'lastPrivacyZonePositionId' => undef,
                                          'name' => 'Terrasse1',
                                          'smartDetectSettings' => {
                                                                     'objectTypes' => []
                                                                   },
                                          'host' => '10.32.20.93',
                                          'videoMode' => 'default',
                                          'phyRate' => 100,
                                          'anonymousDeviceId' => '96d6aed6-d3f7-59bd-80d3-4cb404c583ca',
                                          'uptime' => '25.66',
                                          'motionZones' => [
                                                             {
                                                               'id' => 1,
                                                               'name' => 'Default',
                                                               'color' => '#AB46BC',
                                                               'points' => [
                                                                             [
                                                                               0,
                                                                               0
                                                                             ],
                                                                             [
                                                                               1,
                                                                               0
                                                                             ],
                                                                             [
                                                                               1,
                                                                               1
                                                                             ],
                                                                             [
                                                                               0,
                                                                               1
                                                                             ]
                                                                           ],
                                                               'sensitivity' => 50
                                                             }
                                                           ],
                                          'audioBitrate' => 64000,
                                          'apMac' => undef,
                                          'isConnected' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isNameEnabled'},
                                          'isAdopting' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isDebugEnabled'},
                                          'firmwareBuild' => 'db78752.210719.1653',
                                          'hasSpeaker' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isDebugEnabled'},
                                          'channels' => [
                                                          {
                                                            'name' => 'High',
                                                            'enabled' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isNameEnabled'},
                                                            'minMotionAdaptiveBitRate' => 750000,
                                                            'id' => 0,
                                                            'isRtspEnabled' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isNameEnabled'},
                                                            'idrInterval' => 5,
                                                            'maxBitrate' => 6000000,
                                                            'bitrate' => 6000000,
                                                            'fpsValues' => [
                                                                             1,
                                                                             2,
                                                                             3,
                                                                             4,
                                                                             5,
                                                                             6,
                                                                             8,
                                                                             9,
                                                                             10,
                                                                             12,
                                                                             15,
                                                                             16,
                                                                             18,
                                                                             20,
                                                                             24,
                                                                             25
                                                                           ],
                                                            'minBitrate' => 32000,
                                                            'height' => 1080,
                                                            'width' => 1920,
                                                            'rtspAlias' => '3fEwAfyS1CNPHZPi',
                                                            'fps' => 25,
                                                            'minClientAdaptiveBitRate' => 0,
                                                            'videoId' => 'video1'
                                                          },
                                                          {
                                                            'bitrate' => 1500000,
                                                            'maxBitrate' => 2000000,
                                                            'idrInterval' => 5,
                                                            'fpsValues' => [
                                                                             1,
                                                                             2,
                                                                             3,
                                                                             4,
                                                                             5,
                                                                             6,
                                                                             8,
                                                                             9,
                                                                             10,
                                                                             12,
                                                                             15,
                                                                             16,
                                                                             18,
                                                                             20,
                                                                             24,
                                                                             25
                                                                           ],
                                                            'minBitrate' => 32000,
                                                            'rtspAlias' => undef,
                                                            'width' => 1024,
                                                            'height' => 576,
                                                            'minClientAdaptiveBitRate' => 150000,
                                                            'fps' => 25,
                                                            'videoId' => 'video3',
                                                            'name' => 'Medium',
                                                            'enabled' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isNameEnabled'},
                                                            'minMotionAdaptiveBitRate' => 750000,
                                                            'id' => 1,
                                                            'isRtspEnabled' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isDebugEnabled'}
                                                          },
                                                          {
                                                            'videoId' => 'video2',
                                                            'fps' => 15,
                                                            'minClientAdaptiveBitRate' => 0,
                                                            'height' => 360,
                                                            'rtspAlias' => undef,
                                                            'width' => 640,
                                                            'minBitrate' => 32000,
                                                            'fpsValues' => [
                                                                             1,
                                                                             2,
                                                                             3,
                                                                             4,
                                                                             5,
                                                                             6,
                                                                             8,
                                                                             9,
                                                                             10,
                                                                             12,
                                                                             15
                                                                           ],
                                                            'idrInterval' => 5,
                                                            'bitrate' => 300000,
                                                            'maxBitrate' => 1000000,
                                                            'id' => 2,
                                                            'isRtspEnabled' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isDebugEnabled'},
                                                            'minMotionAdaptiveBitRate' => 300000,
                                                            'enabled' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isNameEnabled'},
                                                            'name' => 'Low'
                                                          }
                                                        ],
                                          'isDark' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isNameEnabled'},
                                          'smartDetectLines' => [],
                                          'lastMotion' => '1629160608012',
                                          'connectedSince' => '1634997014430',
                                          'hasWifi' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isDebugEnabled'},
                                          'isUpdating' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isDebugEnabled'},
                                          'upSince' => '1634996988449',
                                          'isAdopted' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isNameEnabled'},
                                          'isProbingForWifi' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isDebugEnabled'},
                                          'talkbackSettings' => {
                                                                  'filterAddr' => undef,
                                                                  'filterPort' => undef,
                                                                  'channels' => 1,
                                                                  'samplingRate' => 22050,
                                                                  'typeIn' => 'serverudp',
                                                                  'bitsPerSample' => 16,
                                                                  'bindAddr' => '0.0.0.0',
                                                                  'bindPort' => 7004,
                                                                  'typeFmt' => 'aac',
                                                                  'quality' => 100
                                                                },
                                          'isManaged' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isNameEnabled'},
                                          'isRecording' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isDebugEnabled'},
                                          'id' => '6055da95020f1a03e70003ef',
                                          'micVolume' => 100,
                                          'isMicEnabled' => $VAR1->{'hash'}{'helper'}{'json'}[0]{'osdSettings'}{'isNameEnabled'},
                                          'featureFlags' => {
                                                              'pan' => {
                                                                         'degrees' => {
                                                                                        'min' => undef,
                                                                                        'step' => undef,
                                                                                        'max' => undef
                                                                                      },
                                                                         'steps' => {
                                                                                      'min' => undef,
                                                                                      'step' => undef,

math78

und noch Stacktrace:
2021.10.23 19:05:44 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_UnifiProtect.pm line 297.
2021.10.23 19:05:44 1: stacktrace:
2021.10.23 19:05:44 1:     main::__ANON__                      called by ./FHEM/74_UnifiProtect.pm (297)
2021.10.23 19:05:44 1:     main::UnifiProtect_CGI              called by ./FHEM/01_FHEMWEB.pm (992)
2021.10.23 19:05:44 1:     main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (598)
2021.10.23 19:05:44 1:     main::FW_Read                       called by fhem.pl (3890)
2021.10.23 19:05:44 1:     main::CallFn                        called by ./FHEM/98_freezemon.pm (1235)
2021.10.23 19:05:44 1:     main::freezemon_callFn              called by ./FHEM/98_freezemon.pm (1348)
2021.10.23 19:05:44 1:     main::__ANON__                      called by fhem.pl (773)
2021.10.23 19:05:44 4: Protect: fetching data from https://10.32.1.11/proxy/protect/api/cameras/6055da95020f1a03e70003ef/snapshot?w=200
2021.10.23 19:05:44 5: [Freezemon] Performance: switching callback from CODE(0x562dfb4d3488) to CODE(0x562dfa5b00b8)
2021.10.23 19:05:44 5: HttpUtils url=https://10.32.1.11/proxy/protect/api/cameras/6055da95020f1a03e70003ef/snapshot?w=200 NonBlocking via https
2021.10.23 19:05:44 4: IP: 10.32.1.11 -> 10.32.1.11
2021.10.23 19:05:44 5: Protect: CGI:{
  'cam' => '6172a93b02831d03e7000c0e',
  'name' => 'Protect',
  'ts' => '1635008744.354',
  'width' => '200'
}

2021.10.23 19:05:44 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_UnifiProtect.pm line 297.
2021.10.23 19:05:44 1: stacktrace:
2021.10.23 19:05:44 1:     main::__ANON__                      called by ./FHEM/74_UnifiProtect.pm (297)
2021.10.23 19:05:44 1:     main::UnifiProtect_CGI              called by ./FHEM/01_FHEMWEB.pm (992)
2021.10.23 19:05:44 1:     main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (598)
2021.10.23 19:05:44 1:     main::FW_Read                       called by fhem.pl (3890)
2021.10.23 19:05:44 1:     main::CallFn                        called by ./FHEM/98_freezemon.pm (1235)
2021.10.23 19:05:44 1:     main::freezemon_callFn              called by ./FHEM/98_freezemon.pm (1348)
2021.10.23 19:05:44 1:     main::__ANON__                      called by fhem.pl (773)
2021.10.23 19:05:44 4: Protect: fetching data from https://10.32.1.11/proxy/protect/api/cameras/6172a93b02831d03e7000c0e/snapshot?w=200
2021.10.23 19:05:44 5: [Freezemon] Performance: switching callback from CODE(0x562dfb4d3488) to CODE(0x562dfa5b00b8)
2021.10.23 19:05:44 5: HttpUtils url=https://10.32.1.11/proxy/protect/api/cameras/6172a93b02831d03e7000c0e/snapshot?w=200 NonBlocking via https
2021.10.23 19:05:44 4: IP: 10.32.1.11 -> 10.32.1.11
2021.10.23 19:05:44 5: Protect: CGI:{
  'cam' => '6172c35b039e1d03e7000cd8',
  'ts' => '1635008744.354',
  'name' => 'Protect',
  'width' => '200'
}

2021.10.23 19:05:44 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_UnifiProtect.pm line 297.
2021.10.23 19:05:44 1: stacktrace:
2021.10.23 19:05:44 1:     main::__ANON__                      called by ./FHEM/74_UnifiProtect.pm (297)
2021.10.23 19:05:44 1:     main::UnifiProtect_CGI              called by ./FHEM/01_FHEMWEB.pm (992)
2021.10.23 19:05:44 1:     main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (598)
2021.10.23 19:05:44 1:     main::FW_Read                       called by fhem.pl (3890)
2021.10.23 19:05:44 1:     main::CallFn                        called by ./FHEM/98_freezemon.pm (1235)
2021.10.23 19:05:44 1:     main::freezemon_callFn              called by ./FHEM/98_freezemon.pm (1348)
2021.10.23 19:05:44 1:     main::__ANON__                      called by fhem.pl (773)
2021.10.23 19:05:44 4: Protect: fetching data from https://10.32.1.11/proxy/protect/api/cameras/6172c35b039e1d03e7000cd8/snapshot?w=200
2021.10.23 19:05:44 5: [Freezemon] Performance: switching callback from CODE(0x562dfb4d3488) to CODE(0x562dfa5b00b8)
2021.10.23 19:05:44 5: HttpUtils url=https://10.32.1.11/proxy/protect/api/cameras/6172c35b039e1d03e7000cd8/snapshot?w=200 NonBlocking via https
2021.10.23 19:05:44 4: IP: 10.32.1.11 -> 10.32.1.11
2021.10.23 19:05:44 5: HttpUtils request header:
GET /proxy/protect/api/cameras/6172a93b02831d03e7000c0e/snapshot?w=200 HTTP/1.0
Host: 10.32.1.11
User-Agent: fhem
Accept-Encoding: gzip,deflate
Authorization: Bearer
X-CSRF-Token: 8029b661-952e-4e3f-8570-dbc69e038d64
Cookie: TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjc3JmVG9rZW4iOiI4MDI5YjY2MS05NTJlLTRlM2YtODU3MC1kYmM2OWUwMzhkNjQiLCJ1c2VySWQiOiJjZDViMGU3My1iOWYyLTQ4ODMtYjAyZi01MjRiMDE2MDk2NDIiLCJpYXQiOjE2MzUwMDg3MTQsImV4cCI6MTYzNTAxMjMxNH0.h4uY-pXqgEDgeRycUUxc0K23jvOmbkkgCnbatq1rq7Q; path=/; samesite=strict; secure; httponly

2021.10.23 19:05:44 5: Protect: CGI:{
  'width' => '200',
  'cam' => '6172c44b00bd1d03e7000cdd',
  'name' => 'Protect',
  'ts' => '1635008744.354'
}

2021.10.23 19:05:44 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_UnifiProtect.pm line 297.
2021.10.23 19:05:44 1: stacktrace:
2021.10.23 19:05:44 1:     main::__ANON__                      called by ./FHEM/74_UnifiProtect.pm (297)
2021.10.23 19:05:44 1:     main::UnifiProtect_CGI              called by ./FHEM/01_FHEMWEB.pm (992)
2021.10.23 19:05:44 1:     main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (598)
2021.10.23 19:05:44 1:     main::FW_Read                       called by fhem.pl (3890)
2021.10.23 19:05:44 1:     main::CallFn                        called by ./FHEM/98_freezemon.pm (1235)
2021.10.23 19:05:44 1:     main::freezemon_callFn              called by ./FHEM/98_freezemon.pm (1348)
2021.10.23 19:05:44 1:     main::__ANON__                      called by fhem.pl (773)
2021.10.23 19:05:44 4: Protect: fetching data from https://10.32.1.11/proxy/protect/api/cameras/6172c44b00bd1d03e7000cdd/snapshot?w=200
2021.10.23 19:05:44 5: [Freezemon] Performance: switching callback from CODE(0x562dfb4d3488) to CODE(0x562dfa5b00b8)
2021.10.23 19:05:44 5: HttpUtils url=https://10.32.1.11/proxy/protect/api/cameras/6172c44b00bd1d03e7000cdd/snapshot?w=200 NonBlocking via https
2021.10.23 19:05:44 4: IP: 10.32.1.11 -> 10.32.1.11
2021.10.23 19:05:44 5: HttpUtils request header:
GET /proxy/protect/api/cameras/6055da95020f1a03e70003ef/snapshot?w=200 HTTP/1.0
Host: 10.32.1.11
User-Agent: fhem
Accept-Encoding: gzip,deflate
Authorization: Bearer
X-CSRF-Token: 8029b661-952e-4e3f-8570-dbc69e038d64
Cookie: TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjc3JmVG9rZW4iOiI4MDI5YjY2MS05NTJlLTRlM2YtODU3MC1kYmM2OWUwMzhkNjQiLCJ1c2VySWQiOiJjZDViMGU3My1iOWYyLTQ4ODMtYjAyZi01MjRiMDE2MDk2NDIiLCJpYXQiOjE2MzUwMDg3MTQsImV4cCI6MTYzNTAxMjMxNH0.h4uY-pXqgEDgeRycUUxc0K23jvOmbkkgCnbatq1rq7Q; path=/; samesite=strict; secure; httponly

2021.10.23 19:05:44 5: HttpUtils request header:
GET /proxy/protect/api/cameras/6172c44b00bd1d03e7000cdd/snapshot?w=200 HTTP/1.0
Host: 10.32.1.11
User-Agent: fhem
Accept-Encoding: gzip,deflate
X-CSRF-Token: 8029b661-952e-4e3f-8570-dbc69e038d64
Cookie: TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjc3JmVG9rZW4iOiI4MDI5YjY2MS05NTJlLTRlM2YtODU3MC1kYmM2OWUwMzhkNjQiLCJ1c2VySWQiOiJjZDViMGU3My1iOWYyLTQ4ODMtYjAyZi01MjRiMDE2MDk2NDIiLCJpYXQiOjE2MzUwMDg3MTQsImV4cCI6MTYzNTAxMjMxNH0.h4uY-pXqgEDgeRycUUxc0K23jvOmbkkgCnbatq1rq7Q; path=/; samesite=strict; secure; httponly
Authorization: Bearer

math78

#73
und auch zusätzlich sehr viel seltsame Zeichen:
2021.10.23 19:05:44 5: Protect: received ÿØÿþ�Lavc58.91.100�ÿÛ�C�
ÿÄ��������������������������������!A1"aQ¡‘qR±ÑÁBð2#rᢒbS$3C‚£c²%ñ����������������ÿÀ��p�È"���ÿÚ� ��?�µª¬3K(YëÀGeÔD�ŸØAáÃÕ,”Ñʒ~¢µä /mWµˆòu�
@í½ù
?:¨d†9&Xµê�¶{^;øßd¯žS—–W>-#ÿ�Ë
©çjbôñQÄ’':±£Ó맧âùÜ=œ/ê{JÃyÁ#8éÙ፮‚*Ÿá õ+×ÇïµG(ÔF9ßÀ|¬.jk̬ÛþxÕ$šŸ÷³g Y©æ.Wf:ª‰¿î±•Õpx(×¹Ÿ”’
@–ldžôºîcG/ª–š¡Kid )Æq©Iãa´‡ÏiLÈ!¤VôÓÓ#î€äÆ{^;Ýg7çQóɄõ4ÃÔTо›²¨PÙÜnIÜñ¼¬/ÛëgFwÅ
¢sh `x3°OuÙCæz´¥’•t¬r¶ÃVp:çñ‹˜ùØÕõM"jª˜
ÿ�cÇN fÓ/ñ³É$ŒGâv?~,}#³†ß'ovlD•Î®¸üõ°°t_}ÆYU�cólꞸ'¦;Ï[xÕ:æÀv›QÎÿ�}Ã0þ&ã2 Æû-´’,4mOvQðµ#Ïì_ò‹¯†ºW• Gƒ`›·²£“NÓ&±â¢½¯z›Ìï„_ò‹‡¦±ê• ‚�Î|}×uË<¿Y͙֗Ñw5²‚0Q±=­>ûŒ^UæÕ`¼âuSƒéTS¹Ï\`KŸeü¦¶‡™ÑÕQó7HYci!¨m·QÐüï)S¥ÝJ3vUF¡¶HãeVòêÊ&ÓQMS
ˆhÛof,&Ô§ }FÀc»g¯p‘]ˆL¶Ÿ™ØüºY'~„û¯˜ÝW;“ïë`Ew—^›šRÐÅ+L³A®ás£Ô]DtÆÃû±ÿ�“Oû²ÿ�]¿,a?>bzÅM·¸„Uêòߑaá1>6N»cÏA¿~ö\4Ï.Øcò¤.­®HÙÎûÙ0òiO] ýM÷.MÍùmE>{
àô1°>ÏÝì°¯9ÜGøÜ÷a’žûd´õiûãuù‚¿^.1ÓÊÇræl% l[:oÔ9Wò‹˜s
*Ú¾ž^•cÑ#°º€cÙ�ï¾3~sLV&*ON‡§q"þªåa—Ѫ•*”ÐŒ‚1ñ°ùn®9é&– ƒÄìŒ1ø‘°}¢Õëw7ÀÞ³ù„´°y’·ôó,‰#,¿ÁdeW‘Au$¸líy¯^$Øäžñö`´‘5g>÷ƒe‰�g¡´•±¤/^—Á+ºwð[»eöߍ‹]:ǤiÔØ<xY@ôØ1'®
ÔV–õä
ÔoáÂÁ2U–تãßsX¥e7'Çe'Ü:Úè}?ÖӉ@1™‘_=4³`çÜsv¼¦Ÿ’Ó;,gLÈu éd#üV�@¬_²pvÇuî(?âéâ
2V=ú˜Ÿ®ò«Ë倴LivÔ,v?znKÌãä²ÆÓÀÒ¦‘ÙVb;ì ª~O!˜ÊÔþ£¤/û¢mE÷Áé
;]0©+¤ Ðóz™YS[|ÍÍéù”¨hÖX“%Ø: :ÈI=¶Á‚)'‚"N4¢:±+·¸bÀ¢²”ÖðÔ~ÛT
­S›µ®Ö®˜åtëW
E2væŠ\¬Á@'Ç'
ÔVÃ$9Hã×
€Æsûq፭´Ô(µtÍÚ8š3¤l[zhš?YôÜOOfÈYéåª_EĚC7g¹ qø±agåèf“žÔT�Z3BI24€ñé›ÝzoþØø^ɜÍ۞ŠIYd‘œ¾N¡éÄÜ:bý[Ò°ùê*ׁó;ÿ�k>8�û?·K®£ª8Ž¯
¸w‡åÖíáeeN<l$«§¥•
Æzõïµ
¸µLþçðê~ÂÚ2àcQÇÑ;¯Àä[?GI?ýJXøªúgÿ�Œ¨ø‹£ïFșð-·°od@üÚ»þšHñBüNþÛAò’y52TÁ$ž™@¨e:F¬ïÙ
Ü8›ÔyS“Åʦç4
Å¢ U:Ž˜Ý Úÿ�IáyåÚWrêÿ�FYãÔ®-‹3"±S“¸Çq½Ï)‹ÒæœÛS»»¼,KðR­¥W¸
¬>{ç\±éù
M8,Ls:c4±®¼òʀ58Ðp_lãºýSÏÿ�7œOéÅúºeÖW,Ký¹¼{Ï5\‹¬4ƒ#;ñµ†i(ñ§V¬Qž‹¹ñ7kIEa¤(dÄ|O_ªÎ©¡søÄa_RœN“‘œílžº§Ð¡T_HÉùg§¸X"ž¢‡µO,TÈYÃ-CՐÃOg9 qÀô¼¿;¦ÿ�‰wÄ¡º
ïܝܽ>rݧcø÷Þëç‚I f,3­çÂõ|½â’©*ió§Qêب çVI2tîÅÖ]-†7aÊuaMÜf@=샽PuSú65ECÉ Œ.x·ö¸U8Z‰‚ÉÙøÙwÃ{¬J„’3FXkÎ랃³×'®ö }dàiïß󏝶
„ô]& ¹d‘%C?D¦’Çn˜aŽ69p²Q£¨A©dÎ;J>‰Sœ·Ú×$}4d ^SPÙq°ÆøÉ°Óy;Ìpù˜ÍYSÍ ‘´� m
8bÏ=×W͹ëó
™% ¥Ž•ÀÙs²íá`‡ ¡ÀŒýy°HŃç”Èڍ—ʉ+ƒŒ&7þ ~ l
$éQ¹8û:7jhß haâ6èv ê6Ÿå§$w®^g#ƒ®)�M;‚òi՞ð­~·úsy"@ƞ9(b±jÒ¡FDaÛ@¶Æ÷8[’Ñ¥ÒoØ,ˆe–փ߾}Ö(“$dû®Ö–8QœwäX>4«­m>¦‘ŒýÓ?3o•ÒÂsQU¬ý‡ß¹ú­ôñl0ݱ׿‡ÝkýY2ó'^€q°>ŒE­VŠ‡Ôì†¦Ï´ûné)+$:g­XNٍŒgnÑo®ßȹ
&¦#•¥5Tµ2 •d-C9pìÈÈ`s&¬J±&¸Œ­’æ6ÔCº±°îãa¸òw—*a¬†´²¼hOlç+Ž=¬ïá~†!Ž9d›`Ϊ÷&qŸùç•ùµd°Ó£¦Y''Ä366ù ÞÏÞpç­Ìë(%ªhá†VUŽ•Ïg8ÁnÎ:Øl?˜¼ïGW 2ÕJ‘2<P88Ãeu0q<oš¨çý7¢™#±‚qÃ9ûo,í/S’x›t`íHÚAü#÷7Ùï°Üšî]P;3ïp~Ü\˜Ó:f?ãx6{9ý/ -S6ò=¿ÑrY€ ˜ŽÛŽ¸x›™I'm_P÷ý·_Qg»À×ç|«æ‘ǐ?#µ‚œÔ?ïP|7ÁöäX5–<í×óî¹RNi*£œ(&¾”ä{o«,E€>?“q–Pû�Hâ~ËåeÖÁ–7ÉØ©ø®/÷3hj Š•HéâŒru ³’p:ÈÍÂäòDp4·Ëom£VA`-FYܓÄ{-q)Ô8ý–\½ðßq\€Fq`¼dáktÛí,7ê.9l%“$¨t»jhdttçKz’Æ2�ì®®?í K'¢'xœDͤHTé'ºí¼·MÜ»a°îÃóŸu‡³òlrþO$ãb°<‹ýO’£ÚÖÿ�ÍU^ÙöÙ~c¨¿’,Cc+�ú#ú}àòMaæ©ÙîÍØÓ¸Eã›)hc‰0˜é6ípJ5\·ËkÓTHéòÜç=:\êw“
$“ÙïÆ~ëdH¨; ÏÆÉQ‘`w•¤u¬Y'&Lô{#?èè}÷e͊ÅZΌ­“
½Ý>7AüHδ'¨]×ÔóÙ¥8D µ7_‡KBå<Ń©w£9Æ=ý㿘
IWÏešž¢9㈳)¶+FÙìûnª*Éåýò3 íðéaUe¤$ñ°P„/\ó÷p´È÷×I@Ô52xïjՑ`ÈðXjée™Ê¦
ÈPzg
‚ äq›ÌÌlj7pqÆå£ÆÈ 8Ò2Oùú¬"šÆçaßo§‘šUPz›ܛe#i•OÏê°³– 2sŸu¡<Y>�_e—_M
§V,&U4“œì/Œm›ˆºß]Ž»Ø&Wp7ÅÅ$uRtj8ÔA gå½®E#¾×h‘AX6“Ðàço½†Ïœó1òô
c%�“¨ ؍]À'¾Ýä
/ÕsxN6
ZSó=•öŸeâ+jÚ®v€¹;ÀxgŽ/Öÿ�•”+
=E[íûT“áêoiöX窳%LT‰¿¦Š˜I°Oþ›É~†§ý©?ÊoQÈ¡>bóR;QÇ#ÔɞšPåTÿ�î*·êŸøªö#ø ™=Æëœøõ·îòÏâVêzu” +hÏd ½WŎرØ-F
ƒ[ÊV|Éeú‘Á¾ÃvëuµbÏK A3Dìš
°ØêÅ÷NN\—>Ï
ìªy\U‹ÛÙ¸0ýÂóU¼®¢‰‰a®?¦¿
‚ÖLmÂÓ-<oº'Ùð¾j i’ þ¬"b(Jœføƒƒr‡·›q
O^¶Ô/Žz~xß'N¡k'<Ö&ÛO€ud|¸Ú±›šŒX¨†úƒVö2œ›%N‘a;Q97Ɛgÿ�Xpز.l¢mô°]:z“"÷ïò¿kå¤r_'ë=—©ê’Oøøÿ�(§zŠŒ ÔØØœÞۚs¾eUGMG=2Ɣã 2êè2C2�áãaèŸÊþ]¢Ž«˜:öªeôÐÿ�õÇ×ÅÏøoy!ó::þMT‘M£ ‹2
&]:™†œûïQaò•ñ�Eèý¸û›8e÷7¢E¾èãK)ø7‡ÈÚÿ�DÔRšdG,¬%ñûóž@‘1Óñw¼Â>_',ý\’É
taD‘2ìã!AúA°rsÁM€t²zƒK~áe
º¨I“týê3ýCÄw‹³‚oPwØ‹oUïµ¥½N,ª¤}£ïûÑV؀Eþ6ÔœÃʔՙhÓÈ{³=ëÃÝð¼­o—y Vc÷S´˜ùÇ¿éÑFM—¤*œãl<yF0°Ðyº‰iê#¨Q¤é�
c|íďªó¢ÂD\H¨¹Z¥“l N‚àNnIÐß
‡Tö
¿6=µH6“¨Á‘Ðý×Æ=£|Ïçû ë<EªfSœ|ï­ O³û¶·Ï
†›Êu”43™*˜©9ÒØ:FØ€{ïcWWG=#êò@ìÇŽß}ùx8�[#w 4Îp1œçÝaôGò¾<šy·ÄÕ³ž!¦~*oot^Nå’r~AËé%ÚU„<£ÂII‘ï±î»ÛÿÙ
2021.10.23 19:05:44 1: WEB_10.32.10.10_54517
2021.10.23 19:05:44 1: gone
2021.10.23 19:05:44 5: Protect: CGI:{
  'width' => '200',
  'cam' => '6172c35b039e1d03e7000cd8',
  'name' => 'Protect',
  'ts' => '1635008744.354'
}

justme1968

die sonderzeichen sind vermutlich das bild das gerade empfangen wird. sollte mit verbose 4 oder kleiner weg sein.

ansonsten sehe ich einen stacktrace mit einer warnung aber keinen absturz. wo und wann genau stürzt fhem ab?
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

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