homebridge-eufy-security / plugin

Homebridge plugin to control certain Eufy Security devices
Apache License 2.0
165 stars 24 forks source link

[Bug]: Plugin slows down Homebridge #152

Closed cbwilliamsnh closed 10 months ago

cbwilliamsnh commented 1 year ago

What happened?

A bug happened!

Device Type

Indoor Camera (Supported)

Plugin Version

v2.0.x (Supported)

HomeBridge Version

v1.4.x (Supported)

NodeJS Version

v16 (Supported)

Operating System

Mac OS X 11+ (Supported)

Relevant log output

[8/29/2022, 9:38:18 AM] [homebridge-eufy-security] This plugin slows down Homebridge. The write handler for the characteristic 'Selected RTP Stream Configuration' on the accessory 'Outdoor - Right Side 7DDF' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.
github-actions[bot] commented 1 year ago

Did you check this Common Issues pages ?

thieren commented 1 year ago

Hi @cbwilliamsnh

Can you provide additional info?

  1. Does streaming work (delayed obviously)
  2. Can you enable debug messages for the plugin and provide the log output when you try to stream? From start to finish.
  3. Are you on 2.0.1 or 2.1.0-rc?

Thx!

cbwilliamsnh commented 1 year ago

When I enabled debug I was able to see one live stream and then saw two exceptions (that I wasn't able to capture due to log scrolling) and then I couldn't see any live streams in the Home app (still can see every camera stream in the Dufy security app).

Now I'm seeing the following in the log when trying to view a stream in the Home app:

[8/29/2022, 2:04:40 PM] [EufySecurity-2.0.1] ERROR: Local livestream didn't start in time. Abort livestream request.
[8/29/2022, 2:04:40 PM] [EufySecurity-2.0.1] ERROR: Outdoor - Left Side Unable to start the livestream: no started livestream found
[8/29/2022, 2:04:40 PM] [EufySecurity-2.0.1] INFO:  Outdoor - Left Side Starting video stream: 640x480, 30 fps, 299 kbps  (AAC-eld)
TypeError: ffmpegInput is not iterable
    at StreamingDelegate.startStream (/usr/local/lib/node_modules/homebridge-eufy-security/src/accessories/streamingDelegate.ts:676:20)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

And I'm on 2.0.1-rc5

And I'm still not able to consistently view camera streams in the Home app but never have an issue in the eufy Security app.

I have six eufy 2C cameras + eufy doorbell camera. three cameras (outdoor) are connected to one Homebase2 and the three indoor cameras + the doorbell camera are connected to the other Homebase2 (did it this way because HKSV has a 4 camera/Homebase2 limit). All have the latest firmware. Network is two Amplifi Alien Routers (one configured as a mesh point) with Ethernet backhaul. Spectrum gigabit ethernet service.

cbwilliamsnh commented 1 year ago

I'm also happy to install the beta 2.2.0 version if that makes sense.

thieren commented 1 year ago

I don't think the beta would help here since it seems your livestream can't start. To see why this is, I'd need your full log (log-lib.log and eufy-log.log files from the plugin). Can you send me these via discord or a cloud service?

cbwilliamsnh commented 1 year ago

And where do I find the logs?

Thank you, Chuck

-- On Aug 29, 2022, 3:23 PM -0400, thieren @.***>, wrote:

I don't think the beta would help here since it seems your livestream can't start. To see why this is, I'd need your full log (log-lib.log and eufy-log.log files from the plugin). Can you send me these via discord or a cloud service? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

thieren commented 1 year ago

There is an option to download the logs in the configuration ui of the plugin: https://github.com/homebridge-eufy-security/plugin/wiki/Basic-Troubleshooting#enable-logging

cbwilliamsnh commented 1 year ago

I will get these to you later today.

Thank you, Chuck

-- On Aug 30, 2022, 12:58 AM -0400, thieren @.***>, wrote:

There is an option to download the logs in the configuration ui of the plugin: https://github.com/homebridge-eufy-security/plugin/wiki/Basic-Troubleshooting#enable-logging — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

cbwilliamsnh commented 1 year ago

@thieren what's your Discord id?

I removed the plugin and all the HK devices and now I only see the doorbell camera to be added back into HK and then reinstalled the plugin (reading the installation instructions this time! So I now have a dedicated admin account for the plug-in!)

I have not yet added back in the two Homebase2 bridges as they say I need to press the reset button which I assume will also reset all the connected camera which are install where they can't be reached without a ladder to take down and re-sync to the Homebase2, so I haven't done that yet. Is this what's preventing me from adding the other six cameras back into HK?

cbwilliamsnh commented 1 year ago

I'm now running all six eufy 2C cameras in bridged mode as this appears to be the only way I can get them into HK right now.

Attached are current log files (running v2.1.0-rc5).

homebridge-eufy-security-logs.zip

thieren commented 1 year ago

I'm now running all six eufy 2C cameras in bridged mode as this appears to be the only way I can get them into HK right now.

If you set the m to unbridged you should see a setup code in the logs on startup. With this you should be able to see them in HK. Or simply said: If you can see them in the eufy app with the account you used with the plugin, you should be able to connect them in HK.

In Discord you can find me in the channel for this plugin. An invitation link can be found via the 'new issue' page. My id is therein#9191

I'll have a look at the logs later. 😉

thieren commented 1 year ago

As already discussed on discord this seems to be an issue of eufy-security-client.

cbwilliamsnh commented 1 year ago

Yes, working with bropat on the issue there.

lenoxys commented 10 months ago

should be fixed