Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting Eufy Floodlight Camera (T8422) #70

Closed
nephung opened this issue Oct 4, 2021 · 81 comments
Closed

Supporting Eufy Floodlight Camera (T8422) #70

nephung opened this issue Oct 4, 2021 · 81 comments
Assignees

Comments

@nephung
Copy link

nephung commented Oct 4, 2021

Have set up the EUFY Floodlight camera on using the eufy security integration, however not able to see live video on the Lovelace card. I only seem to get still images that refresh every now and then

@fuatakgun
Copy link
Owner

You should add your camera entity to lovelace and click on it to see live stream. Example below;

type: picture-entity
entity: camera.entrance_camera

@nephung
Copy link
Author

nephung commented Oct 4, 2021

I have, When i start the stream i get the error in the logs:
Logger: homeassistant.components.camera
Source: components/camera/init.py:692
Integration: Camera (documentation, issues)
First occurred: 5:44:12 PM (1 occurrences)
Last logged: 5:44:12 PM

Error requesting stream: camera.garage does not support play stream service

@fuatakgun
Copy link
Owner

What about logs from eufy security ws add on?

@nephung
Copy link
Author

nephung commented Oct 4, 2021

src/lib/server.ts:46:34

• server.ts:98 receiveMessage
src/lib/server.ts:98:58
• server.ts:57
src/lib/server.ts:57:53
• events.js:375 emit
events.js:375:28
• websocket.js:970 receiverOnMessage
node_modules/ws/lib/websocket.js:970:20
• events.js:375 emit
events.js:375:28
• receiver.js:517 dataMessage
node_modules/ws/lib/receiver.js:517:14
• receiver.js:435 getData
node_modules/ws/lib/receiver.js:435:17
2021-10-04 06:47:14.736 ERROR Message error
NotConnectedError No p2p connection to station T8420N1020351411
details:
{
name: 'NotConnectedError'
}
error stack:
• station.ts:2337 startLivestream
node_modules/eufy-security-client/src/http/station.ts:2337:19
• message_handler.ts:100 handle
src/lib/device/message_handler.ts:100:39
• server.ts:46 device
src/lib/server.ts:46:34
• server.ts:98 receiveMessage
src/lib/server.ts:98:58
• server.ts:57
src/lib/server.ts:57:53
• events.js:375 emit
events.js:375:28
• websocket.js:970 receiverOnMessage
node_modules/ws/lib/websocket.js:970:20
• events.js:375 emit
events.js:375:28
• receiver.js:517 dataMessage
node_modules/ws/lib/receiver.js:517:14
• receiver.js:435 getData
node_modules/ws/lib/receiver.js:435:17
2021-10-04 06:47:16.101 ERROR Message error
NotConnectedError No p2p connection to station T8420N1020351411
details:
{
name: 'NotConnectedError'
}
error stack:
• station.ts:2337 startLivestream
node_modules/eufy-security-client/src/http/station.ts:2337:19
• message_handler.ts:100 handle
src/lib/device/message_handler.ts:100:39
• server.ts:46 device
src/lib/server.ts:46:34
• server.ts:98 receiveMessage
src/lib/server.ts:98:58
• server.ts:57
src/lib/server.ts:57:53
• events.js:375 emit
events.js:375:28
• websocket.js:970 receiverOnMessage
node_modules/ws/lib/websocket.js:970:20
• events.js:375 emit
events.js:375:28
• receiver.js:517 dataMessage
node_modules/ws/lib/receiver.js:517:14
• receiver.js:435 getData
node_modules/ws/lib/receiver.js:435:17

@fuatakgun
Copy link
Owner

Could you please restart add on, wait couple of seconds and reload the integration and try again?

Add on is claiming that it is not able to connect home base, it might get disconnected or you have a specific network setup blocking docker to access home base?

@nephung
Copy link
Author

nephung commented Oct 4, 2021

I've tried to restart the addon, restart the integration, restart HA
I've reconnected the Floodlight to the same Wifi as HA,

