bdraco / yalexs

Python API for Yale Access (formerly August) Smart Lock and Doorbell
MIT License
38 stars 18 forks source link

Camera support in new Yale Global integration/api? #176

Closed abjorck closed 1 week ago

abjorck commented 1 week ago

It looks like they are currently not allowing access to the doorbell apis for the new key/integration.

Do we know if there is a planned way forward for those to be added back in?

bdraco commented 1 week ago

I'll ask about it

bdraco commented 1 week ago

Do you have the exact exception to post?

abjorck commented 1 week ago

Well, they're obivously explicitly disabled in yalexs/const.py supports_doorbells=False,

and setting that to True I end up with:

[yalexs.api_async] Received API response from url: https://api.aaecosystem.com/users/doorbells/mine, code: 403, headers: ...., content: b'{"code":"NotAuthorized","message":"endpoint not allowed for API key"}'
bdraco commented 1 week ago

Well, they're obivously explicitly disabled in yalexs/const.py supports_doorbells=False,

and setting that to True I end up with:

[yalexs.api_async] Received API response from url: https://api.aaecosystem.com/users/doorbells/mine, code: 403, headers: ...., content: b'{"code":"NotAuthorized","message":"endpoint not allowed for API key"}'

There have been a lot of changes. I completely forgot about that.

abjorck commented 1 week ago

nice @bdraco, Got a step further, got a list of cameras, but we apparently also want to call details about each of them via:

2024-09-04 13:58:06.813 DEBUG (MainThread) [yalexs.api_async] About to call https://api.aaecosystem.com/doorbells/{ID} with header={'x-api-key': '', 'x-branding': 'yale', 'x-access-token': '', 'Accept-Version': '0.0.1', 'Content-Type': 'application/json; charset=UTF-8', 'x-august-country': 'US'} and payload=None

2024-09-04 13:58:06.871 DEBUG (MainThread) [yalexs.api_async] Received API response from url: https://api.aaecosystem.com/doorbells/{ID}, code: 403, headers: ..., content: b'{"code":"NotAuthorized","message":"endpoint not allowed for API key"}' 2024-09-04 13:58:06.872 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Home Assistant Cloud' for yale integration could not authenticate: Authentication failed: Verify brand is correct: Forbidden

bdraco commented 1 week ago

I've reported the issue to Yale.

abjorck commented 1 week ago

Seems to have been fixed now!

bdraco commented 1 week ago

Thanks for confirming