samemory / homebridge-eufy-security

Work in progress
Apache License 2.0
97 stars 14 forks source link

[Bug]: solocam stream dragging #311

Closed paqpaqpaq closed 2 years ago

paqpaqpaq commented 2 years ago

What happened?

The live stream of the S40 'drags'. it shows events slower than actually happening. In other words: every second takes longer, about 1.5 x So 20 sec of streaming takes roughly 30 sec.

Device Type

other (UnSupported)

Plugin Version

v1.0.x (Supported)

HomeBridge Version

v1.3.x (Supported)

NodeJS Version

v16 (Supported)

Operating System

Raspbian 10+ (Supported)

Relevant log output

[EufySecurity] Starting video stream: 1280 x 720, 30 fps, 299 kbps (AAC-eld) Zijdeur
github-actions[bot] commented 2 years ago

Did you check this Common Issues pages ?

paqpaqpaq commented 2 years ago

is there any solution to this?

paqpaqpaq commented 2 years ago

I tried the beta again. Stream runs fine there, but only for a few seconds, then homebridge crashes ands restarts

lenoxys commented 2 years ago

I tried the beta again. Stream runs fine there, but only for a few seconds, then homebridge crashes ands restarts

this is a known issue #321. We're working on this.

paqpaqpaq commented 2 years ago

I tried the beta again. Stream runs fine there, but only for a few seconds, then homebridge crashes ands restarts

this is a known issue #321. We're working on this.

Found that topic later, yes. :)

Is there something in the meanwhile I could try to stop the dragging of the stream? I takes roughly 17 sec to stream 10. The pi CPU load whilst streaming is only 38-43%

schliemann commented 2 years ago

Odd. My beta stream can run for the maximum limit of 30 seconds.

lenoxys commented 2 years ago

With the new beta version this can be changed under settings

schliemann commented 2 years ago

I tried the beta again. Stream runs fine there, but only for a few seconds, then homebridge crashes ands restarts

this is a known issue #321. We're working on this.

Found that topic later, yes. :)

Is there something in the meanwhile I could try to stop the dragging of the stream? I takes roughly 17 sec to stream 10. The pi CPU load whilst streaming is only 38-43%

Can you share the log of the beta crash?

paqpaqpaq commented 2 years ago

I tried the beta again. Stream runs fine there, but only for a few seconds, then homebridge crashes ands restarts

this is a known issue #321. We're working on this.

Found that topic later, yes. :) Is there something in the meanwhile I could try to stop the dragging of the stream? I takes roughly 17 sec to stream 10. The pi CPU load whilst streaming is only 38-43%

Can you share the log of the beta crash?

This time it didn't start at all. After the third try, it took 3 seconds to let this happen:

