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

Google Keep sensor not working since 0.118.x #15

Open
Roei639 opened this issue Nov 20, 2020 · 35 comments
Open

Google Keep sensor not working since 0.118.x #15

Roei639 opened this issue Nov 20, 2020 · 35 comments
Assignees
Labels
bug Something isn't working

Comments

@Roei639
Copy link

Roei639 commented Nov 20, 2020

Google Keep sensor not working

Source: custom_components/google_keep/sensor.py:39
Integration: חיישן (documentation, issues)
First occurred: 13:51:34 (1 occurrences)
Last logged: 13:51:34

Error while setting up google_keep platform for sensor
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 "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, 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.8/site-packages/gkeepapi/__init__.py", line 693, in login
    ret = auth.login(username, password, get_mac())
  File "/usr/local/lib/python3.8/site-packages/gkeepapi/__init__.py", line 59, in login
    raise exception.LoginException(
gkeepapi.exception.LoginException: ('BadAuthentication', None)```
@PiotrMachowski
Copy link
Owner

Have it worked before?
Which version of python do you have?
Do you use 2FA?
Do you use app password?

@PiotrMachowski PiotrMachowski self-assigned this Nov 20, 2020
@Roei639
Copy link
Author

Roei639 commented Nov 20, 2020

Have it worked before? - yes
Which version of python do you have? - python 3.8.5
Do you use 2FA? - yes
Do you use app password? - yes

@Roei639
Copy link
Author

Roei639 commented Nov 21, 2020

  1. Yes
  2. Python 3.8.5
  3. Yes
  4. Yes

@PiotrMachowski
Copy link
Owner

You can check out this thread, maybe some solution will work for you (I would start with captcha)

@Roei639
Copy link
Author

Roei639 commented Nov 21, 2020

There is no solution. Disable 2FA verification did not help either.

@PiotrMachowski
Copy link
Owner

This integration uses unofficial API, so maybe Google somehow blocks it in some conditions... It's really hard to say

@Roei639
Copy link
Author

Roei639 commented Nov 21, 2020

A few days ago it worked for me ...
I see I have more sensors that are not working and a similar error
Maybe related to Python?

@PiotrMachowski
Copy link
Owner

Has anything in your HA changed in a meantime?

@Roei639
Copy link
Author

Roei639 commented Nov 21, 2020

Update Version 0.118.2

@PiotrMachowski
Copy link
Owner

How is your HA installed?

@Roei639
Copy link
Author

Roei639 commented Nov 21, 2020

Docker

@thorin8k
Copy link

thorin8k commented Nov 21, 2020

Same problem here, working nicely until update HA to 0.118. Since then the sensor keeps saying 'BadAuthentication' when system starts.

@PiotrMachowski
Copy link
Owner

Can you manually change manifest.json file to this version:

{
  "domain": "google_keep",
  "name": "Google Keep",
  "documentation": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-Google-Keep",
  "dependencies": [],
  "codeowners": ["@PiotrMachowski"],
  "requirements": ["gkeepapi==0.13.1"]
}

then restart HA and check if sensor is working?

@Roei639
Copy link
Author

Roei639 commented Nov 21, 2020

Does not work

@thorin8k
Copy link

thorin8k commented Nov 22, 2020

Same here, updated gkeepapi to 0.13.1 via manifest and same exception. I will try again the captcha thing and see if it helps.

edit: Nah, same exception.

@PiotrMachowski
Copy link
Owner

I'm afraid I can't do anything more for now

@superharaldsson
Copy link

The same for me! No fix yet?

Home Assistant 0.118.2

@Ameglialuna
Copy link

Same problem.

Home Assistant 0.118.2

@Roei639 Roei639 changed the title Google Cape sensor not working Google Keep sensor not working Nov 23, 2020
@PiotrMachowski PiotrMachowski added the bug Something isn't working label Nov 23, 2020
@PiotrMachowski PiotrMachowski changed the title Google Keep sensor not working Google Keep sensor not working in 0.118.x Nov 23, 2020
@PiotrMachowski PiotrMachowski pinned this issue Nov 23, 2020
@superharaldsson
Copy link

Same in 0.118.3

@Funcy-dcm
Copy link

Same problem

@Bird55
Copy link

Bird55 commented Nov 30, 2020

Same in 0.118.4

@txusebe
Copy link

txusebe commented Dec 8, 2020

same in 0.118.5

@txusebe
Copy link

txusebe commented Dec 8, 2020

it works,
pip install requests 2.25.0
pip install oauthlib 3.1.0
pip install requests-oauthlib 1.3.0

@homp
Copy link

homp commented Dec 13, 2020

Installed the 3 python modules mentioned above in the homeassistant venv, still getting the error:

gkeepapi.exception.LoginException: ('BadAuthentication', None)

HA 0.118.4

@superharaldsson
Copy link

Installed the 3 python modules mentioned above in the homeassistant venv, still getting the error:

gkeepapi.exception.LoginException: ('BadAuthentication', None)

HA 0.118.4

Same for me

@LukaszP2
Copy link

Same ;/ 2020.12.0

@txusebe
Copy link

txusebe commented Dec 18, 2020

same in 2020.12.1 but i fix it with pyatmo one more time

pip install -U --force-reinstall pyatmo

@Scags104
Copy link

Scags104 commented Dec 20, 2020

how do you run the pip command on an rpi4 running HA? i have the terminal open but wont let me....

update: figured out i was using the wrong terminal. ran the command, reboot and..... still an error

@STiCory
Copy link

STiCory commented Dec 21, 2020

I'm getting the same exact error:
TrueNas 12.0-U1 running a 12.1-RELEASE-p12 jail
Home Assistant 2020.12.1
Python 3.8.6
HA google keep integration V1.1.0
GKEEPAPI 0.13.3
image

@cokeman0
Copy link

cokeman0 commented Jan 8, 2021

anyone found a solution for this ? I can't get it working

@krelltunez
Copy link

I just installed the add-on via HACS. I entered the info in my config.yaml file, and I'm getting the exact same error as the first post. I'm on Home Assistant 2021.1.0 (on a Raspberry Pi).

I have NO IDEA how to even run the pip commands on the Raspberry Pi; based on some research I understand it is not possible.

update: figured out i was using the wrong terminal. ran the command, reboot and..... still an error

@Scags104 what do you mean "the wrong terminal?" How did you run the command?

Thanks all.

@Scags104
Copy link

Scags104 commented Jan 9, 2021 via email

@PiotrMachowski PiotrMachowski changed the title Google Keep sensor not working in 0.118.x Google Keep sensor not working since 0.118.x Jan 18, 2021
@zevulos
Copy link

zevulos commented Feb 5, 2021

I have tried all the steps above and still have this problem, please update us when the API is working

@Funcy-dcm
Copy link

2021.2.2 - working again! But I changed the password on my google account

@mac00daddy
Copy link

I just installed this integration and front end card via HACS in HA 2022.3.6. Initially I used the same app pw I had created for HA to send email notifications via my GMail account. I wasn't seeing any errors, but the state of the sensor entity was 0 and it didn't show any of my Keep Notes. I created a new Google app password and set the sensor to use it. It now shows all of my notes under the sensor attributes and the state is > 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests