Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to eufy-security-client #105

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

skrobul
Copy link

@skrobul skrobul commented Nov 21, 2021

Main driver behind this change are issues with Firebase registration - see
#78 for details. Also, the eufy-node-client has been deprecated.

Aside from a different name, the main change is how the registration is handled.
Eufy-security-client's new PushNotificationService class handles the
registration itself if needed and emits the 'credential' event when it happens.
On our side, we just listen to this event and persist credentials to disk.

In future, we may want to stop listening to raw events and use normalized
messages provided by PushNotificationService instead. This would potentially
allow supporting more devices.

The new library supposedly supports the 2FA as well, but I have not tried it yet.

Main driver behind this change are issues with Firebase registration - see
matijse#78 for details.

Aside from different name, the main change is how the registration is handled.
Eufy-security-client's new `PushNotificationService` class handles the
registration itself if needed and emits the 'credential' event when it happens.
On our side, we just listen to this event and persist credentials to disk.

In future, we may want to stop listening to raw events and use normalized
messages provided by `PushNotificationService` instead. This would potentially
allow supporting more devices.
@matijse
Copy link
Owner

matijse commented Nov 21, 2021

Thanks for this contribution!

I've decided to no longer actively develop this script, because I don't have enough time and a better alternative for Home Assistant is developed already (see https://github.com/fuatakgun/eufy_security)

I am still open to contributions from others, so this PR can still be merged. But before merging I want to try it out... I can't do that right now, but will try to do it this week. However, glancing over the code, it looks good to me.

@gpbenton
Copy link

Would using this PR also make it possible to use the enable/disable device notifications feature in the eufy-security-client library? It would be useful to stop these when I need to.

@matijse matijse mentioned this pull request Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants