bropat / eufy-security-ws

Small server wrapper around eufy-security-client library to access it via a WebSocket.
MIT License
176 stars 26 forks source link

[Bug]: No Devices Found #74

Closed spaceboy76 closed 2 years ago

spaceboy76 commented 2 years ago

Version

0.7

Node version

?

Operating System type

Other

Operating system version

Home Assistant 2021.12.10

Describe the bug

Everything set up per instructions. Country code used is GB for UK image

To reproduce

  1. Start Eufy Security Addon
  2. See errors in log

Screenshots & Logfiles

No response

Additional context

No response

dewoert commented 2 years ago

Exact same problem here. Country code set to NL

bjornhij commented 2 years ago

Same here, country NL.

hagepat commented 2 years ago

Also problem exist here. Country code: NL

hzoet88 commented 2 years ago

same issue here. Country code: NL

2022-01-27 19:16:40.002 INFO Eufy Security server listening on port 3000 2022-01-27 19:16:41.340 INFO No stations found. 2022-01-27 19:16:41.472 INFO No devices found. 2022-01-27 19:16:42.161 INFO Push notification connection successfully established

rhamar commented 2 years ago

same issue here. Country code: NL

bropat commented 2 years ago

Eufy has implemented some new features with version 4 of the app, including the creation of custom “houses” for sharing devices. Those who already use version 4 of the app and share the devices with it will not see them at the moment via the eufy-security-client integrations. I have already had a quick look at the code and can tell you that it will not be a problem to support this. I just don’t have much time for hobbies lately, so please be patient.

In the meantime, use a version < 4 of the app (IOS and Android) with eufy-security-client integrations for sharing devices.

spaceboy76 commented 2 years ago

cheers! I'm not sure how to get hold of a <4 version of the ios app so i'll probably just wait for now. plenty of other home automation stuff for me to be getting on with :)

bropat commented 2 years ago

Will be fixed in the next version.

hzoet88 commented 2 years ago

Will be fixed in the next version.

when should ben the next release?

Palmke commented 2 years ago

If you really need to share devices or fix the issue now, you can always download an Android emulator and sideload an older eufySecurity APK. I know that is a hassle, but at least you will be able to work around the issue if you have only iOS device with v4 apps.

dewoert commented 2 years ago

If you really need to share devices or fix the issue now, you can always download an Android emulator and sideload an older eufySecurity APK. I know that is a hassle, but at least you will be able to work around the issue if you have only iOS device with v4 apps.

@Palmke Can you explain these steps a bit more ? Version of EufySecurity App ? Do I need to reconfigure the Doorbell and HomeBase ? Do i have to create new account to use with that older App ? I would like to try this method, have it running now in Bluestack emulater.

bropat commented 2 years ago

If all goes well, I will publish the new version today.

Palmke commented 2 years ago

@dewoert you can just login with your existing account I guess. Bluestacks was also the emulator I was thinking about. Your devices keep working, no need to reconfigure.

@bropat will the new home management affect non-4.0 users in any way?

bropat commented 2 years ago

@Palmke

According to my tests it shouldn't.

bropat commented 2 years ago

Version 0.8.0 released

san84 commented 2 years ago

Dear @bropat

Please have a look at https://github.com/fuatakgun/eufy_security/issues/258

Many people are still facing the „no devices / no stations“ issue.

Thank you very much for your advice.

rpartapsing commented 2 years ago

yes, indeed @san84 . Same here. Today I upgraded core to 2022.2.3 and the app to 0.8.1. Guess that was too much of updating in one goal.

Palmke commented 2 years ago

Has anyone running into the issue now used the 4.0 app, or are you all still on 3.x versions? Asking because I logged into the 4.0 once, and I get my stations and devices just fine on eufy-security-ws 0.8.1 (and 1.6.3 of the client).

san84 commented 2 years ago

Has anyone running into the issue now used the 4.0 app, or are you all still on 3.x versions? Asking because I logged into the 4.0 once, and I get my stations and devices just fine on eufy-security-ws 0.8.1 (and 1.6.3 of the client).

I’m on iOS V4.0.0_867

Palmke commented 2 years ago

I’m on iOS V4.0.0_867

That sucks. As I am not using HA, but only eufy-security-ws, maybe it's a HA issue?

Beer17HWAM commented 2 years ago

Tried to share devices with an old Eufy app (version 2.4.0) on Android. Same results. No stations found. No devices found. When can we expect an update??

Beer17HWAM commented 2 years ago

How can I fill the country if I run a docker.

docker run -it --privileged -e USERNAME=xx@xxxx.com -e PASSWORD=xxxx -p 3300:3000 bropat/eufy-security-ws:0.8.1

I use local port 3300 because port 3000 is already used on my Raspberry pi4.

bropat commented 2 years ago

@bjornhij

https://bropat.github.io/eufy-security-ws/#/docker

bropat commented 2 years ago

With the latest version we use the new API from eufy which combines both sharing mechanisms (device and home sharing; same API provides all data).

The selection of the country is very important, it decides on which Eufy Cloud you connect. If you enter the wrong value here, you will not see any devices.

Excerpt from the Eufy Forum regarding Eufy App 4.0 (source):

1. Why are all my devices not visible after logging in ?
You cannot access the devices if you choose a new region which is different from the previous one. Please logout and make sure to reselect the actual region.

image

When I look at @fuatakgun's addon, I see the following error (the country was hardcoded with the value US):

https://github.com/fuatakgun/eufy_security_addon/blob/a3de3eee9a142db252f510784a199039a5d72e92/config.json#L30

The Docker container of mine supports the following configuration variables:

https://bropat.github.io/eufy-security-ws/#/docker

fuatakgun commented 2 years ago

@bropat , it is a default value and users are required to put their 2-letter country code inside Home Assistant.

Beer17HWAM commented 2 years ago

@bropat , it is a default value and users are required to put their 2-letter country code inside Home Assistant.

I use a docker. Can't fill it in Home Assistant.

docker run -it --privileged -e USERNAME=xx@xxx.com -e PASSWORD=x -e COUNTRY=NL -p 3300:3000 bropat/eufy-security-ws:0.8.1

NL is still not detecting devices. I see "Netherlands" in de Eufy APP on my iPhone and Android. The account is okay because I see the shared HOME with devices.

NL is stil not

bropat commented 2 years ago

@fuatakgun Okay, thanks. I overlooked that...

TEF2one commented 2 years ago

Mine was already properly setup as indicated by @fuatakgun. My EUFY region is France and so have the country code set to FR. I have also now updated to:

bropat commented 2 years ago

I need debug logs. Please send me your complete and uncensored debug log to my mail. So I can do some tests and understand where the problem is. Also please tell me if you are using the IOS or Android app and in which version.

Today after work I will dedicate myself to the matter.

TEF2one commented 2 years ago

@bropat , I am running Android v3.5.1159(EU) which logs are you referring to? My addon logs only shows:

2022-02-07 13:04:30.243 INFO Eufy Security server listening on host 0.0.0.0, port 3000 2022-02-07 13:04:32.621 INFO No stations found. 2022-02-07 13:04:32.855 INFO No devices found. 2022-02-07 13:04:33.338 INFO Push notification connection successfully established 2022-02-07 13:04:47.984 INFO No stations found. 2022-02-07 13:04:48.225 INFO No devices found.

rpartapsing commented 2 years ago

Same as @TEF2one. btw the Android app does not show at the top right corner the option to choose country.

Beer17HWAM commented 2 years ago

Same at @TEF2one. btw the Android app does not show at the top right corner the option to choose country.

You can choose country in the app if you login for the first time in the app.

Beer17HWAM commented 2 years ago

I need debug logs. Please send me your complete and uncensored debug log to my mail. So I can do some tests and understand where the problem is. Also please tell me if you are using the IOS or Android app and in which version.

Today after work I will dedicate myself to the matter.

I need an email address.

bropat commented 2 years ago

@TEF2one

You enable debugging as described here by adding the DEBUG parameter to the Docker container's passed parameters.

For example: DEBUG=y

bropat commented 2 years ago

@Beer17HWAM

patrick.broetto@gmail.com

Beer17HWAM commented 2 years ago

patrick.broetto@gmail.com

Thx. mailed log.

TEF2one commented 2 years ago

@bropat thanks is there another place I could retrieve the log directly from a file as once I activate the debug by the time I check the log tab it is missing the start...

bropat commented 2 years ago

New version released 0.8.2

mzelmanovich commented 2 years ago

New 0.8.2 version worked for me and the account I share with.

Beer17HWAM commented 2 years ago

I see all the information in HA, so it's working. But it's all static. Battery stays 87%. Picture is old. Nothing is updating. Very strange. What am I doing wrong?

mzelmanovich commented 2 years ago

Oh i think I have the same issue..... Let me check the doorbell. I was able to get updates.

Beer17HWAM commented 2 years ago

Oh i think I have the same issue..... Let me check the doorbell. I was able to get updates.

Yes, I also have the doorbell and basestation but it's showing information from the moment I started the docker.

How can I refresh something?

Palmke commented 2 years ago

Yes, I also have the doorbell and basestation but it's showing information from the moment I started the docker.

How can I refresh something?

Change guard mode or poll refresh using: https://bropat.github.io/eufy-security-ws/#/api_cmds?id=update-the-station-and-device-informations

Beer17HWAM commented 2 years ago

I thought Home Assistant was updating/reading the sensors and other info automatically.

On Mon, 7 Feb 2022, 20:29 Rik Palm, @.***> wrote:

Yes, I also have the doorbell and basestation but it's showing information from the moment I started the docker.

How can I refresh something?

Change guard mode or poll refresh using:

https://bropat.github.io/eufy-security-ws/#/api_cmds?id=update-the-station-and-device-informations