This flood light does not have a home base but is a separate camera.
Thanks for your help
Log below:
2021-10-04 07:09:29.744 INFO Eufy Security server listening on port 3000
2021-10-04 07:09:33.021 INFO Connected to station T8420N1020351411 on host 192.168.1.121 and port 20554
2021-10-04 07:09:33.678 INFO Push notification connection successfully established
2021-10-04 07:11:49.015 INFO Connected to station T8420N1020351411 on host 192.168.1.121 and port 19200
2021-10-04 07:12:51.343 INFO Client disconnected with ip: ::ffff:172.30.32.1 port: 36986 code: 1006 reason:
2021-10-04 07:12:51.345 INFO Client disconnected with ip: ::ffff:172.30.32.1 port: 37556 code: 1006 reason:
2021-10-04 07:12:51.350 INFO Client disconnected with ip: ::ffff:172.30.32.1 port: 37560 code: 1006 reason:
2021-10-04 07:13:09.682 INFO Connected to station T8420N1020351411 on host 192.168.1.121 and port 11246
2021-10-04 07:15:55.216 ERROR Message error
NotConnectedError No p2p connection to station T8420N1020351411
details:
{
name: 'NotConnectedError'
}
error stack:
• station.ts:2337 startLivestream
node_modules/eufy-security-client/src/http/station.ts:2337:19
• message_handler.ts:100 handle
src/lib/device/message_handler.ts:100:39
• server.ts:46 device
src/lib/server.ts:46:34
• server.ts:98 receiveMessage
src/lib/server.ts:98:58
• server.ts:57
src/lib/server.ts:57:53
• events.js:375 emit
events.js:375:28
• websocket.js:970 receiverOnMessage
node_modules/ws/lib/websocket.js:970:20
• events.js:375 emit
events.js:375:28
• receiver.js:517 dataMessage
node_modules/ws/lib/receiver.js:517:14
• receiver.js:435 getData
node_modules/ws/lib/receiver.js:435:17

@fuatakgun
Copy link
Owner

Can you create a new account and test with it? There seems to be something wrong about push notification access.

@nephung
Copy link
Author

nephung commented Oct 7, 2021

Hi there, I have tried with another account. My RTSP capable cameras work fine, however this Floodlight which does not support RTSP still only shows the latest Image but no video.

@rpitera
Copy link

rpitera commented Oct 7, 2021

I'd settle for the latest image. I'm not even getting that.

@fuatakgun
Copy link
Owner

Have you enabled picture in push notifications through eufy app?

@rpitera
Copy link

rpitera commented Oct 7, 2021

Have you enabled picture in push notifications through eufy app?

I'll check and get back to you. Thanks; this seems to be the only issue I've had so far in moving from ioBroker to your integration.

@fuatakgun
Copy link
Owner

to have video with native RTSP supporting cameras;

  • you have to add secondary add on rtsp server add on from readme file
  • enable add on based p2p streaming
  • call camera.turn_on service and then click camera image (couple of seconds later of service call)

@rpitera
Copy link

rpitera commented Oct 7, 2021

Have you enabled picture in push notifications through eufy app?

I have it enabled for this camera. Restarted the add on. Reloaded the integration. Went out back and triggered the camera. Checked the notifications on my tablet and both included snapshots. Went back to cam in HA and shift-refreshed the page. Still getting no image on the floodlight cam.

screen cap

Camera in question is "Patio" a T8422 Floodlight Cam. I'm using the same picture entity card as with the others in the image - the Garage and the one labeled "new eufycam component" are both eufycam 2s, connected to the home base. All of the home base cams are working properly.

It doesn't seem to be showing a change in motion or person detection either as none of my triggers above registered. But when I change the alarm state from Home to Disarmed, the alarm control panel sensor entity responds immediately and shows the proper state changes. So there's at least SOME communication going on.

@fuatakgun
Copy link
Owner

following README file, you can share the camera with me and i can debug it.

@rpitera
Copy link

rpitera commented Oct 7, 2021

That's really nice of you to offer! I've sent out the invite to your US address and have shared the home base and all the cams as well as the Patio cam that's in question. Take your time; I really do appreciate your offering to debug. Let me know if there's anything else I can do to make your task easier. For me, being able to stream is secondary to getting that last event thumbnail and getting state updates when a new event takes place.

@DivanX10
Copy link

DivanX10 commented Oct 7, 2021

У меня тоже часто отваливается после того как я управляю камерой через PTZ. Помогает только перезагрузка аддона.