[1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [verbose] *** 1 dup! [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [info] frame= 215 fps= 28 q=21.0 size= 238kB time=00:00:07.13 bitrate= 273.7kbits/s dup=107 drop=0 speed=0.935x
[1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [info] frame= 215 fps= 27 q=21.0 Lsize= 238kB time=00:00:07.13 bitrate= 273.7kbits/s dup=107 drop=0 speed=0.895x
[1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [AVIOContext @ 0x35759e0] [verbose] Statistics: 0 seeks, 12 writeouts [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [info] video:235kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.537085% [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [verbose] Input file #0 (unix:./6.sock): [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [verbose] Input stream #0:0 (video): 112 packets read (478022 bytes); 109 frames decoded; [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [verbose] Total: 112 packets (478022 bytes) demuxed [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [verbose] Output file #0 (srtp://192.168.108.140:62079?rtcpport=62079&pkt_size=1316): [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [verbose] Output stream #0:0 (video): 215 frames encoded; 215 packets muxed (240325 bytes); [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [verbose] Total: 215 packets (240325 bytes) muxed [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [AVIOContext @ 0x3579ea0] [verbose] Statistics: 0 seeks, 386 writeouts [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [libx264 @ 0x3578a80] [info] frame I:1 Avg QP:38.00 size: 6453 [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [libx264 @ 0x3578a80] [info] frame P:214 Avg QP:24.11 size: 1093 [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [libx264 @ 0x3578a80] [info] mb I I16..4: 100.0% 0.0% 0.0% [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [libx264 @ 0x3578a80] [info] mb P I16..4: 0.1% 0.0% 0.0% P16..4: 17.0% 0.0% 0.0% 0.0% 0.0% skip:82.8% [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [libx264 @ 0x3578a80] [info] final ratefactor: 31.00 [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [libx264 @ 0x3578a80] [info] coded y,uvDC,uvAC intra: 37.2% 7.8% 0.3% inter: 6.5% 2.5% 0.1% [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [libx264 @ 0x3578a80] [info] i16 v,h,dc,p: 37% 19% 28% 16% [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [libx264 @ 0x3578a80] [info] i8c dc,h,v,p: 85% 7% 7% 1% [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [libx264 @ 0x3578a80] [info] kb/s:268.27 [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video [AVIOContext @ 0x357e480] [verbose] Statistics: 498208 bytes read, 0 seeks [06/01/2022, 22:22:34] Error: read ECONNRESET at Pipe.onStreamRead (internal/stream_base_commons.js:209:20) [Tuya] Heard back from Verwarming --- with command 8 [Tuya] SimpleHeater changed: {"1":true,"2":17,"3":16,"4":"0","6":false,"12":0,"101":20,"102":"2","103":1,"104":2,"105":false,"107":false,"108":false,"110":5} [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_video FFmpeg exited with code: 0 and signal: null (Expected) [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] DEBUG: Zijdeur_audio FFmpeg exited with code: null and signal: SIGKILL (Forced) [06/01/2022, 22:22:34] Got SIGTERM, shutting down Homebridge... [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [1/6/2022, 10:22:34 PM] [EufySecurity-1.1.1-beta.13] INFO: Zijdeur Stopped video stream. [06/01/2022, 22:22:39] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [06/01/2022, 22:22:44] [HB Supervisor] Restarting Homebridge... [06/01/2022, 22:22:44] [HB Supervisor] Starting Homebridge with extra flags: -I [06/01/2022, 22:22:44] [HB Supervisor] Started Homebridge v1.3.9 with PID: 10655 [06/01/2022, 22:22:46] Loaded config.json with 2 accessories and 11 platforms. [06/01/2022, 22:22:46] Loaded 25 cached accessories from cachedAccessories. [06/01/2022, 22:22:47] --- [06/01/2022, 22:22:49] Loaded plugin: homebridge-bravia-tvos@5.0.8 [06/01/2022, 22:22:50] Registering platform 'homebridge-bravia-tvos.BraviaOSPlatform' [06/01/2022, 22:22:50] --- [06/01/2022, 22:22:50] Loaded plugin: homebridge-config-ui-x@4.41.5 [06/01/2022, 22:22:50] Registering platform 'homebridge-config-ui-x.config' [06/01/2022, 22:22:50] --- [06/01/2022, 22:22:51] Loaded plugin: homebridge-eufy-security@1.1.1-beta.13 [06/01/2022, 22:22:51] Registering platform 'homebridge-eufy-security.EufySecurity' [06/01/2022, 22:22:51] --- [06/01/2022, 22:22:52] Loaded plugin: homebridge-homeconnect@0.23.4 [06/01/2022, 22:22:52] Registering platform 'homebridge-homeconnect.HomeConnect' [06/01/2022, 22:22:52] ---

schliemann commented 2 years ago

We probably need some more logging to figure out what is happening then. My doorbell streams for 30 seconds and only stops when the station kills the stream.

paqpaqpaq commented 2 years ago

I tried the beta again. Stream runs fine there, but only for a few seconds, then homebridge crashes ands restarts

this is a known issue #321. We're working on this.

Found that topic later, yes. :) Is there something in the meanwhile I could try to stop the dragging of the stream? I takes roughly 17 sec to stream 10. The pi CPU load whilst streaming is only 38-43%

Can you share the log of the beta crash?

We probably need some more logging to figure out what is happening then. My doorbell streams for 30 seconds and only stops when the station kills the stream.

it spits out so many lines, I can't even scroll back that far

schliemann commented 2 years ago

Do you have other devices than the solocam?

schliemann commented 2 years ago

@paqpaqpaq Odd that you receive 37 Stopped video stream.

Might be a Solocam thing caused by the client library.

paqpaqpaq commented 2 years ago

Do you have other devices than the solocam?

No sorry, just 1 eufy

paqpaqpaq commented 2 years ago

@paqpaqpaq Odd that you receive 37 Stopped video stream.

Might be a Solocam thing caused by the client library.

Could be. It is frustrating any way, for it is a total hit & miss if a stream will start at all, with various outcomes. Let's say it will only work in about 25% of the cases. There could be no responding screens, there could be nothing happening for 30 seconds. Sometimes it will work within seconds, also many attempts in a row, sometimes I give up after 10 tries. And IF it starts, it is like watching a slowmo.

schliemann commented 2 years ago

Do you have other devices than the solocam?

No sorry, just 1 eufy

Ah. Makes more sense then. Maybe you could share your device with Bropat and explain what happens in an issue on his github.

schliemann commented 2 years ago

@paqpaqpaq Can you try the new beta?

paqpaqpaq commented 2 years ago

@paqpaqpaq Can you try the new beta?

OK This is HB booting and first try:

[1/7/2022, 10:12:26 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur SET HomeKitCameraActive: 1 [1/7/2022, 10:12:26 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur SET handleHomeKitNightVisionSet: true [1/7/2022, 10:12:26 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur SET EventSnapshotsActive: 1 [1/7/2022, 10:12:26 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur SET HomeKitCameraOperatingModeIndicator: true [Tuya DEBUG] decrementing this._connectionAttempts, currently 2 [Tuya DEBUG] decrementing this._connectionAttempts, currently 1 [1/7/2022, 10:12:26 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur SET HomeKitCameraActive: 1 [1/7/2022, 10:12:26 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur SET handleHomeKitNightVisionSet: true [1/7/2022, 10:12:26 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur SET EventSnapshotsActive: 1 [1/7/2022, 10:12:26 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur SET HomeKitCameraOperatingModeIndicator: true [1/7/2022, 10:12:28 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur SET HomeKitCameraActive: 1 [1/7/2022, 10:12:28 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur SET handleHomeKitNightVisionSet: true [1/7/2022, 10:12:28 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur SET EventSnapshotsActive: 1 [1/7/2022, 10:12:28 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur SET HomeKitCameraOperatingModeIndicator: true [Tuya] Heard back from Verwarming Badkamer with command 8 [Tuya] SimpleHeater changed: {"1":true,"2":21,"3":20,"4":"0","6":false,"12":0,"101":25,"102":"2","103":1,"104":2,"105":true,"107":false,"108":false,"110":5} [Tuya] Heard back from Verwarming Slaapkamer with command 8 [Tuya] SimpleHeater changed: {"1":true,"2":18,"3":17,"4":"0","6":false,"12":0,"101":20,"102":"2","103":1,"104":2,"105":true,"107":false,"108":false,"110":5} [1/7/2022, 10:13:00 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: pictureUrl { *snap } [1/7/2022, 10:13:00 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1710 { notification_motion_onoff: 0, notification_ring_onoff: 0, notification_style: 0 } 1637258751000 [1/7/2022, 10:13:00 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1710 { notification_motion_onoff: 0, notification_ring_onoff: 0, notification_style: 0 } 1637258751000 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1400 0 1641546781453 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: light { value: false, timestamp: 1641546781453 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handlePropertyChange: { name: 'guardMode', value: { value: 1, timestamp: 1641546781658 } } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handleRawPropertyChange: { type: 1151, value: '1', modified: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON SecuritySystemCurrentState: 1 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handlePropertyChange: { name: 'currentMode', value: { value: 1, timestamp: 1641546781658 } } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handleRawPropertyChange: { type: 1102, value: '2852', modified: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handleRawPropertyChange: { type: 1154, value: '0', modified: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handleRawPropertyChange: { type: 1147, value: '1641546783', modified: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handleRawPropertyChange: { type: 1279, value: '0', modified: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handleRawPropertyChange: { type: 1162, value: '0', modified: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handleRawPropertyChange: { type: 1165, value: '', modified: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: enabled { value: true, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: statusLed { value: true, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: battery { value: 51, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: state { value: 1, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: batteryTemperature { value: 2, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1141 0 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: wifiRssi { value: -64, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1154 0 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1164 0 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1168 0 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1169 0 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1170 0 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1173 0 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1174 0 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1175 0 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1201 0 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: videoStreamingQuality { value: 0, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: watermark { value: 0, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1217 Zijdeur 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: speakerVolume { value: 80, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: microphone { value: true, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: speaker { value: true, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: powerWorkingMode { value: 2, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: recordingClipLength { value: 25, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: motionDetectionType { value: 2, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1253 1 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1271 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1276 4 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: nightvision { value: 2, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: videoRecordingQuality { value: 3, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: audioRecording { value: false, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: light { value: false, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: lightSettingsBrightnessManual { value: 75, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1408 1 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: chargingStatus { value: 2, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 3100 {"battery_data_len":30,"battery_data_detail":[{"time_stamp":1639010222,"battery_power":82},{"time_stamp":1639091189,"battery_power":81},{"time_stamp":1639182441,"battery_power":79},{"time_stamp":1639263640,"battery_power":78},{"time_stamp":1639351602,"battery_power":78},{"time_stamp":1639438062,"battery_power":76},{"time_stamp":1639524473,"battery_power":74},{"time_stamp":1639610886,"battery_power":73},{"time_stamp":1639696053,"battery_power":74},{"time_stamp":1639783091,"battery_power":72},{"time_stamp":1639868843,"battery_power":71},{"time_stamp":1639960622,"battery_power":70},{"time_stamp":1640041696,"battery_power":68},{"time_stamp":1640128097,"battery_power":71},{"time_stamp":1640214455,"battery_power":71},{"time_stamp":1640306222,"battery_power":69},{"time_stamp":1640392622,"battery_power":67},{"time_stamp":1640473954,"battery_power":66},{"time_stamp":1640559612,"battery_power":66},{"time_stamp":1640646440,"battery_power":64},{"time_stamp":1640738222,"battery_power":63},{"time_stamp":1640821348,"battery_power":62},{"time_stamp":1640908001,"battery_power":60},{"time_stamp":1640991747,"battery_power":57},{"time_stamp":1641083822,"battery_power":57},{"time_stamp":1641170222,"battery_power":55},{"time_stamp":1641251577,"battery_power":54},{"time_stamp":1641343022,"battery_power":52},{"time_stamp":1641427234,"battery_power":51},{"time_stamp":1641513339,"battery_power":52}]} 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 6012 1 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 6040 1 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: motionDetection { value: true, timestamp: 1641546781658 } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 6081 5 1641546781658 [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: pictureUrl { *snap } [1/7/2022, 10:13:01 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1710 { notification_motion_onoff: 0, notification_ring_onoff: 0, notification_style: 0 } 1637258751000 [1/7/2022, 10:13:02 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1710 { notification_motion_onoff: 0, notification_ring_onoff: 0, notification_style: 0 } 1637258751000 [1/7/2022, 10:13:10 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1142 -54 1641546790867 [1/7/2022, 10:13:10 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: wifiRssi { value: -54, timestamp: 1641546790867 } [1/7/2022, 10:13:24 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur GET StationCurrentMode: { value: 1, timestamp: 1641546781658 } [1/7/2022, 10:13:24 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur GET StationGuardMode: { value: 1, timestamp: 1641546781658 } [1/7/2022, 10:13:25 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur GET DeviceMotionDetected: { value: false, timestamp: 0 } [1/7/2022, 10:13:25 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur GET DeviceEnabled: { value: true, timestamp: 1641546781658 } [1/7/2022, 10:13:25 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur GET DeviceMotionDetection: { value: true, timestamp: 1641546781658 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handlePropertyChange: { name: 'guardMode', value: { value: 1, timestamp: 1641546815381 } } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handlePropertyChange: { name: 'currentMode', value: { value: 1, timestamp: 1641546815381 } } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handleRawPropertyChange: { type: 1102, value: '0', modified: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handleRawPropertyChange: { type: 1147, value: '1641546816', modified: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: enabled { value: true, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: statusLed { value: true, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: battery { value: 51, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: state { value: 1, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: batteryTemperature { value: 2, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Raw Property Changes: 1142 -64 1641546815381 [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: wifiRssi { value: -64, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: videoStreamingQuality { value: 0, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: watermark { value: 0, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: speakerVolume { value: 80, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: microphone { value: true, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: speaker { value: true, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: powerWorkingMode { value: 2, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: recordingClipLength { value: 25, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: motionDetectionType { value: 2, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: nightvision { value: 2, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: videoRecordingQuality { value: 3, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: audioRecording { value: false, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: light { value: false, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: lightSettingsBrightnessManual { value: 75, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: chargingStatus { value: 2, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: motionDetection { value: true, timestamp: 1641546815381 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handlePropertyChange: { name: 'guardMode', value: { value: 1, timestamp: 1641546815467 } } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur ON handlePropertyChange: { name: 'currentMode', value: { value: 1, timestamp: 1641546815467 } } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: enabled { value: true, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: statusLed { value: true, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: battery { value: 51, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: state { value: 1, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: batteryTemperature { value: 2, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: wifiRssi { value: -64, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: videoStreamingQuality { value: 0, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: watermark { value: 0, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: speakerVolume { value: 80, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: microphone { value: true, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: speaker { value: true, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: powerWorkingMode { value: 2, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: recordingClipLength { value: 25, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: motionDetectionType { value: 2, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: nightvision { value: 2, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: videoRecordingQuality { value: 3, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: audioRecording { value: false, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: light { value: false, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: lightSettingsBrightnessManual { value: 75, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: chargingStatus { value: 2, timestamp: 1641546815467 } [1/7/2022, 10:13:35 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: motionDetection { value: true, timestamp: 1641546815467 } [1/7/2022, 10:13:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Zijdeur Property Changes: light { value: false, timestamp: 1641546817190 } [1/7/2022, 10:13:37 AM] [EufySecurity-1.1.1-beta.14] INFO: Stopping session with id: 3d06ef85-0fd1-4b7f-a301-6e62991979bc [1/7/2022, 10:13:37 AM] [EufySecurity-1.1.1-beta.14] INFO: No session to stop.

After about 10 seconds there is the camera icon. no respone Same result with every try. The session ID changes at every try.

paqpaqpaq commented 2 years ago

And you have enabled detailed logging?

this is with "enable debug" ticked Is there another type of log setting?

schliemann commented 2 years ago

@paqpaqpaq No. I realized you already had it enabled.

schliemann commented 2 years ago

Ah. there is also a config element called EnableDetailedLogging. Can you see that?

https://github.com/samemory/homebridge-eufy-security/blob/7584d96b4a9a21baa260f8ec96342d5d7e83d939/src/config.ts#L11

paqpaqpaq commented 2 years ago

@schliemann No I can't There's Enable Debug (ticked) polling (30 minutes) max stream country

The latter two are not being saved, regardless my setting. So I am stuck here on a few seconds and country Algeria. (maybe this is why no stream starts)

schliemann commented 2 years ago

@paqpaqpaq

Do you have access to the config file directly? I'm not really an expert on the config-ui. But I know the config file.

paqpaqpaq commented 2 years ago

@paqpaqpaq

Do you have access to the config file directly? I'm not really an expert on the config-ui. But I know the config file.

I am now via SSH in config.schema.json Was starting to fiddle around here a bit

schliemann commented 2 years ago

You shouldn't change the schema file. Only the config file.

paqpaqpaq commented 2 years ago

You shouldn't change the schema file. Only the config file.

OK. Where should that be found?

schliemann commented 2 years ago

I have a config file here:

/usr/lib/node_modules/homebridge-eufy-security-control

paqpaqpaq commented 2 years ago

@schliemann In the config json of homebridge itself, detailed debugging is on 1 When I untick the debuggin in the UI, the config goes to 0 So this surely is the same loggin level (?)

As for your latest reply: I have no such directory, even not after deleting the eufy plugin and re installing it.

schliemann commented 2 years ago

Try setting detailedLogging to 2. That is the insane level. It might show something interesting.

paqpaqpaq commented 2 years ago

It should be 2.

Right! That give much more output: (I removed my own IP)

remoteAddress: '18.197.212.165', remotePort: 32100, response: { responseCode: 254 } } [1/7/2022, 11:19:36 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '18.223.127.200', remotePort: 32100, response: { responseCode: 253 } } [1/7/2022, 11:19:36 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '18.197.212.165', remotePort: 32100, response: { responseCode: 254 } } [1/7/2022, 11:19:36 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '54.153.101.7', remotePort: 32100, response: { responseCode: 253 } } [1/7/2022, 11:19:36 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '13.251.222.7', remotePort: 32100, response: { responseCode: 254 } } [1/7/2022, 11:19:36 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '34.235.4.153', remotePort: 32100, response: { responseCode: 253 } } [1/7/2022, 11:19:36 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '18.223.127.200', remotePort: 32100, response: { responseCode: 253 } } [1/7/2022, 11:19:36 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '54.153.101.7', remotePort: 32100, response: { responseCode: 253 } } [1/7/2022, 11:19:36 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '13.251.222.7', remotePort: 32100, response: { responseCode: 254 } } [1/7/2022, 11:19:36 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '18.197.212.165', remotePort: 32100, response: { responseCode: 254 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '34.235.4.153', remotePort: 32100, response: { responseCode: 253 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '18.223.127.200', remotePort: 32100, response: { responseCode: 253 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '13.251.222.7', remotePort: 32100, response: { responseCode: 254 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '18.197.212.165', remotePort: 32100, response: { responseCode: 0 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_ADDR - Got response { remoteAddress: '18.197.212.165', remotePort: 32100, response: { ip: 'WAN', port: 10736 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - PREFER_LOCAL - Got public IP, remember WAN:10736... [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_ADDR - Got response { remoteAddress: '18.197.212.165', remotePort: 32100, response: { ip: '0.0.0.0', port: 10736 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_ADDR - Got invalid ip address 0.0.0.0, ignoring response... [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '34.235.4.153', remotePort: 32100, response: { responseCode: 253 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '18.223.127.200', remotePort: 32100, response: { responseCode: 253 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '13.251.222.7', remotePort: 32100, response: { responseCode: 0 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_ADDR - Got response { remoteAddress: '13.251.222.7', remotePort: 32100, response: { ip: 'WAN', port: 10736 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - PREFER_LOCAL - Got public IP, remember WAN:10736... [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_ADDR - Got response { remoteAddress: '13.251.222.7', remotePort: 32100, response: { ip: '0.0.0.0', port: 10736 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_ADDR - Got invalid ip address 0.0.0.0, ignoring response... [1/7/2022, 11:19:52 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - PREFER_LOCAL - Try to connect to remote address WAN:10736... [1/7/2022, 11:19:52 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - CHECK_CAM - Connecting to host WAN on port 10736... [1/7/2022, 11:19:52 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - PREFER_LOCAL - Try to connect to remote address WAN:10736... [1/7/2022, 11:19:52 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - CHECK_CAM - Connecting to host WAN on port 10736... [1/7/2022, 11:19:52 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Sending start livestream command to station T8124P20213726C5 for device T8124P20213726C5 [1/7/2022, 11:19:52 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Using CMD_DOORBELL_SET_PAYLOAD (solo cams) for station T8124P20213726C5 (main_sw_version: 1.0.7.6) [1/7/2022, 11:20:01 AM] [EufySecurity-1.1.1-beta.14] INFO: Stopping session with id: 1c1e4031-b874-4966-b69f-76faf3ee965e [1/7/2022, 11:20:01 AM] [EufySecurity-1.1.1-beta.14] INFO: No session to stop. [1/7/2022, 11:20:07 AM] [EufySecurity-1.1.1-beta.14] WARN: Station T8124P20213726C5 - Tried all hosts, no connection could be established [1/7/2022, 11:20:07 AM] [EufySecurity-1.1.1-beta.14] INFO: Timeout connecting to station T8124P20213726C5 [1/7/2022, 11:20:07 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Schedule reconnect to station T8124P20213726C5... { delay: 10000 }

schliemann commented 2 years ago

Hmm. And what did you see in your homekit? No stream at all I presume.

Looks like you never got a connection back since you received the "Tried all hosts, no connection could be established" which comes from here:

https://github.com/bropat/eufy-security-client/blob/f327cfe4b42a84544823deb7b85c224272df6e75/src/p2p/session.ts#L338

paqpaqpaq commented 2 years ago

Hmm. And what did you see in your homekit? No stream at all I presume.

Looks like you never got a connection back since you received the "Tried all hosts, no connection could be established" which comes from here:

https://github.com/bropat/eufy-security-client/blob/f327cfe4b42a84544823deb7b85c224272df6e75/src/p2p/session.ts#L338

correct

From my Router's log: udp 192.168.108.45:35021 15.197.133.89:8006 ASSURED
udp 192.168.108.34:62796 157.240.201.17:443 ASSURED
udp 192.168.108.46:50531 8.8.8.8:53 ASSURED
udp 192.168.108.45:20759 18.197.212.165:32100 ASSURED
udp 192.168.108.34:52572 31.13.64.52:443 ASSURED
udp 192.168.108.23:54321 161.117.53.83:8053 ASSURED
udp 192.168.108.34:58416 157.240.201.63:443 ASSURED
udp 192.168.108.45:11073 18.197.212.165:32100 ASSURED
udp 192.168.108.235:35716 34.235.4.153:32100 ASSURED
udp 192.168.108.22:5060 185.19.239.69:5060 ASSURED
udp 192.168.108.235:35716 54.223.148.206:32100 UNREPLIED
udp 192.168.108.45:11073 54.223.148.206:32100 UNREPLIED
udp 192.168.108.45:20759 54.223.148.206:32100 UNREPLIED
udp 192.168.108.45:53777 8.8.4.4:53 UNREPLIED
udp 192.168.108.45:20759 54.223.148.206:32102 UNREPLIED
udp 192.168.108.45:20759 18.197.212.165:32102 UNREPLIED
udp 192.168.108.45:20759 18.197.212.165:32101 UNREPLIED
udp 192.168.108.45:20759 54.223.148.206:32101 UNREPLIED
udp 192.168.108.45:20759 13.251.222.7:32102 UNREPLIED
udp 192.168.108.45:53777 8.8.8.8:53 UNREPLIED
udp 192.168.108.45:20759 13.251.222.7:32101 UNREPLIED

.45 is the eufy cam .235 is the HB server

schliemann commented 2 years ago

Not quite sure what this means? Seems like a network issue then.

paqpaqpaq commented 2 years ago

@schliemann Nah, the eufy app itself works flawlessly

I have a different output from the logs at other times. And it does often connect to a host and then simply times out.

schliemann commented 2 years ago

If you can get a connection through at some point I would like to see the logs.

paqpaqpaq commented 2 years ago

Here:

[1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_ADDR - Got response { remoteAddress: '18.197.212.165', remotePort: 32100, response: { ip: 'WAN', port: 10736 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - PREFER_LOCAL - Got public IP, remember WAN:10736... [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_ADDR - Got response { remoteAddress: '18.197.212.165', remotePort: 32100, response: { ip: '0.0.0.0', port: 10736 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_ADDR - Got invalid ip address 0.0.0.0, ignoring response... [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_RESP - Got response { remoteAddress: '34.235.4.153', remotePort: 32100, response: { responseCode: 253 } }

and here:

[1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_ADDR - Got response { remoteAddress: '13.251.222.7', remotePort: 32100, response: { ip: 'WAN', port: 10736 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - PREFER_LOCAL - Got public IP, remember WAN:10736... [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_ADDR - Got response { remoteAddress: '13.251.222.7', remotePort: 32100, response: { ip: '0.0.0.0', port: 10736 } } [1/7/2022, 11:19:37 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - LOOKUP_ADDR - Got invalid ip address 0.0.0.0, ignoring response... [1/7/2022, 11:19:52 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - PREFER_LOCAL - Try to connect to remote address WAN:10736... [1/7/2022, 11:19:52 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - CHECK_CAM - Connecting to host WAN on port 10736... [1/7/2022, 11:19:52 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - PREFER_LOCAL - Try to connect to remote address WAN:10736... [1/7/2022, 11:19:52 AM] [EufySecurity-1.1.1-beta.14] DEBUG: Station T8124P20213726C5 - CHECK_CAM - Connecting to host WAN on port 10736...

"WAN" is my WAN IP address.

Also, sometimes it simply works. So to me there is no need to suspect my router(settings) And via the eufy app it works every single time. (and really fast too)

schliemann commented 2 years ago

You can try to create an issue on the client library github. Don't think I can help anymore. Perhaps if you share your device with bropat he can figure something out.

paqpaqpaq commented 2 years ago

You can try to create an issue on the client library github. Don't think I can help anymore. Perhaps if you share your device with bropat he can figure something out.

I so another topic already on the S40 to have this device added.

schliemann commented 2 years ago

https://github.com/bropat/eufy-security-client/issues/74

schliemann commented 2 years ago

Indeed that issue describes a lot of connects and disconnects. I'm sure Bropat would appreciate it if you shared your device with him at some point.

schliemann commented 2 years ago

@paqpaqpaq Please reach out to him. Otherwise I don't see a fix for your issue.

schliemann commented 2 years ago

@paqpaqpaq I'm closing this issue.

paqpaqpaq commented 2 years ago

I understand. I'll see where the beta will take us :)

schliemann commented 2 years ago

The beta won't fix this if the issue is in the client library.