googledevices icon indicating copy to clipboard operation
googledevices copied to clipboard

🚨 📢 Google home endpoints returning 403

Open ludeeus opened this issue 5 years ago • 19 comments

Google has pushed an update to google home devices.

All API endpoints with the exception of /setup/eureka_info not returns 403 (Unauthorized). This change renders this library 95% useless and if not a workaround is discovered this will be deprecated and archived.

ludeeus avatar Jun 28 '19 16:06 ludeeus

It looks like this issue started to roll out 28.06.19 around 02:24 AM (CET) https://github.com/home-assistant/home-assistant/issues/24815

ludeeus avatar Jun 28 '19 16:06 ludeeus

Does this effect the casting functionality or is the 95% more around the alarms/timers/devices tracking

davericher avatar Jun 28 '19 17:06 davericher

Casting? How does this library handle casting?

ludeeus avatar Jun 28 '19 17:06 ludeeus

I have no idea, that is why I am asking, it was a very simple yes/no :D

davericher avatar Jun 28 '19 17:06 davericher

Okay, then no.

Unless they also changed that, but that would be outside of this.

ludeeus avatar Jun 28 '19 17:06 ludeeus

Hey @ludeeus, just wanted to let you know: https://github.com/rithvikvibhu/GHLocalApi/issues/39#issuecomment-511214195

It's just adding another header and changing the base url. I think Home Assistant allows modules to store settings (like a token)?

rithvikvibhu avatar Jul 15 '19 11:07 rithvikvibhu

Thanks for that @rithvikvibhu :)

Storing tokens in HA is not a problem.

Getting the token, on the other hand, looks like it may be too much for most users (require a rooted android device)

Currently I do not own any android devices, so I'm not able to test/dig myself. I'll see if I can load up a VM or something to test this out :)

ludeeus avatar Jul 15 '19 11:07 ludeeus

Yeah, I'm really interested in how the app first gets the token. Maybe while signing in? Might be able to make the same requests.

rithvikvibhu avatar Jul 15 '19 12:07 rithvikvibhu

I think my devices are in a limbo state, where both 8008 and 8443 are working (without auth token).

image

Which from what I can tell is super weird, I'll throw up a VM when it stops working for me to investigate further.

ludeeus avatar Jul 15 '19 12:07 ludeeus

Haha. That's definitely weird. Enjoy it while it lasts xD. If you don't mind losing that "limbo state", restarting has changed for some people.

Edit: Just checked and even mine has the same behavior. Why can't they just stay on something for a while :/

rithvikvibhu avatar Jul 15 '19 13:07 rithvikvibhu

Have you found any solution yet?

Leatherface75 avatar Aug 09 '19 07:08 Leatherface75

No, not yet, and I doubt I will anytime soon (Unless google decides to give you the option to get this token from their dev pages.)

ludeeus avatar Aug 09 '19 07:08 ludeeus

Google Assistant already does that and works in Home Assistant so isn't it possible to get that information with that integration? Both uses this API what i can see https://developers.google.com/actions/smarthome/reference/rest/

Leatherface75 avatar Aug 09 '19 08:08 Leatherface75

I don't see a token in any of the responses there.

ludeeus avatar Aug 09 '19 09:08 ludeeus

Ok i am no expert but there is a lot of commands you can use there and if there is too hard to get local api working maybe it's possible to get informations over that API instead. Atleast better than not working at all.

https://developers.google.com/actions/smarthome/reference/rpc/google.home.graph.v1

What i think it does is running something like this when starting the google home app or similar command to get information of all devices.

https://developers.google.com/actions/smarthome/reference/rest/v1/devices/sync

Leatherface75 avatar Aug 09 '19 15:08 Leatherface75

Here i found something too

https://developers.google.com/actions/smarthome/concepts/local

Leatherface75 avatar Aug 20 '19 20:08 Leatherface75

Since GoogleLocalApi is now working https://github.com/rithvikvibhu/GHLocalApi

Anyway to bring this integration working ?

tyjtyj avatar Jul 20 '20 14:07 tyjtyj

That's a great news! @tyjtyj I don't have a Google Home on hand now so I can't test it. But if I've some time I'd love to help!

eliseomartelli avatar Jul 20 '20 14:07 eliseomartelli

I have a few around @eliseomartelli I'll see if I can do some restructuring here this week to change the port and add an authorization header to the requests.

ludeeus avatar Jul 21 '20 07:07 ludeeus