2021-10-07 23:15:00.454  INFO Eufy Security server listening on port 3000 
2021-10-07 23:15:01.480  INFO Connected to station T8410XXXXXXXX on host 192.168.1.30 and port 26364 
2021-10-07 23:15:01.885  INFO Push notification connection successfully established 
2021-10-07 23:19:30.612  ERROR Message error 
 NotConnectedError  No p2p connection to station T8410XXXXXXXX
details:
{
  name: 'NotConnectedError'
}
error stack:
• station.ts:969 panAndTilt
    node_modules/eufy-security-client/src/http/station.ts:969:19
• message_handler.ts:167 handle
    src/lib/device/message_handler.ts:167:35
• server.ts:46 device
    src/lib/server.ts:46:34
• server.ts:98 receiveMessage
    src/lib/server.ts:98:58
• server.ts:57 <anonymous>
    src/lib/server.ts:57:53
• events.js:375 emit
    events.js:375:28
• websocket.js:970 receiverOnMessage
    node_modules/ws/lib/websocket.js:970:20
• events.js:375 emit
    events.js:375:28
• receiver.js:517 dataMessage
    node_modules/ws/lib/receiver.js:517:14
• receiver.js:435 getData
    node_modules/ws/lib/receiver.js:435:17
 NotConnectedError  No p2p connection to station T8410XXXXXXXX
details:
{
  name: 'NotConnectedError'
}
error stack:
• station.ts:969 panAndTilt
    node_modules/eufy-security-client/src/http/station.ts:969:19
• message_handler.ts:167 handle
    src/lib/device/message_handler.ts:167:35
• server.ts:46 device
    src/lib/server.ts:46:34
• server.ts:98 receiveMessage
    src/lib/server.ts:98:58
• server.ts:57 <anonymous>
    src/lib/server.ts:57:53
• events.js:375 emit
    events.js:375:28
• websocket.js:970 receiverOnMessage
    node_modules/ws/lib/websocket.js:970:20
• events.js:375 emit
    events.js:375:28
• receiver.js:517 dataMessage
    node_modules/ws/lib/receiver.js:517:14
• receiver.js:435 getData
    node_modules/ws/lib/receiver.js:435:17
2021-10-07 23:24:06.635  ERROR Message error 

@fuatakgun
Copy link
Owner

I have tried to resolve it, but it is apparently beyond my skills.

created another issue on docker owner: bropat/eufy-security-client#50

@rpitera
Copy link

rpitera commented Oct 10, 2021

If it stumps you then I don't feel so bad! 😝 I was able to work it with ioBroker with the eufy security plugin, but then ioBroker started going south since their new update and I disabled it. I'll wait to see if you get anywhere with the issue as I feel like your approach is better overall and more integrated to HA. I appreciate you trying and I'll bet you get it worked out!

@fuatakgun
Copy link
Owner

@rpitera , we need your help here: bropat/eufy-security-client#50

@rpitera
Copy link

rpitera commented Oct 11, 2021

Responded on bropat's issue. Glad to help in any way I can.

@coder999
Copy link

Any update on this one? Would love to get this working in my HA

@fuatakgun
Copy link
Owner

please track this issue about update: #59

@yieldhog
Copy link

yieldhog commented Nov 6, 2021

Hi -- I'm having the same issue. Bought a floodlight (eufy Floodlight Cam 2, 2K [T8424]), followed your directions and am able to see it within Home Assistant (2021.10.7). Unfortunately video is not working, appears I have the latest updates of your integration. Is there any way I can help test as well?

@fuatakgun
Copy link
Owner

I will publish the new version of integration and add on in couple of days, please update and test. I will also update main tracker about new version

@yieldhog
Copy link

yieldhog commented Nov 6, 2021

Thanks much! I setup logging to debug and happy to share account with you if its helpful at all, just let me know I'll keep an eye out for new version. Awesome add-on.

@fuatakgun
Copy link
Owner

Makes sense, please share following README and i can test it before releasing new version

@fuatakgun
Copy link
Owner

I believe you had already shared your camera called garage apparently, it is not the same model (T8422 vs T8424).

