Google maps location sharing problems

FYI, as I know I’ve mentioned before, I’m working on a significantly improved Google Maps integration. Before I submit anything officially, I’m testing out the changes in a “custom component” repository. I will probably have something ready later today for anyone who’d like to try it out – even though not all the documentation is in place yet, and it might still have issues – and provide feedback. I’ll provide the repo URL when it’s ready. I’m willing to “hand hold” anyone who’d like to try it. :smiley:

FYI, it still has the existing “legacy” tracker implementation, so after switching to it, you should see no difference, except for a warning that says the legacy implementation is deprecated. At that point, you can “add” the integration the usual way via the Integrations page in the UI. It will create new entities (that shouldn’t “collide” with the existing, legacy ones), so you can see how it works side-by-side with the original.

Here is what I have implemented so far:

  • Add UI-based config flow, including reconfiguration via the CONFIGURE button.
  • Enable or disable creation of the tracker entity associated with the registered account. Note that this entity is lacking some info (full name, battery level, etc.) Trackers are still created for all people shared with this account regardless of this setting.
  • Can use existing cookies file if found (which eases upgrading), but also includes a file upload feature that makes adding/updating cookies much easier. (I.e., no confusing file renaming and figuring out how to get the file onto the system and in the right place.)
  • Read and display cookie expiration date in config flows.
  • Create a repair issue at startup if cookies will expire in the next four weeks.
  • Check cookie expiration during normal operation (not just at startup.)
  • Initiate reconfiguration flow when cookies expire (either at startup or during normal operation.)
  • Save & restore state during HA restart or config entry reload (which also happens when new cookies are loaded.)
  • Enhance error checking & handling. (Hopefully) no more uncaught exceptions in the log!

As implied above, I still need to work on the documentation. I also plan to test out the cookie file creation procedure on Chrome, Edge & Firefox, and include details instructions for each, possibly even including them in the UI config flow.

Note, unfortunately, there doesn’t seem to be a way to do the authorization directly in HA, so the annoying step of grabbing cookies is still required. However, I’m trying to make that as painless as possible.

Ok, I think the custom integration is good enough for limited usage by those that are willing to provide feedback and can deal with possible issues until I can resolve them. Also, I’ve only done extensive testing with HA 2024.1.5 (and to some extent the dev branch.) I don’t know if there are any issues with older versions, so ymmv.

If that describes you, check out:

pnbruckner/ha-google-maps: Custom Home Assistant Google Maps Integration (github.com)

Also note that for some reason, HACS does not report version tags but reports commit hashes instead. This may be due to the fact that this repo only has beta releases so far. FWIW, 4b21442 is equivalent to 1.0.0b3, which is the latest available release at this point.

Confirmed, integration successful - Thx Phil!

Great! Don’t forget to provide feedback, good or bad. Thanks!

Hello, I installed the integration but I don’t understand how and where I can configure it?

Please see the following new topic for more information & discussion concerning my custom version of the Google Maps integration:

The topic linked above provides more detail. Thanks for wanting to give it a try!

Just checking in, as having fought with the google maps integration since Life360 bailed.
This post, mr. bruckner, was the sought-after piece of the puzzle! clarification of the process was all I needed to get it all working.

At least since yesterday afternoon, EDT, USA.

Google Chrome is my browser of choice, and the pertinent info about my setup
Core 2024.3.1
Supervisor 2024.03.0
Operating System 12.1
Frontend 20240307.0

Running on a Hyper-V instance on Windows11 Pro

THANKS!!!

1 Like

Glad you got it working!

I also added a troubleshooting section to my custom integration docs.

1 Like