I still, after 2 years, have not been able to get the tracking of me back working in Ha from the Alexa App. It used to work, but for strange reasons, it all seems messed up.I have Cloudflare set up as well as Nabu Casa. But when I try to do an Automation, the outside lights do not come on when I come home. Be great if anyone can have the time to help get me sorted out. I would also be willing to pay for tea and cakes for the help
Not sure if Im linked to auto tracking in Ha either, Has you can see a total mess in HA Automation now with all the confusion with it. I have done a new fresh setup and again tested it out and it still does not work. I can see me move into the different zones but lights are not coming on or off with me. I 'm using a S25 for tracking and companion app on my mobile, with Nabu Casa, plus Cloudflare private Domain, and I feel I’m paying somthing for nothing as it worked free at the start but now I’m paying for 2 years its never worked! Hope someone has time to help me on this issue.
What does the trace show for your automation?
Will you paste your automation here so we can help? Use the preformatted text tax so it shows correctly here.
Trace really does not help me at all I find it hard to fully understand it but will try to post you!
Logs are also not telling me a lot either. Though I have removed some older devices that where still showing up.
I have no Google maps tracking setup in it either, and also trying to figured out the correct cookie address for it to a add into HA with Samba. Seems to be a total mess at how these Ha documents are written up as they do not really explain enough to me and I have no real clue on what I’m trying to do?
Can you please explain what this is totally meaning as I have no url in my Brower to add onto this name to add into Ha it would be a very long name!
Or do I not need Google Maps in it to work at all? DO I need anything in the Config, or will they work without anything in it?
I’m getting really frustrated and confused on it all!
- Save the cookie file to your Home Assistant configuration directory with the following name:
.google_maps_location_sharing.cookies.followed by the slugified username of the NEW Google account (account B).
- For example: If your email address was
[email protected], the filename would be:.google_maps_location_sharing.cookies.location_tracker_gmail_com.
I also think the trace as changed since yesterday and missing out the parts to get the location Zones, which was showing up yesterday, but I have been messing around all day with Google maps API and not got any where with it at all!
I followed this video except I missed certain bits where it was adding into the configuration.yaml file and made the differences there are now in the much updated HA versions!
HOME ASSISTANT - LOCATION BASED LIGHTING AUTOMATIONS - PART 5 of 5
Ok figured how to post all of the Trace now!
id: '98986576467675'
alias: Turn On my Outside Lights when I arrive Home
description: Will turn on outside lights when I get home
- trigger: zone
entity_id: device_tracker.sm_s938b_samsung_s25_ultra
zone: zone.Homearea1
event: enter
id: arriving_home
- trigger: zone
entity_id: device_tracker.sm_s938b_samsung_s25_ultra
zone: zone.Homearea2
event: leave
id: leaving_home
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- arriving_home
- condition: sun
after: sunset
before: sunrise
sequence:
- action: light.turn_on
target:
entity_id: light.all_outside_lights
data: {}
- conditions:
- condition: trigger
id:
- leaving_home
- condition: sun
after: sunset
before: sunrise
sequence:
- action: light.turn_off
target:
entity_id: light.all_outside_lights
data: {}
mode: single
I’ve also noticed its tracking my very old Note 10+ mobile when I look on the Map, but do not see any s25 or s24 mobile trackers either, but they are all showing up in my Mobile section in Ha
I have also checked Companion App on my mobile to make sure it working in the background too.
That is not a trace. That is your automation.
From the edit automation screen, go to Traces. Then, the three dot menu on the top right, click Download Trace. Open in notepad, copy all of it and paste here in the preformatted text tag.
thanks!
{
"trace": {
"last_step": "action/0/choose/0/sequence/0",
"run_id": "b9615c7570b0f3dadc15030a82beddde",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2026-01-15T17:31:47.277884+00:00",
"finish": "2026-01-15T17:31:47.402130+00:00"
},
"domain": "automation",
"item_id": "1728960372371",
"trigger": "device_tracker.sm_s938b_samsung_s25_ultra entering zone",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2026-01-15T17:31:47.277915+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.turn_outside_light_on",
"state": "on",
"attributes": {
"id": "1728960372371",
"last_triggered": "2026-01-15T16:50:16.640994+00:00",
"mode": "single",
"current": 0,
"friendly_name": "Turn On my Outside Lights when I arrive Home"
},
"last_changed": "2026-01-15T02:00:54.468940+00:00",
"last_reported": "2026-01-15T16:50:16.752755+00:00",
"last_updated": "2026-01-15T16:50:16.752755+00:00",
"context": {
"id": "01KF1917Y0GNPREAFSXM44PBRN",
"parent_id": "01KF1917Y0EHN6QZ79EMXSFS56",
"user_id": null
}
},
"trigger": {
"id": "arriving_home",
"idx": "0",
"alias": null,
"platform": "zone",
"entity_id": "device_tracker.sm_s938b_samsung_s25_ultra",
"from_state": {
"entity_id": "device_tracker.sm_s938b_samsung_s25_ultra",
"state": "Europe",
"attributes": {
"source_type": "gps",
"latitude": 175.682994,
"longitude": -37.871871,
"gps_accuracy": 18,
"altitude": 181,
"course": 0,
"speed": 0,
"vertical_accuracy": 1,
"friendly_name": "SM-S938B - Samsung S25 Ultra"
},
"last_changed": "2026-01-15T17:28:54.240146+00:00",
"last_reported": "2026-01-15T17:28:54.240146+00:00",
"last_updated": "2026-01-15T17:28:54.240146+00:00",
"context": {
"id": "01KF1B7Z70ZNPVPN6NGJCK0C88",
"parent_id": null,
"user_id": null
}
},
"to_state": {
"entity_id": "device_tracker.sm_s938b_samsung_s25_ultra",
"state": "home",
"attributes": {
"source_type": "gps",
"latitude": 175.682994,
"longitude": -37.871871,
"gps_accuracy": 18,
"altitude": 184,
"course": 0,
"speed": 0,
"vertical_accuracy": 0,
"friendly_name": "SM-S938B - Samsung S25 Ultra"
},
"last_changed": "2026-01-15T17:31:47.277332+00:00",
"last_reported": "2026-01-15T17:31:47.277332+00:00",
"last_updated": "2026-01-15T17:31:47.277332+00:00",
"context": {
"id": "01KF1BD86D93XCPAV4FVGAC80E",
"parent_id": null,
"user_id": null
}
},
"zone": {
"entity_id": "zone.zone",
"state": "0",
"attributes": {
"latitude": 175.682994,
"longitude": -37.871871,
"radius": 116.1747264438354,
"passive": false,
"persons": [],
"editable": true,
"icon": "mdi:home-group",
"friendly_name": "Zone"
},
"last_changed": "2026-01-15T16:50:16.642724+00:00",
"last_reported": "2026-01-15T16:50:16.642724+00:00",
"last_updated": "2026-01-15T16:50:16.642724+00:00",
"context": {
"id": "01KF1917Y2W9VYAXTH40MBV951",
"parent_id": null,
"user_id": null
}
},
"event": "enter",
"description": "device_tracker.sm_s938b_samsung_s25_ultra entering zone"
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2026-01-15T17:31:47.278146+00:00",
"changed_variables": {
"context": {
"id": "01KF1BD86DR9FT11KJCAFT1234",
"parent_id": "01KF1BD86D93XCPAV4FVGAC80E",
"user_id": null
}
},
"result": {
"choice": 0
}
}
],
"action/0/choose/0": [
{
"path": "action/0/choose/0",
"timestamp": "2026-01-15T17:31:47.278215+00:00",
"result": {
"result": true
}
}
],
"action/0/choose/0/conditions/0": [
{
"path": "action/0/choose/0/conditions/0",
"timestamp": "2026-01-15T17:31:47.278244+00:00",
"result": {
"result": true
}
}
],
"action/0/choose/0/conditions/1": [
{
"path": "action/0/choose/0/conditions/1",
"timestamp": "2026-01-15T17:31:47.289969+00:00",
"result": {
"wanted_time_before": "2026-01-15T08:19:28.324861+00:00",
"wanted_time_after": "2026-01-15T16:19:05.410622+00:00",
"result": true
}
}
],
"action/0/choose/0/sequence/0": [
{
"path": "action/0/choose/0/sequence/0",
"timestamp": "2026-01-15T17:31:47.290385+00:00",
"result": {
"params": {
"domain": "light",
"service": "turn_on",
"service_data": {},
"target": {
"entity_id": [
"light.all_outside_lights"
]
}
},
"running_script": false
}
}
]
},
"config": {
"id": "1728960372371",
"alias": "Turn On my Outside Lights when I arrive Home",
"description": "Will turn on outside lights when I get home",
"triggers": [
{
"trigger": "zone",
"entity_id": "device_tracker.sm_s938b_samsung_s25_ultra",
"zone": "zone.zone",
"event": "enter",
"id": "arriving_home"
},
{
"trigger": "zone",
"entity_id": "device_tracker.sm_s938b_samsung_s25_ultra",
"zone": "zone.zone_street",
"event": "leave",
"id": "leaving_home"
}
],
"conditions": [],
"actions": [
{
"choose": [
{
"conditions": [
{
"condition": "trigger",
"id": [
"arriving_home"
]
},
{
"condition": "sun",
"after": "sunset",
"before": "sunrise"
}
],
"sequence": [
{
"action": "light.turn_on",
"target": {
"entity_id": "light.all_outside_lights"
},
"data": {}
}
]
},
{
"conditions": [
{
"condition": "trigger",
"id": [
"leaving_home"
]
},
{
"condition": "sun",
"after": "sunset",
"before": "sunrise"
}
],
"sequence": [
{
"action": "light.turn_off",
"target": {
"entity_id": "light.all_outside_lights"
},
"data": {}
}
]
}
]
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "01KF1BD86DR9FT11KJCAFTQD83",
"parent_id": "01KF1BD86D93XCPAV4FVGA1234",
"user_id": null
}
},
"logbookEntries": [
{
"name": "Turn On my Outside Lights when I arrive Home",
"message": "triggered by device_tracker.sm_s938b_samsung_s25_ultra entering Neighbourhood",
"source": "device_tracker.sm_s938b_samsung_s25_ultra entering Zone",
"entity_id": "automation.turn_outside_light_on",
"context_id": "01KF1BD86DR9FT11KJCAFT1234",
"domain": "automation",
"when": 1768498307.277981
}
]
}
I also cannot get Google Maps into Ha either! It just gives me a black screen!
Not sure if that is to do with incorrect name of the cookie or the web site address in the API section to say what allowed or not allowed is also confusing me!
I will add a few images of the other issues I think might not be helping me get a fix to this.
For the cookie naming I have attempted!
For the bit in the API section of Google Cloud I’m not fully sure what address to add in? At a guess I added my home assistant URL Ip address.
And this is the Black Screen when I have added the API into it added me as a person into it, and added the Cookie to the root of Home Assistant.
Where I added the Google cookie that is suppose to go into root of HA
Your trace shows that it worked and turned on the lights.
For privacy you should probably edit out the coordinates to your home.
So this sections correct so it may be trying to get google into it as its not working!
I now just tested on a ipad that is not going through HA and works I think not fully certain yet.
But again does not come on soon enough.
Not at all sure why HA is and has not worked for me.
I also have it through Cloudshare and Nabu Casa so it should work!
I can turn light on and off when out, but that’s about it!
It still does not turn the lights on when I get Home.
Yes done that now I think thanks
@petro can you remove the coordinates from the posts that show in the edits (before edit)?
I have now got the map to show up in Home Assistant, but again testing on this Automation no lights go off or come on.
Is there anything else it could be or for me to check, as its shared in Google maps as well!
I’ve also noticed over the 2 years to trying to get this to work that the Home name for Zones was named home_default and on a quick look last night it said it was, when the system defaults to a fallback name due to a configuration issue and had to go to a default and that I needed to add.
So I have added these settings now into the configuration.yaml
homeassistant:
name: Home
latitude: 175.68290283917344
longitude: -37.872073730198025
elevation: 0
unit_system: metric
will see if it works out tonight, as I do not know how to check it while still Home.
But the Home is now named Home in the zones and positioned in the right places, as they also seemed to be away from home location too.
On me testing tonight they still did not work!



