Google maps location sharing > no entities showing up

I tried to get the integration above running.

Here is the link to the description:

It says:
Once enabled and you have rebooted devices discovered through this integration will be listed in the known_devices.yaml file within your configuration directory. I have 4 people sharing locations with me and I can see them, p.ex. in maps on android.

They will be created with indentifiers like google_maps_<numeric_id>. To be able to properly track entities you must set the track attribute to true.

From what I know, known_devices.yaml is depreciated. Under
http://192.168.103.44:8123/config/entities, I do not see anything new (I restarted the docker container).

The logs say:

2023-01-06 12:48:55.486 ERROR (SyncWorker_5) [homeassistant.components.google_maps.device_tracker] The cookie file provided does not provide a valid session. Please create another one and try again
2023-01-06 12:48:56.117 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform legacy google_maps

The cookie file (changed some parts) look somehow like this:

# Netscape HTTP Cookie File

.google.com	TRUE	/	TRUE	1688543600	AEC	AakniGNEHPLpmjhfnQneMldbcvea_ml6Phu_twx2Bwösafdjsfjfsjlasf0
.google.com	TRUE	/	TRUE	1736333600	CONSENT	PENDING+646
consent.google.com	FALSE	/	TRUE	1675597631	OTZ	6845027_52_52_166600_48_466680
.google.com	TRUE	/	TRUE	1733333634	SOCS	CAISNQgEEitib3FfaWRlbnksfahökfsajjlkfasdjklasfhfasölA3X3AxGgJkZSACGgYIgMndnQY
.google.com	TRUE	/	TRUE	1633360340	NID
device_tracker:
  - platform: google_maps
    username: "[email protected]"
homeassistant$ ls -alth
insgesamt 88M
-rw-r--r--  1 root  root  4,3M Jan  6 12:36 home-assistant_v2.db-wal
-rw-r--r--  1 root  root   32K Jan  6 12:36 home-assistant_v2.db-shm
-rw-r--r--  1 root  root  230M Jan  6 12:36 home-assistant_v2.db
drwxrwxr-x 10 simon simon   23 Jan  6 12:35 .
drwxr-xr-x  2 root  root    27 Jan  6 12:28 .storage
-rw-r--r--  1 root  root   862 Jan  6 12:25 home-assistant.log
-rw-r--r--  1 root  root     0 Jan  6 12:25 home-assistant.log.fault
-rw-r--r--  1 root  root   34K Jan  6 12:25 home-assistant.log.1
-rw-r--r--  1 root  root   397 Jan  6 12:24 configuration.yaml
-rw-rw-r--  1 simon simon 2,8K Jan  6 12:22 .google_maps_location_sharing.cookies.notmyham_google_com.txt
drwxrwxr-x  4 simon simon    4 Jan  3 15:27 custom_components
drwxr-xr-x  2 root  root     3 Jan  3 15:19 backups
drwxr-xr-x 16 simon simon   32 Jan  3 11:47 ..
drwxr-xr-x  3 root  root     3 Jan  3 10:31 www
drwxr-xr-x  2 root  root     2 Jan  3 09:33 tts
drwxr-xr-x  4 root  root     4 Jan  3 09:33 blueprints
drwxr-xr-x  2 root  root     2 Jan  3 09:33 .cloud
-rw-r--r--  1 root  root     2 Jan  3 09:33 automations.yaml
-rw-r--r--  1 root  root     9 Jan  3 09:33 .HA_VERSION
-rw-r--r--  1 root  root     0 Jan  3 09:33 scenes.yaml
-rw-r--r--  1 root  root     0 Jan  3 09:33 scripts.yaml
-rw-r--r--  1 root  root   161 Jan  3 09:33 secrets.yaml
drwxr-xr-x  2 root  root     2 Jan  3 09:33 deps

This is the list from chromium:

Hi Simon.

I’m trying to use the integration but the same thing happens to me that I can’t get the devices once I reboot, have you succeeded?

Best regards.

started happening to me as well, I tried to update the cookies as I usually do but this time it’s working

Same issue here

I use a python script sending the data via MQTT right now. That works so far.

i have having lot of trouble with google maps sharing. Every few days the cookies expire.

It lasts much longer if you generate the cookies directly on the server running home assistant and if this server does not restart. And then do not use this account on other machines.

much bigger discussion here… Google maps location sharing problems - #26 by jonofmac

Can someone please list the specific instructions from start to finish now that known devices is no longer a thing?

What all are we adding to the config file now?

What are all the steps now? I am not seeing any devices or entities appearing no matter what I seem to do and there is ZERO documentation on how to do this now that known devices is gone.

It seems like everyone skipped over the OP question about this? Many are talking about how the cookie isnt working for very long etc, but some of us don’t even have the basics working yet.

The existing, built-in Google Maps integration is pretty “long in the tooth”. It is still a “legacy” tracker, and still uses known_devices.yaml. I can help you get it working if you like. Just let me know.

But, having said that, I’ve also created a custom version of the integration that solves many of its problems and brings it “up to date.” I can also help you get that working instead if you like.

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