Eufy Security Web Socket on Docker

Hi everyone,
I need to make two Eufy Cams and therefore I am trying to integrate Eufy Security, I am following what is written in

Of the three steps indicated, I don’t need the second to date because the two cams support rtsp, I’ve performed the third completely but when I try to add a Eufy Security integration and configure it I get an error when I put ip and port because obviously it doesn’t find the server
this is because I have not installed Eufy Security Web Socket as requested in point 1.

I didn’t do it because I have HA installed on a docker on Raspberry and therefore I can’t install it as an AddOn but as also written in the guide linked above I have to install it as Docker but I can’t find any indication on how to install it and possibly configure it not even on the page project:

Do you have any suggestions?

Thank you

Create folder

<config_dir>/custom_components/

Download the integration into this folder

Restart HA docker container

I’ll answer myself in case it helps others and add a problem.

I managed to install by downloading the docker image from here:
https://hub.docker.com/r/bropat/eufy-security-ws

The problem now is that when the docker starts it always gives an error “Missing one of USERNAME or PASSWORD” user and pwd are entered and are correct but the block comes from the Eufy API because they recognize the access as an “attack”, in fact I received it to warn me of a suspicious attempt

I only put in the Yaml:

eufy-security-ws:
    image: bropat/eufy-security-ws
    container_name: eufy-security-ws
    ports:
      - "3000:3000"
    environment:
      - EUFY_EMAIL=YourEmailAddress
      - EUFY_PASSWORD=YourPassword
      - EUFY_PERSISTENT_LOGIN=false
    restart: always

anything else?

1 Like

Better to submit issue to developer of addon in GitHub

I solved it, I’ll post it in case anyone needs it.
All the environment variables that I had previously found were wrong, I found the correct ones:

  eufy-security-ws:
    # https://github.com/fuatakgun/eufy_security/discussions/612
    image: bropat/eufy-security-ws
    container_name: eufy-security-ws
    network_mode: "bridge"
    ports:
      - "3000:3000"
    environment:
      - TZ=Europe/Amsterdam
      - USERNAME=myUser
      - PASSWORD=myPwd
      - COUNTRY=IT
    restart: unless-stopped
3 Likes