Eufy Camera Integration

TBH you can just read through the thread and get all your questions answered. I have fuatakgun’s add-on working with my 2k battery doorbell - well, the motion and people detection works, as does the doorbell button press, and the still picture of last event. I can start a live stream but it makes my home assistant fall over (which is fine by me, now at least I can hang other automations off of someone being at the front door and that was my main purpose)
Installation is very clearly documented and pretty straight forward, so why don’t you just give it a try? Just follow the readme link from Eufy Camera Integration - #1297 by fuatakgun

1 Like

I will try it thanks

What automations do you have based on someone being at front door.
The older integrations/addons didnt work well for me showing last event picture, mostly there was no pic
I hope this one is better

Trying it now

My wife is immunocompromised so very vulnerable to covid even after 2 jabs. Our delivery people know to put our deliveries in the foyer. Since covid is airborne, and delta is prevalent here, and simply walking through someone’s breath who has delta is known to infect people, I run a simple timer turning a light red for the next 20 minutes so our foyer can air out (windows open at all times). Once the light goes back to normal I know I can go and get the delivery relatively safely. This reduces our waste by about 4 plastic face masks a day, and our cost too of course. (We use ffp2 and ffp3 masks since the blue ones offer very little protection as they do not make a good enough seal.)

2 Likes

Regarding to freezing home assistant instance, can you try with downgrading quality settings for you camera? That should at least give some space and time for your server to keep up :slight_smile:

I will be back from weekend vacation tomorrow and will definitely improve/fix this.

1 Like

Mmmm :-/
After step 4 filling in credentials in configuration tab, i’m watching the logs but nothing is there
When i look into system log i see errors:

21-07-25 14:52:42 WARNING (MainThread) [supervisor.misc.tasks] Watchdog found a problem with 3a26b21d_eufy_security_addon!
21-07-25 14:52:43 INFO (SyncWorker_5) [supervisor.docker.interface] Cleaning addon_3a26b21d_eufy_security_addon application
21-07-25 14:52:44 WARNING (SyncWorker_6) [supervisor.docker.interface] Can’t grep logs from bropat/eufy-security-ws: 404 Client Error for http+docker://localhost/v1.41/containers/7e4e890974b9385bda15302761dd5cb32d56d5678def20f8835b2ecc8a3ec714/json: Not Found (“No such container: 7e4e890974b9385bda15302761dd5cb32d56d5678def20f8835b2ecc8a3ec714”)
21-07-25 14:52:49 INFO (SyncWorker_5) [supervisor.docker.addon] Starting Docker add-on bropat/eufy-security-ws with version latest
21-07-25 14:53:20 WARNING (MainThread) [supervisor.misc.tasks] Watchdog found a problem with 3a26b21d_eufy_security_addon!
21-07-25 14:53:21 INFO (SyncWorker_3) [supervisor.docker.interface] Cleaning addon_3a26b21d_eufy_security_addon application
21-07-25 14:53:26 INFO (SyncWorker_3) [supervisor.docker.addon] Starting Docker add-on bropat/eufy-security-ws with version latest

I tried restarting but no good

As a starting point;

  • try with disabling watchdog in supervisor settings doe this addon. On there might be some logs in supervisor or core why this is happening.
  • if this doesn’t work, try with manual running the docker using command from README file.

We can find where to focus.

Ok, i thought it would be cause of the country i filled in

I filled in “Belgium”, now i changed to “BE” , i now get logs, stupid of me

eufy_security_addon
2021-07-25 13:06:51.913 INFO Eufy Security server listening on port 3000
x
2021-07-25 13:07:04.282 INFO Push notification connection successfully established

I’m continuing now

I need to sync with @bachya before answering this and he is not available nowadays because of family topics.

Developing an integration for home assistant has a well very defined list of steps which would enable final integration to me embedded inside core.

OR, you are a lazy developer like me and you start backwards and aim to have a basic running stuff, rather than following best practices.

bachya is following first way, i envy of him but i am lazy and i am following other way around. I will definitely contribute his solution or we can even use existing integration for his work. Nothing is clear as of now.

