Eufy Security Integration

It is probably possible but I couldn’t get it to work in a reasonable amount of time. (from memory took more than 30sec to load on the nest hub so was pretty pointless)
I’ve reverted to just showing a snapshot which is fine.

Here is my node red setup:


[{"id":"836455e5d69eba29","type":"server-state-changed","z":"7d9787011e7b1b95","name":"Doorbell Ring","server":"e4194983.f68e08","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.doorbell_ringing","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":110,"y":240,"wires":[["477f6eecfeb9985c"],["66e9b060c51387bc"]]},{"id":"874edb28707fe7f2","type":"api-call-service","z":"7d9787011e7b1b95","name":"Cast image to Kitchen display","server":"e4194983.f68e08","version":5,"debugenabled":true,"domain":"media_player","service":"play_media","areaId":[],"deviceId":[],"entityId":["media_player.kitchen_display"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"\"\"","valueType":"str"}],"queue":"none","x":1310,"y":240,"wires":[["14de1bac97205712"]]},{"id":"14de1bac97205712","type":"delay","z":"7d9787011e7b1b95","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1540,"y":340,"wires":[["bc26f07a22ce452a"]]},{"id":"bc26f07a22ce452a","type":"api-call-service","z":"7d9787011e7b1b95","name":"Turn off display","server":"e4194983.f68e08","version":5,"debugenabled":true,"domain":"media_player","service":"turn_off","areaId":[],"deviceId":[],"entityId":["media_player.kitchen_display"],"data":"{}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1720,"y":340,"wires":[[]]},{"id":"7db51f99bf3fcb4f","type":"api-call-service","z":"7d9787011e7b1b95","d":true,"name":"Cast stream to Kitchen display","server":"e4194983.f68e08","version":5,"debugenabled":true,"domain":"camera","service":"play_stream","areaId":[],"deviceId":[],"entityId":["camera.doorbell"],"data":"{\"media_player\":\"media_player.kitchen_display\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":670,"y":180,"wires":[[]]},{"id":"477f6eecfeb9985c","type":"api-call-service","z":"7d9787011e7b1b95","name":"Turn on camera","server":"e4194983.f68e08","version":5,"debugenabled":false,"domain":"camera","service":"turn_on","areaId":[],"deviceId":[],"entityId":["camera.doorbell"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":320,"y":240,"wires":[["c48a06f927707e25","fa1d980d01e9de2c"]]},{"id":"fa1d980d01e9de2c","type":"api-call-service","z":"7d9787011e7b1b95","name":"Store image of ringer","server":"e4194983.f68e08","version":5,"debugenabled":true,"domain":"camera","service":"snapshot","areaId":[],"deviceId":[],"entityId":["camera.doorbell"],"data":"{\"filename\": \"/config/www/doorbell/last_ring.jpg\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":540,"y":240,"wires":[["f1bd08c3da7f4e5c","7db51f99bf3fcb4f","33dc87c56893ac25"]]},{"id":"c48a06f927707e25","type":"api-call-service","z":"7d9787011e7b1b95","name":"Archive snapshot","server":"e4194983.f68e08","version":5,"debugenabled":false,"domain":"camera","service":"snapshot","areaId":[],"deviceId":[],"entityId":["camera.doorbell"],"data":"{\"filename\": \"/config/www/doorbell/archive/ring_\" & $entities(\"sensor.date_time\").state & \".jpg\"}\t","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":330,"y":160,"wires":[[]]},{"id":"deac16d6f9e4590e","type":"server-state-changed","z":"7d9787011e7b1b95","name":"Person detected","server":"e4194983.f68e08","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.doorbell_person_detected","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":120,"y":440,"wires":[["79b4118c1f9df8d8","66e9b060c51387bc"],[]]},{"id":"79b4118c1f9df8d8","type":"api-call-service","z":"7d9787011e7b1b95","name":"Turn on camera","server":"e4194983.f68e08","version":5,"debugenabled":true,"domain":"camera","service":"turn_on","areaId":[],"deviceId":[],"entityId":["camera.doorbell"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":320,"y":440,"wires":[["c36b473cb2f4a821","6ac5628e7abcc086"]]},{"id":"c36b473cb2f4a821","type":"api-call-service","z":"7d9787011e7b1b95","name":"Archive snapshot","server":"e4194983.f68e08","version":5,"debugenabled":true,"domain":"camera","service":"snapshot","areaId":[],"deviceId":[],"entityId":["camera.doorbell"],"data":"{\"filename\": \"/config/www/doorbell/archive/motion_\" & $entities(\"sensor.date_time\").state & \".jpg\"}\t","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":330,"y":520,"wires":[[]]},{"id":"6ac5628e7abcc086","type":"api-call-service","z":"7d9787011e7b1b95","name":"Store image of person","server":"e4194983.f68e08","version":5,"debugenabled":true,"domain":"camera","service":"snapshot","areaId":[],"deviceId":[],"entityId":["camera.doorbell"],"data":"{\"filename\": \"/config/www/doorbell/last_motion.jpg\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":560,"y":440,"wires":[["4cadbabca0baa42a","33dc87c56893ac25","ce90b3729f6caa58"]]},{"id":"33dc87c56893ac25","type":"api-call-service","z":"7d9787011e7b1b95","name":"Turn off camera","server":"e4194983.f68e08","version":5,"debugenabled":true,"domain":"camera","service":"turn_off","areaId":[],"deviceId":[],"entityId":["camera.doorbell"],"data":"{}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":780,"y":340,"wires":[[]]},{"id":"751bc698d75236c1","type":"api-call-service","z":"7d9787011e7b1b95","name":"","server":"e4194983.f68e08","version":5,"debugenabled":true,"domain":"notify","service":"raphsl3","areaId":[],"deviceId":[],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1310,"y":420,"wires":[[]]},{"id":"4cadbabca0baa42a","type":"change","z":"7d9787011e7b1b95","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"last_motion.jpg","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"motion","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":780,"y":440,"wires":[["e6aa0f8142e7eb04","f2f816ac7e1bf2de"]]},{"id":"e6aa0f8142e7eb04","type":"function","z":"7d9787011e7b1b95","name":"Set image URL","func":"\nvar typ = msg.payload\nmsg.payload = \n{\n\"data\": {\n    \"media_content_type\": \"image/jpeg\",\n    \"media_content_id\": \"https://myurl.ui.nabu.casa/local/doorbell/\" + typ\n    }\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1060,"y":340,"wires":[["874edb28707fe7f2"]]},{"id":"f1bd08c3da7f4e5c","type":"change","z":"7d9787011e7b1b95","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"last_ring.jpg","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"ring","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":780,"y":240,"wires":[["e6aa0f8142e7eb04","f2f816ac7e1bf2de"]]},{"id":"f2f816ac7e1bf2de","type":"function","z":"7d9787011e7b1b95","name":"Set image URL","func":"\nvar typ = msg.payload\nmsg.payload = \n{\n\"data\": {\n    \"title\": \"Front Door\",\n    \"message\": \"Someone is at the door\",\n    \"data\": {\n        \"image\": \"https://myurl.ui.nabu.casa/local/doorbell/\" + typ\n        }\n    }\n}\nreturn msg; ","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1060,"y":400,"wires":[["751bc698d75236c1"]]},{"id":"66e9b060c51387bc","type":"link out","z":"7d9787011e7b1b95","name":"link out to security lighting","mode":"link","links":["f5e8d482ea0e202b"],"x":185,"y":340,"wires":[]},{"id":"c40e77444f08bcb9","type":"inject","z":"7d9787011e7b1b95","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"ring","payload":"last_ring.jpg","payloadType":"str","x":920,"y":100,"wires":[["e6aa0f8142e7eb04"]]},{"id":"ce90b3729f6caa58","type":"debug","z":"7d9787011e7b1b95","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":620,"y":560,"wires":[]},{"id":"e4194983.f68e08","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":false,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","areaSelector":"id","deviceSelector":"id","entitySelector":"id","statusSeparator":"","statusYear":"numeric","statusMonth":"numeric","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m:s","enableGlobalContextStore":false}]
[/details]

I have the same problem. I f you find any solution please let me know.

Currently also unable to get the stream working. I do get updated screenshots from time to time. I use the bropat Add-On as the one from Fuatakgun gives me the incompatible scheme error.

Should both addons work or should we all use Bropat’s now as of latest release?
Not sure what I can do to fix the incompatible scheme error. Will do a full re-install of everything eufy related. Hope the guides are updated. Has anyone got this working?

I was having this same problem. I was able to get everything working again by updating the Add-on from bropat. I was still running the deprecated version. If you click on the add-on in Home Assistant and you are running the deprecated version, it says so on that page and provides the link to the newer version.

Thanks. Your post resolved my issue also. The integration had stopped working and I did see the deprecated version message, but was unsure of what to do. After reading your post, I installed the new Add-on and now integration is working.

Just to confirm, is the link below the most recent version?

Please follow here;

Followed this and I’m getting “Unknown error occurred” during the setup stage of the integration.

I’m running 1.5.2 of bropat’s addon and installed the eufy_security via HACS following the instructions.

Any ideas to solve this would be greatly appreciated.

have you checked open issues (most importantly pinned ones) and they is no relation at all?

Yes I’ve checked all open and closed issues and I can’t see the same thing as what I’m experiencing. The only one that is slightly similar is #774 however I only get “host/port is wrong” when I put a different IP or port number.

When I put 127.0.0.1 and 3000 it looks like it’s loading or setting up but after about a minute or so it comes back with the error “unknown error occurred”.

I’ve just checked the logs for bropats add-on and this is what it’s showing:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
2023-06-21 10:42:32.062 INFO Eufy Security server listening on host 0.0.0.0, port 3000
2023-06-21 10:43:16.670 INFO Client disconnected with ip: 127.0.0.1 port: 44312 code: 1000 reason: Normal Closure
2023-06-21 10:45:25.169 INFO Client disconnected with ip: 127.0.0.1 port: 52916 code: 1000 reason: Normal Closure

you can follow this: Failed to Setup - Missing 2 Factor Auth or Captcha Codes · Issue #795 · fuatakgun/eufy_security · GitHub

Can’t seem to figure out how to install the older version. I can see a few steps above but I’m not the most technical so apologies if it’s simple for those with the knowhow.

I’m running HASS OS in VirtualBox on a Windows machine. Any help as to how I can install v1.3.5 of the add-on would be much appreciated!

Edit: Just seen the comment by chrisf4lc0n and I’ve managed to install 1.3.5. Just restarting and I’m hoping it’ll work!

1 Like

Same issue here. If you solve it please let me know [asifhu03]

Can you tell me the steps please. I can’t find his comment here. Many thanks

So I got 1.3.5 of Bropat’s add-on installed however it still didn’t work. I’m getting an error “Schema Incompatible”, as described here - Failed to Setup - Missing 2 Factor Auth or Captcha Codes · Issue #795 · fuatakgun/eufy_security · GitHub

I think I’ll give up for now and spend time elsewhere. It’d be good to finally get my Eufy cameras connected to HA. Hopefully some day.

If you want to use earlier version of add-on, you also need to downgrade the integration

Basically you decided not to reply both us is it ? We are asking for a small help here mate.

If you want to downgrade the add-on, you can do it via your own backups or use 1.3.5 from my own repository rather than bropat.

If you want to downgrade the integration (latest version of integration requires latest version of add-on) follow here Failed to setup after update 6.3.0 · Issue #819 · fuatakgun/eufy_security · GitHub

Thanks! my earlier message was for asifhu03.

Is anyone else getting very small images or is it just me? I have tried to reinstall the addon and integration but it hasn’t made any difference.