— Reply to this email directly, view it on GitHub https://github.com/bropat/eufy-security-ws/issues/74#issuecomment-1031836919, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXIR3XAIDAY4FTEQLDYYYSDU2AMP5ANCNFSM5M4ES2QA . You are receiving this because you were mentioned.Message ID: @.***>

Palmke commented 2 years ago

It either receives it with the periodic polling configured when starting the client or by sending that message.

hunt350 commented 2 years ago

same issue , i'm on docker , if you have an idea ?

pi@raspberrypi:~ $ docker run -it --privileged -e USERNAME=XXXXXX -e PASSWORD=XXXXXX -e COUNTRY=FR -p 3000:3000 bropat/eufy-security-ws:0.8.2 2022-02-08 17:21:41.432 INFO Eufy Security server listening on host 0.0.0.0, port 3000 Exception in PromiseRejectCallback: /usr/src/app/node_modules/eufy-security-client/build/http/api.js:224 return types_1.AuthResult.OK;

RangeError: Maximum call stack size exceeded Exception in PromiseRejectCallback: /usr/src/app/node_modules/eufy-security-client/build/http/api.js:440 switch (await this.authenticate()) { ^

RangeError: Maximum call stack size exceeded 2022-02-08 17:21:42.385 ERROR Error: RangeError Maximum call stack size exceeded error stack: • errors:100 prepareStackTrace node:internal/errors:100:21

• CallSitesHelper.ts:81 getCallSites node_modules/tslog/src/CallSitesHelper.ts:81:15

• LoggerHelper.ts:50 getCallSites node_modules/tslog/src/LoggerHelper.ts:50:35

• LoggerWithoutCallSite.ts:376 _buildLogObject node_modules/tslog/src/LoggerWithoutCallSite.ts:376:55

• LoggerWithoutCallSite.ts:333 _handleLog node_modules/tslog/src/LoggerWithoutCallSite.ts:333:40

• LoggerWithoutCallSite.ts:258 debug node_modules/tslog/src/LoggerWithoutCallSite.ts:258:28

• api.ts:142 authenticate node_modules/eufy-security-client/src/http/api.ts:142:18

• api.ts:455 request node_modules/eufy-security-client/src/http/api.ts:455:32

• api.ts:112 getApiBaseFromCloud node_modules/eufy-security-client/src/http/api.ts:112:41

2022-02-08 17:21:42.395 ERROR Status return code not 200 { status: undefined, statusText: undefined } 2022-02-08 17:21:42.420 ERROR Error: Error input must not start with a slash when using prefixUrl error stack: • index.js:484 normalizeArguments node_modules/got/dist/source/core/index.js:484:23

• create.js:112 got node_modules/got/dist/source/create.js:112:39

• api.ts:492 request node_modules/eufy-security-client/src/http/api.ts:492:43

• api.ts:168 authenticate node_modules/eufy-security-client/src/http/api.ts:168:58

• task_queues:96 processTicksAndRejections node:internal/process/task_queues:96:5

• api.ts:455 request node_modules/eufy-security-client/src/http/api.ts:455:21

• api.ts:112 getApiBaseFromCloud node_modules/eufy-security-client/src/http/api.ts:112:30

• api.ts:143 authenticate node_modules/eufy-security-client/src/http/api.ts:143:25

• api.ts:455 request node_modules/eufy-security-client/src/http/api.ts:455:21

• api.ts:112 getApiBaseFromCloud node_modules/eufy-security-client/src/http/api.ts:112:30

2022-02-08 17:21:42.425 ERROR Status return code not 200 { status: undefined, statusText: undefined } 2022-02-08 17:21:42.426 ERROR Token error { method: 'get', endpoint: '/domain/FR' } 2022-02-08 17:21:44.162 INFO No stations found. 2022-02-08 17:21:44.321 INFO No devices found. 2022-02-08 17:21:44.870 INFO Push notification connection closed 2022-02-08 17:21:45.084 INFO Push notification connection successfully established 2022-02-08 17:21:50.175 INFO Push notification connection successfully established

bropat commented 2 years ago

@hunt350 Update to version 0.8.3 (released a few seconds ago)

bropat commented 2 years ago

For all who can't find devices please update to the latest version (0.8.3) and start eufy-security-ws in debug mode and send me the logs by mail:

patrick.broetto@gmail.com

hunt350 commented 2 years ago

For all who can't find devices please update to the latest version (0.8.3) and start eufy-security-ws in debug mode and send me the logs by mail:

patrick.broetto@gmail.com

it's working :)

image

boudicca99 commented 2 years ago

morning. since I upgraded last week inc 0.8.3 still the same.. Country GB No Stations etc. I have noticed requests to Captcha so wonder if security-app-eu.eufylife.com i.e security-app-eu-324925769.eu-central-1.elb.amazonaws.com is the an issue but it authenticates and just doesnt return stations or devices as above. Docker on RPI