Closed njuart closed 2 years ago
Did you check this Common Issues pages ?
Hi!
Could you enable detailed logging in the advanced settings and post another log output? Maybe it would help if you post your json config also (without the personal information of course).
Sure, hope it helps. So flow of this log was the following:
And this flow may be really sporadic, sometimes I can't get any snapshot at all, and stream stops working. Sometimes turning on / off camera helps, but often not. Also restarting HB helps sometimes.
Attached log and config. Thx
Hey @njuart
I think I traced down the error. It's a minor logic trap in the livestream handling, which has unfortunately this effect. I'm currently testing a new version, where this is hopefully fixed.
Until then:
useCachedLocalLivestream
this should not happenSorry for the inconvenience.
Hey @njuart
I think I traced down the error. It's a minor logic trap in the livestream handling, which has unfortunately this effect.
I'm currently testing a new version, where this is hopefully fixed.
Until then:
in the latest beta (2.0.1-beta.1) this effect is mitigated. It will still break the stream one time, but It will recover the next time you start the stream (or a snapshot request)
If you don't use the option
useCachedLocalLivestream
this should not happenSorry for the inconvenience.
Cool, let me know if you need some help with testing. I use useCachedLocalLivestream
btw. Thx for the efforts!
Just added a fix in #53
Please wait until the PR is merged.
Thx, checked new beta. Still not every motion notification has a snapshot in it, but sometimes it does, can't follow why. And what also noticed if I get motion notification without snapshot, when I open Home app, I see black screen in Camera viewer, and it takes a couple of tries to retrieve snapshot or I even need to open a stream to have snapshot updated and I see this in logs:
It looks like there is some kind of timeout in getting snapshot, and if during this time snapshot is not retrieved it breaks the whole flow.
I'm working on a new way to retrieve the snapshots faster. Hopefully this will solve your issue too.
See #33 for reference.
Anyway: what beta version exactly did you use? 2.0.1-beta.2 is just a few hours out and you've already cumulated well over 150 stream sessions according to your log. Not that this is impossible, but I'd like to get to know your use case a little bit better.
Yup, using latest 2.0.1-beta.2. I basically just turned on my Indoor 2k and that's it =)) It's just working and reacts to motion, sometimes I'm checking live stream from Home app. Usually most of the time when I'm at home I keep camera turned off, as there is no actual need. Sometimes I can turn it on to check how's kid is doing for some time.
Hey @njuart
Added new snapshot handling in 2.0.1-beta.5
Could you check if this helps with your problems?
Hey man @thieren 🤝 You're ninja, played a bit with new beta, generally it became way more stable at a first sight, will share what I've noticed so far. So:
Pros:
Cons:
Use enhanced Snapshot handling
it stays unchecked after HB restart, but in config I see "forcerefreshsnap": true
[6/4/2022, 10:13:37 PM] [EufySecurity-2.0.1-beta.6] ERROR: Eufy camera snapshot request timed out
[Eufy camera 2ADF] Snapshot request handler provided empty image buffer!
Also, wrote you in Discord just in case. Thx for amazing work!
Hi @njuart
we've already been over this in discord but for good measure and all the people looking for the same answers:
when I check this option Use enhanced Snapshot handling it stays unchecked after HB restart, but in config I see "forcerefreshsnap": true
This is a caching issue with the homebridge-ui. Just empty your browser cache for homebridge-ui and you should be good to go. (see also https://github.com/homebridge/plugin-ui-utils/blob/master/DEVELOPMENT.md for reference)
stream itself became slower and less responsive, like with delay, before it was almost live, I mean I saw my moves almost immediately in viewer
This seems to have something to do that your stream has a higher resolution now. Still working on that, but the slowness of the stream will be due to the higher requirements on your hardware. If you manually revert to 640x480 via settings it should be as before.
when I turn camera on and go to Home app, it works like a charm, snapshots start to update almost immediately with 10-20 seconds interval, BUT as soon as I make any motion and get notification with snapshot (which is somehow bigger and with worse quality), snapshot update flow fails, it stops updating snapshots with interval, and it updates only if I make another motion or start stream and I see this in logs
Should be fixed in latest beta. Let me know.
Hey @njuart
since you didn't had any more problems with this, I'll close the issue. If something new comes up, please reopen.
What happened?
Hi, after 2.0 update I've started to notice that there is a problem with catching snapshots. It works like 1 out 5 times. And if it was not updated it breaks the whole flow and stream becomes unresponsive. Attached some log snippet. I also have all the options active in my Indoor 2K camera config (Unbridge Camera, Force Refresh Snapshot, Improve livestream caching, Use RTSP). Thx in advance.
Device Type
Indoor Camera (Supported)
Plugin Version
v2.0.x (Supported)
HomeBridge Version
v1.4.x (Supported)
NodeJS Version
v16 (Supported)
Operating System
Raspbian 10+ (Supported)
Relevant log output