fuatakgun / eufy_security

Home Assistant integration to manage Eufy Security devices as cameras, home base stations, doorbells, motion and contact sensors.
877 stars 73 forks source link

Cameras last image is not loading in HA. And force_sync is not working. #87

Closed MechEng70 closed 2 years ago

MechEng70 commented 2 years ago

Please check Services, Known Bug / Issues and Troubleshooting over here first: https://github.com/fuatakgun/eufy_security/blob/master/README.md

Describe the bug A clear and concise description of what the bug is. HA images are not refreshing with the last image. Attempted to use force_sync and images did not update.

Expected behavior Expect the images to be loaded whenever motion or person is detected or change is detected.

**Hardware Information about Home Assistant HA core-2021.10.5 supervisor-2021.10.0

**Hardware Information about Cameras

2021-10-18 07:55:36 DEBUG (MainThread) [custom_components.eufy_security] eufy_security - on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'property changed', 'serialNumber': 'T8XXX', 'name': 'pictureUrl', 'value': 'https://zhixin-security-pr.s3.us-west-2.amazonaws.com/thumb/2021/10/18/station/T8XXXX/jWeTGjSQfQBQRbFU./camera01_20211017223550.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJYLV2KOLW6PU4FSA%2F20211018%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20211018T145535Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=c1d3b7899b68e', 'timestamp': 1634535350000}}

fuatakgun commented 2 years ago

is this happening all the time? sometimes, this is happening to me that, pictureUrl is not valid. but happens very rarely.

MechEng70 commented 2 years ago

yes, all the time. The only way to get it to refresh is to restart the HA server.

Note that this seemed to be working until all the updates from last week. Not sure if that helps.

MechEng70 commented 2 years ago

Also, when I click on the image in HA, I immediately get an error: Login attempt or request with invalid authentication from XX.XX.XX.XX (XX.XX.XX.XX). See the log for details.

LOG:

Logger: homeassistant.components.camera Source: components/camera/init.py:693 Integration: Camera (documentation, issues) First occurred: October 17, 2021, 1:51:15 PM (5 occurrences) Last logged: 8:19:06 AM

Error requesting stream: camera.south does not support play stream service Error requesting stream: camera.north does not support play stream service Error requesting stream: camera.driveway does not support play stream service

However it was working when I originally installed and configured it.

MechEng70 commented 2 years ago

Been doing a little more testing and here is what is kind of working:

Setting on Eufy Secutiry Configuration:

The S40 (T8124) cameras are the only ones throwing the error about the login and not updating in HA. The eufyCam E (T8112) and Doorbell (T8200) are not throwing the error.

fuatakgun commented 2 years ago

happy to debug the cameras if you can share with me. RTSP ones should work, this is interesting.

Analzyze: this is on purpose (joking) thanks for warning

MechEng70 commented 2 years ago

Happy to share.
LOL on Analzyze.

How to proceed?

fuatakgun commented 2 years ago

follow readme over here / step 6 (the one after 5, not the last 6 :) ) : https://github.com/fuatakgun/eufy_security/blob/master/README.md#3-troubleshooting

fuatakgun commented 2 years ago

updating my local dev instance for last couple of hours (i don't know why :) ) . I will probably continue tomorrow (in EU timezone)

MechEng70 commented 2 years ago

ok. I changed the IP to 0.0.0.0 and it seems to be more responsive. Also updated to the latest that was just released.

fuatakgun commented 2 years ago

what about streams?

fuatakgun commented 2 years ago

can you please share with admin rights?

MechEng70 commented 2 years ago

doorbell - works

S40 north - get the login error. (Login attempt or request with invalid authentication from 65.218.199.99 (65.218.199.99). See the log for details.) South - no error but no stream. driveway - get the login error and no stream

Eufy CAM E Living Room - works Backyard - get the login error and no stream Master - get the login error and no stream

MechEng70 commented 2 years ago

can you please share with admin rights?

were you able to look?

MechEng70 commented 2 years ago

Not sure if it is related, the sensors are almost never updated with a status.

Screenshot_20211024-173044

fuatakgun commented 2 years ago

can you confirm if your models are supported here? https://github.com/bropat/eufy-security-client/#known-working-devices

MechEng70 commented 2 years ago

Yes. The CAM E and S40 are on there.

fuatakgun commented 2 years ago

Can you share these cameras with admin rights?

And please summarize remaining issues? I am getting old :-) to keep up with all moving stuff

MechEng70 commented 2 years ago

All are shared with admin rights. The doorbell is on the working list too.

The images are not updated in HA. The motion and person detection is not indicated in HA. The backyard (CAM E) one seems to indicate more than the north, south and driveways (solo e40)..

fuatakgun commented 2 years ago

your camera notification settings should be like full effect, include thumbnail, so you will receive up to date event pictures. your security settings should be enabled to receive push notifications for motion/sound as integration totally relies on push notifications.

backyard had already enabled with these, that is because you receive more :)

MechEng70 commented 2 years ago

Totally confused. Did you update them?

Backyard is the only one not set to Full Effect.

fuatakgun commented 2 years ago

Why are you confused, elaborate please? you can go ahead and check if I had enabled them, but do not assume if I did not inform you. I am trying to be sensitive while playing with other people's devices. If i have to enable, I let the owner, otherwise, I ask the owner to do.

MechEng70 commented 2 years ago

No worries. And understand. Appreciate the help.

All the cameras notifications are set to Full Effect. The only on that isn't is the backyard. It is set to Most Efficient. I will change the backyard to Full Effect.

As for the security setting being enabled to receive... Where is that set?

fuatakgun commented 2 years ago

Sending screenshots by order, do not forget to save at the end

Screenshot_2021-11-06-15-33-06-316_com.oceanwing.battery.cam~2.jpg

Screenshot_2021-11-06-15-33-13-177_com.oceanwing.battery.cam~2.jpg

Screenshot_2021-11-06-15-33-29-425_com.oceanwing.battery.cam~2.jpg

MechEng70 commented 2 years ago

I'll test it with the different notification settings to see which will work best.

fuatakgun commented 2 years ago

You need to enable notifications for all guard modes which needs to update events in HA

MechEng70 commented 2 years ago

Got it. Just saw your images. Thank you!!!

fuatakgun commented 2 years ago

Welcome, please resolve if it works

MechEng70 commented 2 years ago

Last image is loading. Other issue still not resolved is that the sensors are not updating.

fuatakgun commented 2 years ago

Are you gonna open a issue for sensors?

MechEng70 commented 2 years ago

Yes. I am traveling today and will likely do it tomorrow. It's no rush. Thank you again.