@bropat added support for T8422, you should first create a similar issue like this for T8424: bropat/eufy-security-client#50

@fuatakgun
Copy link
Owner

@rpitera , can you share your with me so I can test locally with new HA integration?

@fuatakgun
Copy link
Owner

@coder999 , what is your status?

@rpitera , if you haven't shared your camera yet, please do, i will take a look tomorrow's

@nephung
Copy link
Author

nephung commented Nov 14, 2021

Still not able to show the stream. I do get the still image though. Have shared with you

@fuatakgun
Copy link
Owner

Assuming it's name is garage, please check readme to find sharing instructions.

I have one account spared for US and one for EU, more information on readme file

@nephung
Copy link
Author

nephung commented Nov 14, 2021

Yep - neither US or EU though. Aus

@fuatakgun
Copy link
Owner

i cannot accept inter-regional invitations, eufy is restricting this. it would be very nice if you can setup an email account including your camera in it and share it with me, like someone did for US account.

i can use it for debugging and let you know.

@rpitera
Copy link

rpitera commented Nov 14, 2021

@rpitera , if you haven't shared your camera yet, please do, i will take a look tomorrow's

Already set up and shared out. Thanks. Sorry this is so frustrating, but it's worth it. I've tried so many different approaches and yours is the best. We'll get there!

@yieldhog
Copy link

@fuatakgun I send you an invite to US for my 'Garage' .. I've tried a few things (rebooting, uninstalling, etc) doesn't appear to be able to stream but does show the last imagine. Happy to help you troubleshoot or post logs. Thank you

@yieldhog
Copy link

@rpitera fyi, you inadvertently posted your username/password combo in your log paste [rtsp url]

@yieldhog
Copy link

I have the following in my configuration.yaml (latest core version of Home Assistant) and noticed I get the following error when I try to use the start_livestream service as follows. Interestingly, the UI doesn't allow me to select a device/entity for start_livestream but does allow me if I start RTSP or P2P livestream.

service: eufy_security.start_livestream
target:
  entity_id: camera.garage

error received (repeatedly)

ERROR (Thread-160) [custom_components.eufy_security] eufy_security Garage - video ffmpeg error - ffmpeg is not running

my configuration.yaml

ffmpeg:
  ffmpeg_bin: /usr/bin/ffmpeg

@rpitera
Copy link

rpitera commented Nov 15, 2021

@rpitera fyi, you inadvertently posted your username/password combo in your log paste [rtsp url]

Thanks, @yieldhog. Should have been paying more attention! Went back and edited to USERNAME:PW. I owe you one!

@fuatakgun
Copy link
Owner

fuatakgun commented Nov 15, 2021

hey, I see that T8424 is not listed as supported camera type, we asked only 8422 here: bropat/eufy-security-client#50

8424 issue is still open here: bropat/eufy-security-client#60

I have tested 8422 earlier with @coder999 support and it is supported now.

@fuatakgun fuatakgun changed the title Supporting Eufy Floodlight Camera (T8424) Supporting Eufy Floodlight Camera (T8422) Nov 15, 2021
@rpitera
Copy link

rpitera commented Nov 16, 2021

FYI - I've been updating each time I see one come through, but I'm still not seeing any thumbnail on the 8422.

@rpitera
Copy link

rpitera commented Nov 16, 2021

Updated to 0.5.3 - same results. Have sensors for Patio but no thumbnail.

@coder999
Copy link

P2P streaming working for me - strong work @fuatakgun!

@bropat
Copy link

bropat commented Nov 17, 2021

@rpitera

FYI - I've been updating each time I see one come through, but I'm still not seeing any thumbnail on the 8422.

There is something strange on your device, as in the Eufy Cloud response the following attributes are completely missing:

  • cover_path
  • cover_time

On all other devices these attributes exist (also e.g. on another Floodlight T8424).

"Picture URL" is based on the cover_path attribute of the Eufy Cloud response. In your case this attribute is missing and therefore I cannot do anything here. I'm sorry.

@fuatakgun
Copy link
Owner

i confirm that pictureUrl exists for some other same model devices, agree with @bropat

@rpitera
Copy link

rpitera commented Nov 17, 2021

@rpitera

FYI - I've been updating each time I see one come through, but I'm still not seeing any thumbnail on the 8422.

There is something strange on your device, as in the Eufy Cloud response the following attributes are completely missing:

  • cover_path
  • cover_time

On all other devices these attributes exist (also e.g. on another Floodlight T8424).

"Picture URL" is based on the cover_path attribute of the Eufy Cloud response. In your case this attribute is missing and therefore I cannot do anything here. I'm sorry.

I wonder why this worked under ioBroker then... Maybe cause it exposed it via REST? I guess I'll have to go back to that method. I do appreciate you both trying and I'm glad that at least coder999 got his working.

@bropat
Copy link

bropat commented Nov 17, 2021

@rpitera Going back to ioBroker will not solve this problem...
I think as soon as the camera registers at least 1 event, these parameters will reappear.
Can you create an event? motion or person detected event?

@rpitera
Copy link

rpitera commented Nov 17, 2021

I'll go out and trigger it now to check! I'd much prefer to stay on this platform. Hang on, BRB.

@rpitera
Copy link

rpitera commented Nov 17, 2021

OK, so good news is that I do have a thumbnail now. Bad news is that after triggering it a second time (this time wearing a jacket cause it's cold out there!), I didn't get the new event until I restarted both the add on and then the integration. Also not seeing the state change on the motion or person detectors in history either.

But we're at least going in the right direction! Both your account and @fuatakgun are still active in case you want to look at the data or test anything.

@rpitera
Copy link

rpitera commented Nov 19, 2021

@fuatakgun @bropat

Well, here we are a couple of days later and the brand new 8422 that was working great has gone offline and refuses to re-connect to the network, just like the previous unit. And like before, everything else in that area connects just fine and even eufycams that are farther away form my router are still working without an issue.

Just for troubleshooting sake, I reconnected the floodlight to the AC cord provided with it and tried connecting with it a couple of feet from the router, with the same results. The app says it's connected right away but the cam itself blinks white for a couple of seconds more and then fails to red again. I suspect it might be something in the latest firmware update but can't be sure.

So I'm going to return it to Best Buy and get my money back. I'm done with the 8422 and will be looking for something else like maybe the new Wyze floodlight cam. I reinstalled an old Swann floodlight cam in the meantime and it's having no network issues in that exact same location. So I appreciate all the effort and I hope that I helped in some small part in the solution but I just wanted to let you know that you don't need to hold this issue open for me anymore.

My other eufycams are running solid and I'll stay on the platform but not going to use any of their floodlight cams anymore. Thanks again for your efforts to help!

@fuatakgun
Copy link
Owner

Sorry to hear that, it is weird that you are having these issues. At least, your remaining setup is well integrated into HA, right?

@rpitera
Copy link

rpitera commented Nov 19, 2021

Yeah, I mean I don't have any issues with getting thumbnail updates or sensors. I messed around with getting livestreams when I set it up the first time (it was a hit or miss affair and was kind of cumbersome), but I haven't really played with it since installing it again. I usually use the app but I'll probably see what's changed since the first time and give streaming another shot.

It is a weird set of circumstances though. The only things that changed were the firmware and giving access for testing. I've been leaning towards a firmware bug because I can't imagine that there was any commands/settings that could have caused this in testing things or else someone else would have mentioned it.

It's a real shame as when it WAS working, it caught a lot of activity. I had no idea how active the wildlife was in my fenced in suburban backyard. The raccoon population was having a party back there and it was freaking hilarious.

@rpitera
Copy link

rpitera commented Nov 19, 2021

Hey there is one thing you might be able to help me with; how do I get the patio devices/entities out of HA? Do I have to do it manually? I tried removing them from the core device registry and restarting but they seem to have come back. Even the first camera device that failed is still there, even though both have been removed from the app.

@fuatakgun
Copy link
Owner

Have you tried deleting the orphaned devices?

@rpitera
Copy link

rpitera commented Nov 19, 2021

I'm not seeing an option. Only seem to be able to disable or enable. Looked in both the integration view and the device views.

Also restarted the add on and integrations in hopes that the API calls would refresh the list of available devices but no luck.

@fuatakgun
Copy link
Owner

Apparently integration doesn't support deleting the device, you have to delete individual entities one by one.

Can you create a separate issue for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants