I noticed that the integration was not working anymore, always showing everyone
not connected. So I deleted the integration, re-added it and created the new cookie file. It is updating now, but it doesn’t show any of my friends as entities anymore. If I let it create an entity for me, it works, showing my location. I also added another account with me in it and that works as well. However, my main account that should be able to see the people that are sharing with me doesn’t work. It works fine in Google, but this integration doesn’t find them anymore. V1.3.2
What version of HA Core are you using?
Have you enabled debug for the integration? If not, please do so.
With debug enabled for the integration, are there any log messages (ERROR, WARNING or DEBUG), that can shed any light?
Feel free to send me a PM or chat with details.
Version 2024.5.2 I turned on the debug. I will send you a PM.
Release 1.3.4b0
20241031 1.3.4
- Add timeout to server requests. In some cases, it was possible for server requests to not finish and to hang forever. If this happens, the timeout should abort the request so the integration can retry.
Released 1.3.5b0
- Use UTC datetimes internally to avoid DST → Standard Time issues
- Use HA’s local time zone for
last_seen
instead of the OS’s time zone
any idea if this works for kids/supervised accounts? I can’t create a separate account because of that.
I don’t really know. All I can say is, if you can see another person’s location via Google Maps, then this integration should be able to see them, too. It basically pretends to be Google Maps.
I’ve been using this integration since around February and have been pretty pleased with it. Using version 1.3.4 and HA core 2024.10.4.
I’m using the “pers & alt accts” strategy. I’ve been paying attention the last few months and realized that the cookies for my pers account expire every 14 days like clockwork. The alt account cookies haven’t expired in many months. One thing worth noting in case it makes a difference is that my pers account is a “google apps for my domain” account, or whatever google is calling it these days. It is not a [email protected] account.
Any idea why I am having to refresh the cookies every 14 days? Perhaps the cookies on a personal domain acct aren’t as long-lived as a standard gmail acct?
Honestly, I have no idea. I also use the “pers & alt accts” strategy, but my personal account is a “regular” Google/gmail account (i.e., me @gmail.com.) I have not had the cookies expire. Currently, the cookies expiration date for both accounts are about two years from now.
Strange. I just checked the cookie expiration for my pers account that I renewed cookies for yesterday, and the integration says those cookies expire 400 days from when I generated them. I will see if I can get any other clues about why this cookie file keeps needing renewal every 14 days.
The expiration date the integration displays is based on the expiration dates of a few of the cookies it gets from the server. The server often updates these cookies (which you can see in debug log messages), and the integration saves the newer cookies (and their newer expiration dates) when received (which appears to happen about every 15 minutes.)
However, the server is free to decide when it no longer likes the “login” (expressed by those cookies.) This is why I came up with the procedures I did; i.e., to attempt to avoid “offending” the server and having it prematurely “log out” the “session.”
But since Google doesn’t document, or really support, any of this, there’s no way to really know what’s going on.