Even though we merge or diverge in the future, both ways should be well embraced and encouraged right?

4 Likes

I agree totally
:slight_smile:

You guys rock!
I completed your integration/addon now, and i’m getting 2 devices now (doorbell and camera) which is correct
Superb !

Will see if the doorbell works better now :slight_smile: Thanks already for the hard work !
Do you use automations inside HA?
I’m eager to know what automations you guys use then, perhaps we or someone else can benefit from it too

I will do this if it helps you? For myself, I am happy with the last event pic and the motion sensors and will do any live streaming via the eufy app. That does remind me, I can use the eufy app to give some canned responses to the person ringing the doorbell. Do you know if this is supported in bropat’s library?

Absolutely! thank you for all your work on this, much appreciated!

How do your guys lovelace code look like?

I added this:

- type: picture-glance
        title: Voordeur
        entities: []
        camera_image: camera.deurbel

However i don’t see if motion is detected, or its streaming.;
When i click on it, the first 3 times i could see live picture
Now , it doesnt work anymore and i didnt change anything

Also is it normal i cant stream the camera from the doorbell?

I have exactly the same problem. It worked fine for a few minutes and since then I have no more images / streaming. My image remains permanently in “broadcast in progress”.
I tried to uninstall everything and reinstall everything, it’s still the same.

Try turning of the camera, with the service “turn camera off”
Then try again
That works for me but is by far not optimal

The camera from doorbell is not working
The addon logs has errors too, not sure where they are from (doorbell?) , there’s no timestamp too, nor can i clear the log, to be sure its old

• 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
• receiver.js:143 startLoop
node_modules/ws/lib/receiver.js:143:22
2021-07-25 16:03:49.139 ERROR Message error
Error
details:
{
command: ‘device.stop_livestream’,
errorCode: ‘unknown_command’
}
error stack:
• message_handler.ts:222 handle
src/lib/device/message_handler.ts:222:23
• 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
• receiver.js:143 startLoop
node_modules/ws/lib/receiver.js:143:22
2021-07-25 16:03:55.084 ERROR Message error
Error
details:
{
command: ‘device.start_livestream’,
errorCode: ‘unknown_command’
}
error stack:
• message_handler.ts:222 handle
src/lib/device/message_handler.ts:222:23
• 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
• receiver.js:143 startLoop
node_modules/ws/lib/receiver.js:143:22

Thank you.
I did not specify it in my previous post, but I have already tried “Start Live Stream and Stop Live Stream”.
Impossible, I can’t see any video.

• 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
• receiver.js:143 startLoop
    node_modules/ws/lib/receiver.js:143:22
2021-07-25 16:45:25.097  ERROR Message error 
 Error  
details:
{
  command: 'device.start_livestream',
  errorCode: 'unknown_command'
}
error stack:
• message_handler.ts:222 handle
    src/lib/device/message_handler.ts:222:23
• 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
• receiver.js:143 startLoop
    node_modules/ws/lib/receiver.js:143:22
2021-07-25 16:45:25.115  ERROR Message error 
 Error  
details:
{
  command: 'device.start_livestream',
  errorCode: 'unknown_command'
}
error stack:
• message_handler.ts:222 handle
    src/lib/device/message_handler.ts:222:23
• 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
• receiver.js:143 startLoop
    node_modules/ws/lib/receiver.js:143:22

Yes that would help me to find out root cause, my camera doesn’t support 2k and stream (both over rtsp and live stream) is working fine without any issues. There is an ongoing issue about multi camera setup and streaming them at the same time (not rtsp).

1 Like

This is coming from eufy node ws add on, definitely requires help from @bropat , you can try to create an issue over here: GitHub - bropat/eufy-security-ws: Small server wrapper around eufy-security-client library to access it via a WebSocket.

1 Like

It’s helped, if you first stop the camera, and then try again

Nicolas,
Try to stop the camera, its not the same as stop live stream

Thanks for your help.
I have this error :
Failed to call service "eufy_security.stop_rtsp". Unknown error