ha-eufy-security icon indicating copy to clipboard operation
ha-eufy-security copied to clipboard

unable to log into integration

Open k-rock opened this issue 4 years ago • 18 comments

Hi! I had my eufy security up and working with Home Assistant for some time.. then it stopped working. I removed the component and re-installed it. I notice that I cannot log into the integration - it keeps prompting me for my username & password. I double checked my username & password which are correct.

eufy related items in my logs:

s➜ config git:(master) more home-assistant.log|grep eufy 2020-12-02 06:27:52 ERROR (MainThread) [custom_components.hacs.repository.integration.nonsleepr.ha-eufy-security] GitHub Ratelimit error 2020-12-02 06:27:52 ERROR (MainThread) [custom_components.hacs.factory] nonsleepr/ha-eufy-security - GitHub Ratelimit error 2020-12-02 07:17:13 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for eufy_security which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant. ➜ config git:(master)

I am able to log into https://mysecurity.eufylife.com/#/camera to view my camera:

image

I see this after entering my username and password: image

k-rock avatar Dec 02 '20 18:12 k-rock

the same thing at home

belidi avatar Dec 02 '20 22:12 belidi

Same thing for me. It is stuck asking for user name and password. I double verified and they are correct.

JuliusLedoux avatar Dec 03 '20 03:12 JuliusLedoux

Same for me. No Login with primary eufy account possible. Login with account without devices works!

johannes281 avatar Dec 07 '20 07:12 johannes281

For me the same error. I try to login, the window for email and password is closing and reopen again.

r77s avatar Dec 12 '20 16:12 r77s

+1, this integration is currently broken with current home assistant instances I would say...

kai-seipp avatar Dec 12 '20 23:12 kai-seipp

Same for me.

mischpoke avatar Dec 15 '20 23:12 mischpoke

Did you turn off 2fa? That fixed for me...

On Tue, Dec 15, 2020 at 6:15 PM mischpoke [email protected] wrote:

Same for me.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nonsleepr/ha-eufy-security/issues/21#issuecomment-745626046, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXS3J7UZDBIZSSWWLTFP4DSU7UXRANCNFSM4UK4KFKA .

k-rock avatar Dec 15 '20 23:12 k-rock

Thanks for that hint! That actually did get me a bit further. I now could setup the integration. But now I get this error in my logs:

`Logger: homeassistant.components.camera Source: custom_components/eufy_security/camera.py:46 Integration: Camera (documentation, issues) First occurred: 1:00:57 (2 occurrences) Last logged: 1:02:06

Error while setting up eufy_security platform for camera Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/eufy_security/camera.py", line 31, in async_setup_entry [EufySecurityCam(hass, camera) for camera in api.cameras.values()], True File "/config/custom_components/eufy_security/camera.py", line 31, in [EufySecurityCam(hass, camera) for camera in api.cameras.values()], True File "/config/custom_components/eufy_security/camera.py", line 46, in init self._ffmpeg_image_frame = ImageFrame(self._ffmpeg.binary, loop=hass.loop) TypeError: init() got an unexpected keyword argument 'loop'`

kai-seipp avatar Dec 16 '20 00:12 kai-seipp

Turning off 2FA worked to get the integration set up but now I'm getting the same error logs as above. Tried on V 1.0.0b6 as well as 2020.12.7

chrmart5 avatar Dec 17 '20 04:12 chrmart5

This fix worked for me.

Edit: fixed URL.

davida72 avatar Dec 31 '20 18:12 davida72

I had this integration working on my Rpi 4 hassio install but I recently purchased a HA Blue and started to migrate everything over. After installing via HACS I was able to get the integration to accept my credentials however, none of my cameras were being recognized. So, I uninstalled and reinstalled it via HACS. When I went into integration to try to install again, my credentials were no longer accepted. As soon as I type them in, it goes immediately back to prompting for them agian.

I tried the code fix suggested by @davida72 above however, that did not solve the issue for me. I would like to get this working again so will try the 2FA next. Hopefully, someone can figure out exactly what's happening.

mydevbox avatar Jan 02 '21 20:01 mydevbox

After doing some testing with Postman, I noticed that I could get authenticated only if I added a space after my email address. I then tried to do the same in the integration and sure enough that got me passed the login loop.

Now, I am back to having the integration installed but no camera entities listed. I even added the code-fix back but still no luck.

mydevbox avatar Jan 02 '21 20:01 mydevbox

I was able to get my cameras working again. Turned out that the code edit had a TAB in it instead of 8 spaces. As soon as I corrected that and restarted HA, my camera entities appeared. Though, I am now getting bunch of warnings in the logs as shown below.

Here's what fixed it for me:

  1. Had to add a space to the end of my email at the prompt. I'm not sure if I added the space when creating my account or if that's Eufy's issue
  2. Had to apply the code fix that @davida72 listed https://community.home-assistant.io/t/eufy-camera-integration/121758/383?u=davida72
2021-01-02 16:06:51 WARNING (MainThread) [eufy_security.camera] Unable to process parameter "1186", value "�����������"
2021-01-02 16:06:51 WARNING (MainThread) [eufy_security.camera] Unable to process parameter "1230", value "100"
2021-01-02 16:06:51 WARNING (MainThread) [eufy_security.camera] Unable to process parameter "1045", value "0"
2021-01-02 16:06:51 WARNING (MainThread) [eufy_security.camera] Unable to process parameter "1246", value "0"
2021-01-02 16:06:51 WARNING (MainThread) [eufy_security.camera] Unable to process parameter "1141", value "-55"```

mydevbox avatar Jan 02 '21 21:01 mydevbox

I was able to get my cameras working again. Turned out that the code edit had a TAB in it instead of 8 spaces. As soon as I corrected that and restarted HA, my camera entities appeared. Though, I am now getting bunch of warnings in the logs as shown below.

Here's what fixed it for me:

  1. Had to add a space to the end of my email at the prompt. I'm not sure if I added the space when creating my account or if that's Eufy's issue
  2. Had to apply the code fix that @davida72 listed https://community.home-assistant.io/t/eufy-camera-integration/121758/383?u=davida72
2021-01-02 16:06:51 WARNING (MainThread) [eufy_security.camera] Unable to process parameter "1186", value "�����������"
2021-01-02 16:06:51 WARNING (MainThread) [eufy_security.camera] Unable to process parameter "1230", value "100"
2021-01-02 16:06:51 WARNING (MainThread) [eufy_security.camera] Unable to process parameter "1045", value "0"
2021-01-02 16:06:51 WARNING (MainThread) [eufy_security.camera] Unable to process parameter "1246", value "0"
2021-01-02 16:06:51 WARNING (MainThread) [eufy_security.camera] Unable to process parameter "1141", value "-55"```

This got me back up and running, thank you.

akeslo avatar Jan 03 '21 03:01 akeslo

I keep seeing the following errors in my logs.. . any suggestions for fixing this?

2021-01-09 21:21:36 ERROR (MainThread) [homeassistant.components.camera] Error while setting up eufy_security platform for camera File "/config/custom_components/eufy_security/camera.py", line 31, in async_setup_entry File "/config/custom_components/eufy_security/camera.py", line 31, in File "/config/custom_components/eufy_security/camera.py", line 46, in init

k-rock avatar Jan 09 '21 21:01 k-rock

I confirm that I had to disable 2FA to allow HACS integration login to succeed. Hope the 2FA issue can be fixed.

moccajava avatar Jan 10 '21 03:01 moccajava

For those turning off 2FA - does turning it back on break things?

genebean avatar Jan 13 '21 00:01 genebean

https://github.com/FuzzyMistborn/python-eufy-security/issues/57 documents why 2FA is failing and what is needed to fix it - I just don't know enough about the code to create the fix myself. Here's hoping someone here might be able to take the flow I document there and codify it for use in Home Assistant (or elsewhere)

genebean avatar Jan 13 '21 03:01 genebean