PiotrMachowski / Home-Assistant-custom-components-Google-Keep

This sensor uses gkeepapi library to download a list of notes from https://keep.google.com/.
MIT License
66 stars 7 forks source link

Stop Working #31

Open milandzuris opened 1 year ago

milandzuris commented 1 year ago

Integration Stop Working, have problem with login to google, i think is good make new integration and setup from UI.

BebeMischa commented 1 year ago
Logger: homeassistant.components.sensor
Source: custom_components/google_keep/sensor.py:39
Integration: Sensor (documentation, issues)
First occurred: 6 mei 2023 om 03:33:03 (1 occurrences)
Last logged: 6 mei 2023 om 03:33:03

Error while setting up google_keep platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/google_keep/sensor.py", line 39, in setup_platform
    login_success = keep.login(username, password)
  File "/usr/local/lib/python3.10/site-packages/gkeepapi/__init__.py", line 693, in login
    ret = auth.login(username, password, get_mac())
  File "/usr/local/lib/python3.10/site-packages/gkeepapi/__init__.py", line 59, in login
    raise exception.LoginException(
gkeepapi.exception.LoginException: ('BadAuthentication', None)

@PiotrMachowski , would you please have a look in to this? Thank you very much in advance. ;-)

milandzuris commented 1 year ago
Logger: homeassistant.components.sensor
Source: custom_components/google_keep/sensor.py:39
Integration: Sensor (documentation, issues)
First occurred: 6 mei 2023 om 03:33:03 (1 occurrences)
Last logged: 6 mei 2023 om 03:33:03

Error while setting up google_keep platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/google_keep/sensor.py", line 39, in setup_platform
    login_success = keep.login(username, password)
  File "/usr/local/lib/python3.10/site-packages/gkeepapi/__init__.py", line 693, in login
    ret = auth.login(username, password, get_mac())
  File "/usr/local/lib/python3.10/site-packages/gkeepapi/__init__.py", line 59, in login
    raise exception.LoginException(
gkeepapi.exception.LoginException: ('BadAuthentication', None)

@PiotrMachowski , would you please have a look in to this? Thank you very much in advance. ;-)

same

superharaldsson commented 1 year ago

Same here!

yjamal01 commented 1 year ago

same issue here since 2023.5

AlexKusnezov commented 1 year ago

same here

milandzuris commented 1 year ago

this problem i have last month i think from core 2023.4

milandzuris commented 1 year ago

you start working on this problem or is time to delete? (question) thx

PiotrMachowski commented 1 year ago

you start working on this problem or is time to delete? (question) thx

Huh? I'm not sure what you mean.

I have confirmed that this problem exists on my instance as well. I suspect this issue has been caused by upgrade of requests library. This integration uses gkeepapi library and it seems to be highly dependent on version of requests.

BebeMischa commented 1 year ago

So, @PiotrMachowski , do we need to check/update something in our systems, or is it something you would need to take care of? If we can fix it our self, fine, if we just do know how... ;-)

PiotrMachowski commented 1 year ago

No, you can't fix it. I'm not sure if I can fix it, as it seems to be a problem with a library that I use

BebeMischa commented 1 year ago

Well, then I just wish you the strength to over-win this ;-) Will wait quietly with hope on my mind ;-)

cagarrinho commented 1 year ago

Same here! @PiotrMachowski I sincerely hope you can help us. this integration of yours is very important to me. Thank you very much.

Disturbx commented 1 year ago

I'd be happy if this is gonna be fixed :)

ostracizado commented 1 year ago

Would it be possible to use the master token, instead?

Seems it was the work around for other custom integrations, such as @leikoilja's ha-google-home.

PiotrMachowski commented 1 year ago

@ostracizado it should be possible (library documentation)

Roei639 commented 1 year ago

I have the same problem, is there a solution?

biejay commented 1 year ago

Same here

slake119 commented 1 year ago

Is there a hope this is going to be resolved or is the project dead now?

PiotrMachowski commented 1 year ago

@slake119 There is a hope, but I don't have much time at this moment.

BebeMischa commented 1 year ago

So, should I now declare this card not reliable enough and look for a different approach? It now takes too long... ;-)

AFumi39 commented 1 year ago

So, should I now declare this card not reliable enough and look for a different approach? It now takes too long... ;-)

Let me know if you find a different method do manage GKeep lists on HA, please. Now that Google dismissed 3rd party list integration from Assistant, I had to come back to GKeep and there's no working integration :(

PS: I will abandon any Google product as soon as possible. No improvements, only removed features, lot of EOL, no support, nothing that works well, many bugs, etc

