This rally is a fantastic work, kudos to you man! Any chance we can use gmaps location to fetch data about places visited, let’s say when the position is still for more than 10 min?
Ex: if I’m still for more than 10 min then fetch location (ex. Starbucks, grocery store etc.)
The device_tracker entity already has an address attribute that often provides a pretty good estimate of the address of where the device is located.
Beyond that, no. That would be outside the scope of a device tracker integration. You should look for other integrations that can provide information about where a device tracker is…
E.g., pnbruckner/ha-entity-tz: Home Assistant Entity Time Zone Sensor. In particular, check out the Address sensor and its attributes.
As your an answer wasn’t so self-explanatory to me, it took me some time to figure out the solution. for reference of everybody else, this is what solved the problem for me:
configuration.yaml:
homeassistant:
customize: !include customize.yaml
customize.yaml:
device_tracker.<your_entity_id>:
entity_picture: https://lh3.googleusercontent.com/<look_up_url_via_browser_cache>
FWIW, it’s a standard HA feature, although the documentation for it is a bit buried and cryptic. The GUI used to have more direct support for customization, but that was dropped a while ago (as far as I can recall), but the YAML support is still there.
Also, you can get the URL by going to, e.g., myaccount.google.com (or any other web page where you can see your picture), then right-click on it and copy the image link.
If I click the ‘add’ link I get
Error
This integration does not support configuration via the UI. If you followed this link from the Home Assistant website, make sure you run the latest version of Home Assistant.
and I’m running the latest version - any ideas?
And searching for it manually doesn’t bring it up, only the Google Maps official non-ui one shows there…
You need to install the custom integration from here:
pnbruckner/ha-google-maps: Custom Home Assistant Google Maps Integration
Then after restarting HA, you should be good to go.
I’m confused. I went there, clicked, and get the error above. So how do I install it? If I chose manual installation, it’s not shown in the list (only Google and then Google Maps under google is there).
There are two installation methods documented: With HACS & Manual. Did you click the triangle (e.g., next to Manual) to see the full procedure, and then did you follow it? If you did, then when you try to add the integration configuration entry (on the Settings → Devices & Services page), it should have worked.
If you’re not familiar enough with how the internals of HA work, it’s probably easier to install using HACS.
solved, thanks.
Hi, I’m trying your integration to get the location of the members of my family. For a start I’m trying directly with my account to then extend the data also to the other members. I’ve setup everything correctly (it seems). HA generate the tracker entity and the same entity gets updated (I see in the attributes the GPS coordinates and they are correct) but HA doesn’t set to entity to Home when I’m at the home coordinates set up into zones. I’ve checked and but gps attributes and zone coordinate are the same. What can I do to check what’s wrong?
Thanks
The integration does not set the state of the device_tracker entity. It only provides the GPS data and the device tracker “component level” code decides the state.
Can you provide the full state of the device_tracker.google_maps_xxx entity, as well as zone.home? Feel free to PM me instead of posting those details here.
How can I get those logs?
Sorry but I’m a bit new to HA
Go to the Developer tools page, then click on the STATES tab. Now, find an entity you want the full state of, click on it, then go to the top of the page. It should show the state and all its attributes.
Just installed after fumbling around with the core component.
This integration was a breeze to configure, clear instructions.
How it should be ![]()
Thank You
Sorry for the super late reply. I check everything again and found the error in my configuration. Everything works as intended. Thanks a lot for your work
lovelace card
Released 1.4.0b0
- Drop support for HA versions before 2024.8.3.
- Move file I/O to executor.
Sorry, I created this new version quite a while ago (like right after the 1.3.5 release) and have been running it on my test system, but I got distracted and never released it as a beta.
Just recently got this setup with creating a secondary email and then shared my email to it, and in the integration I can see my email that I shared the location from, but my girfriend shared he location to the same email that I shared mine with, but it does not show up as a device or entity. I have tried reloading it, restarting HA but nothing. Is there something else I need to do?
I haven’t set up sharing on Google for a long time, so I don’t remember the details of how it works. You might want to go to Google Maps, maybe in an incognito window, and log in with the secondary email. Then go to “Location sharing” (under the “three bar” menu in the top-left corner) and see if your girlfriend is listed there. I honestly don’t recall if that account has to accept the location sharing invitation or something.
FWIW, I only use the secondary account to “see” my normal account. I have everyone else share their location with my normal account (because I want to see them on the Google Maps app on my phone, too.)
Got it working, for some reason her adding me did not work, but as soon as I sent a request it showed the email account in the integration.