nonsleepr / ha-eufy-security

Custom integration of Home Assistant with EufySecurity
168 stars 44 forks source link

Login failed #37

Open hamdanfadi opened 3 years ago

hamdanfadi commented 3 years ago

Hi there, After adding configuration > Integration I was prompting with username and password. I have used my eufy account, but keep asking for it! What I should do?

mmz06 commented 3 years ago

Hi There,

Same issue for me. Any help ? Here are the logs: 2021-03-15 09:54:18 WARNING (MainThread) [homeassistant.loader] You are using a custom integration 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 2021-03-15 09:54:18 WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'eufy_security'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'eufy_security'

hamdanfadi commented 3 years ago

Yes just make another user in Eufy it should work

From: mmz06 @.> Sent: Monday, 15 March 2021 10:02 PM To: nonsleepr/ha-eufy-security @.> Cc: Fadi Hamdan @.>; Author @.> Subject: Re: [nonsleepr/ha-eufy-security] Login failed (#37)

Hi There,

Same issue for me. Any help ? Here are the logs: `�[33m2021-03-15 09:54:18 WARNING (MainThread) [homeassistant.loader] You are using a custom integration 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�[0m

�[33m2021-03-15 09:54:18 WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'eufy_security'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'eufy_security'�[0m`

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnonsleepr%2Fha-eufy-security%2Fissues%2F37%23issuecomment-799243776&data=04%7C01%7C%7C1870e166b065442f968008d8e790fb1d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637513957160508506%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=kk0tetyCL941XsUwmtfWtl1DNbtxaWKsXtb%2Fb%2F2MzwE%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALINWF5D47RDVTYO4EJ26A3TDXEIDANCNFSM4ZDYWM7A&data=04%7C01%7C%7C1870e166b065442f968008d8e790fb1d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637513957160518502%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=rat2r6%2BHBzwxgCGwG%2FpnZn20TkAZ7hu543h5a%2F6SuyM%3D&reserved=0.

waudoglio commented 3 years ago

Yes just make another user in Eufy it should work

Hi, same issue, same workaround. I'don't understand why an account is working and another one no. BTW, which device do you have connected to the home base? I have a doorbell but HA is not finding any entity inside this Eufy Security integration

hamdanfadi commented 3 years ago

Do you have MFA enabled in eufy?

On 18/03/2021, at 05:36, waudoglio @.***> wrote:



Yes just make another user in Eufy it should work

Hi, same issue, same workaround. I'don't understand why an account is working and another one no. BTW, which device do you have connected to the home base? I have a doorbell but HA is not finding any entity inside this Eufy Security integration

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnonsleepr%2Fha-eufy-security%2Fissues%2F37%23issuecomment-801232064&data=04%7C01%7C%7C3e24afd7289a46c258fb08d8e962d564%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637515957976461214%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=9tJQnFiVMh6RAL%2FNrOOFu9gRe9hUg50EelLoKIbtfW8%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALINWFYFQVNCCIGOAWDVXS3TEDLBJANCNFSM4ZDYWM7A&data=04%7C01%7C%7C3e24afd7289a46c258fb08d8e962d564%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637515957976461214%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=TuhLbjXtqVp0%2BIGlff5yiijXbxO5I5slTpO0eWkX2Eg%3D&reserved=0.

mmz06 commented 3 years ago

Do you have MFA enabled in eufy?

Yes, MFA is enabled for my account

hamdanfadi commented 3 years ago

Integration doesn't support MFA. So you have to disable it for HA' user and don't make it admin just guest account.

From: mmz06 @.> Sent: Thursday, 18 March 2021 9:20 PM To: nonsleepr/ha-eufy-security @.> Cc: Fadi Hamdan @.>; Author @.> Subject: Re: [nonsleepr/ha-eufy-security] Login failed (#37)

Do you have MFA enabled in eufy?

Yes, MFA is enabled for my account

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnonsleepr%2Fha-eufy-security%2Fissues%2F37%23issuecomment-801725888&data=04%7C01%7C%7C80dede52712b42666a7408d8e9e6a364%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637516524073960276%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=b1O8Fdqts4NTO%2FGW8zszcZ3Jqmav%2FMEYaTOk0OPMi%2FY%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALINWF5HW5RKKLQZ4NX26BLTEGZTLANCNFSM4ZDYWM7A&data=04%7C01%7C%7C80dede52712b42666a7408d8e9e6a364%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637516524073970267%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=yu3RppbzvlMHDrEYJQYU49WNFYzZOAQqNkAJPRjwg88%3D&reserved=0.

waudoglio commented 3 years ago

Sorry guys, I don't get what MFA is.. Can you explain what you mean with MFA? I removed the sharing of the doorbell for the 2nd user (the one inserted in HS) and replaced it with a guest one... But still no entity appears in eufy security integration. Thanks for the support

hamdanfadi commented 3 years ago

Multi factor authentication

From: waudoglio @.> Sent: Thursday, 18 March 2021 9:52 PM To: nonsleepr/ha-eufy-security @.> Cc: Fadi Hamdan @.>; Author @.> Subject: Re: [nonsleepr/ha-eufy-security] Login failed (#37)

Sorry guys, I don't get what MFA is.. Can you explain what you mean with MFA? I removed the sharing of the doorbell for the 2nd user (the one inserted in HS) and replaced it with a guest one... But still no entity appears in eufy security integration. Thanks for the support

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnonsleepr%2Fha-eufy-security%2Fissues%2F37%23issuecomment-801745556&data=04%7C01%7C%7Cbab04c7a68934d9b6c1308d8e9eb0ae7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637516542992574032%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=CYtWz8cr0XewhkQYNF5AH9%2FZJCp%2FY%2FwpXII4iINGpWg%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALINWF6Z5I7XZOF6UMT5EVLTEG5JTANCNFSM4ZDYWM7A&data=04%7C01%7C%7Cbab04c7a68934d9b6c1308d8e9eb0ae7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637516542992584028%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=bS0od1zSUMdxq8nhzwWiRPSCBFEEetayABp3iAtBKZM%3D&reserved=0.

waudoglio commented 3 years ago

So no, I've no MFA on secondary account, just on the primary one

hamdanfadi commented 3 years ago

Do you have Anydesk installed in your computer? I will jump into your computer and I will do it for you

From: waudoglio @.> Sent: Thursday, 18 March 2021 10:01 PM To: nonsleepr/ha-eufy-security @.> Cc: Fadi Hamdan @.>; Author @.> Subject: Re: [nonsleepr/ha-eufy-security] Login failed (#37)

So no, I've no MFA on secondary account, just on the primary one

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnonsleepr%2Fha-eufy-security%2Fissues%2F37%23issuecomment-801751178&data=04%7C01%7C%7C483ac03982f5438f264a08d8e9ec55c3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637516548574960249%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=U74zk8CCt51ZfXJ8y2EqcfR%2FV7tTgVtFeMCKkLqNO9A%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALINWFZRZ2TKSY67XDS4B6LTEG6MJANCNFSM4ZDYWM7A&data=04%7C01%7C%7C483ac03982f5438f264a08d8e9ec55c3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637516548574960249%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=lJePjeXf31%2BpXaFepzEobKInn5C3Yuoq5EGuUqErezw%3D&reserved=0.

waudoglio commented 3 years ago

Ehm... no... At the moment I have Hassio on Rpi4 (nothing like Anydesk on this) and Eufy Home security on a couple of android devices...

Sorry I'm vey noobie on this world, just installed hassio one week ago... :( I appreciate very much your prompt support

Do you have Anydesk installed in your computer? I will jump into your computer and I will do it for you From: waudoglio @.> Sent: Thursday, 18 March 2021 10:01 PM To: nonsleepr/ha-eufy-security @.> Cc: Fadi Hamdan @.>; Author @.> Subject: Re: [nonsleepr/ha-eufy-security] Login failed (#37) So no, I've no MFA on secondary account, just on the primary one - You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnonsleepr%2Fha-eufy-security%2Fissues%2F37%23issuecomment-801751178&data=04%7C01%7C%7C483ac03982f5438f264a08d8e9ec55c3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637516548574960249%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=U74zk8CCt51ZfXJ8y2EqcfR%2FV7tTgVtFeMCKkLqNO9A%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALINWFZRZ2TKSY67XDS4B6LTEG6MJANCNFSM4ZDYWM7A&data=04%7C01%7C%7C483ac03982f5438f264a08d8e9ec55c3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637516548574960249%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=lJePjeXf31%2BpXaFepzEobKInn5C3Yuoq5EGuUqErezw%3D&reserved=0.

waudoglio commented 3 years ago

Moreover at the moment I'm at work, on this PC the network does not allow me to access my Rpi by remote using dynDNS provider. So unfortunately the direct support connection is impossible :(

mmz06 commented 3 years ago

@hamdanfadi: It works well now with this secondary guest non MFA enabled user... Thank you ! :-) Any Plans for MFA support ?

hamdanfadi commented 3 years ago

I’m a user like you. You can ask the developer

On 18/03/2021, at 23:01, mmz06 @.***> wrote:



@hamdanfadihttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhamdanfadi&data=04%7C01%7C%7C46822d1e2e844fcd4bba08d8e9f4c9de%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637516584864378544%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=mefhIctl9yiENrdddw6k4%2BJiWzYpjn4EmfzLGifeNL0%3D&reserved=0: It works well now with this secondary guest non MFA enabled user... Thank you ! :-) Any Plans for MFA support ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnonsleepr%2Fha-eufy-security%2Fissues%2F37%23issuecomment-801789604&data=04%7C01%7C%7C46822d1e2e844fcd4bba08d8e9f4c9de%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637516584864378544%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Xw0CCnzXx2LLaWZLySpMkDEOYm2k46tXHTpOlMFNSc4%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALINWF2OVOHKZ7X26LM3V6DTEHFPHANCNFSM4ZDYWM7A&data=04%7C01%7C%7C46822d1e2e844fcd4bba08d8e9f4c9de%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637516584864388543%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=TKZI8r%2FZGVnEITRM9osYb5BRgU027AYt0wuYdsveJQw%3D&reserved=0.

mmz06 commented 3 years ago

I’m a user like you. You can ask the developer

I missed that... Sure !

waudoglio commented 3 years ago

Maybe this can help to understand the issue. System log reports this error at startup:

Error while setting up eufy_security platform for camera Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 200, 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'

Which device do you have connected to home security? Can it be related to the doorbell device? Or am I missing something?