BebeMischa commented 1 year ago

that's, what I mean. I will just look for completely another solution. Bye bye Google Keep... ;-)

PiotrMachowski commented 1 year ago

that's, what I mean. I will just look for completely another solution. Bye bye Google Keep... ;-)

It might be a good idea - this integration uses a library that uses an unofficial way to get data from GKeep, so there's absolutely no guarantee. Additionally it constantly keeps on breaking on changes of underlying libraries/python versions.

AFumi39 commented 1 year ago

Yeah, I use Bring! from few months, right now. Lot better than Keep (but there's also AnyList and similar). But with last changes of Google Assistant, from today custom shopping lists are not supported anymore. You have to use Google Keep, so I'm trying to find a way to connect with Keep and maybe sync it with Bring

milandzuris commented 1 year ago

Áno, používam Bring! od pár mesiacov práve teraz. Oveľa lepšie ako Keep (ale je tu aj AnyList a podobne). S poslednými zmenami Asistenta Google však od dnešného dňa už nie sú podporované vlastné nákupné zoznamy. Musíte používať službu Google Keep, takže sa snažím nájsť spôsob, ako sa spojiť s aplikáciou Keep a možno ju synchronizovať s aplikáciou Bring

same

ELind77 commented 1 year ago

I have the same problem.

Cross-listing the dependency issue ticket for visibility: https://github.com/simon-weber/gpsoauth/issues/48

CodeNeedsCoffee commented 1 year ago

you start working on this problem or is time to delete? (question) thx

Huh? I'm not sure what you mean.

I have confirmed that this problem exists on my instance as well. I suspect this issue has been caused by upgrade of requests library. This integration uses gkeepapi library and it seems to be highly dependent on version of requests.

What version of requests is your integration dependent on? I'm wondering if it would be possible to maybe have a local version of the requests library for the specific version the integration requires and import it from a local source for this specific integration..?

PiotrMachowski commented 1 year ago

At this moment integration uses version that is installed by HA (requests==2.31.0 for HA 2023.7.3)

elfux commented 1 year ago

so, still not working? thanks!

superharaldsson commented 1 year ago

Is there any hope of getting it going again? Or should I start looking for other options?

CodeNeedsCoffee commented 1 year ago

Just wanted to chime in here with my personal "hot take"; I did try to create a specific docker image that individuals could use that would host the correct version of the libraries and rebuild the HA integration to use this new docker, but after reviewing the gkeepapi and eventually getting the docker to work, I realized that there are some security flaws with this approach so I decided to not pursue the project any further. I will be working on a new one since I'm still determined to integrate Google Keep with Home Assistant, but I do not believe this specific component will be coming back to life in the near future.

PiotrMachowski commented 1 year ago

@CodeNeedsCoffee what have you changed to make it work?

jgkawell commented 10 months ago

Any update on this? I have the same use case as others where I wish to use Google Assistant to maintain grocery lists in Keep and sync with Home Assistant. Is there a path forward with the current integration? If someone has a path in the right direction I'm open to attempting a fix.

CodeNeedsCoffee commented 9 months ago

The unfortunate part is that Google only allows API access for enterprise/business level accounts and not for consumer level accounts. Recreating a working API has proven to have multiple road blocks depending on different forms of authentication. We could just use an app password but I personally don't like that approach and feel like it's less secure. With that being said, I am actively working on a replacement component but currently don't have anything to show.

On Sat, Nov 4, 2023, 10:09 AM Jack Kawell @.***> wrote:

Any update on this? I have the same use case as others where I wish to use Google Assistant to maintain grocery lists in Keep and sync with Home Assistant. Is there a path forward with the current integration? If someone has a path in the right direction I'm open to attempting a fix.

— Reply to this email directly, view it on GitHub https://github.com/PiotrMachowski/Home-Assistant-custom-components-Google-Keep/issues/31#issuecomment-1793498179, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEBEXEPVCVYH4BD3WXAEDT3YCZZFDAVCNFSM6AAAAAAXZEC52GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJTGQ4TQMJXHE . You are receiving this because you were mentioned.Message ID: <PiotrMachowski/Home-Assistant-custom-components-Google-Keep/issues/31/1793498179 @github.com>

StefanoGiu commented 7 months ago

I used keyring and tokens to make it work again. How can I create a pull request?

tjorim commented 7 months ago

Feel free to Google how to use git/GitHub. Basically fork this repo, make the code adjustments, push it and open a PR.

StefanoGiu commented 7 months ago

Done

PiotrMachowski commented 7 months ago

Thanks @StefanoGiu, I'll check it out 👍