Location sensors - Making use of "High accuracy mode when entering zone"

I thank you for all the advice you gave me, the links, and the information. I have read and reread them several times. But I can’t understand them, only few things. I don’t know if it’s the fault of the translator, who translates badly, or simply my stupidity (the most obvious thing according to Occam’s razor). But I would like understand…I think to have a lot of troubles

so here are the steps I took and the configurations I made:
upon first installation I activated the tracker sensor and it asked me for high precision and only when using the app. then it asked me to disable battery optimization

then in the settings I have:
sensor update rate: always fast. every minute always
sensor management:
proximity sensor: disabled
geolocation sensors
geographic location
enable sensor: enabled.
sensor setup - update sensor with position sensors: enabled
minimum precision 200

position sensors:
High precision position range: 5 seconds
high precision mode: (false) but if I go inside the enable sensor button is on

position in backgroud: enabled
if I enter the menu
high precision mode activated
only when entering the area
“zone.home”
High precision mode activation range 800 meters
minimum precision 200 exact position

single accurate position: enabled
location zone enabled

these are the settings I have. is it okay how I put them? should it work like this? I forgot something?

I don’t know where else to go. maybe inside my Samsung somewhere in the battery settings should I add the home assistant application among those that should not be put on standby? but I don’t know where to find this setting…because I searched but didn’t find it.

So you decide to only let the app get location data when the app is open? Why did you think allow all the time was not a good option? Especially when it was called out as a troubleshooting step (2).

How do you expect the app to get location updates without having location data all the time?

As you have a Samsung device you have more things to disable like power saving, data saving etc… this was mentioned in step 4 in troubleshooting.

As mentioned in the docs this setting only impacts sensors and not location reporting.

This will lead to extra battery drain. I think we also mention this in our troubleshooting section.

I have another question to ask: I saw that you can make the high precision sensor switch off when you connect to a wifi, with a trigger (there is also an example of the code)… the question is: would it be possible instead of using a trigger to create a switch, in order to manually turn the high precision sensor on and off?
thanks

Sure…
Just create an automation that triggers on the switch (input boolean) and send the command to the phone.

Okay…thanks!!!. did you create this switch too? I am having difficulty turning high precision on and off when I need it. I was thinking that by creating this switch, I could then, with some specific conditions (e.g., when you are 3000 meters from home and your tracker’s speed is over 15 m/s), activate the high precision sensor, and when you are connected to the Wi-Fi network, it should remain off (I am doing this using Node-RED). In your opinion, could this work? Or, in this case, would the switch not work? only one questione, what’s input boolean? I insered this in configuration.yaml
I’ve not undestand the different between input bolean or not input bolean

switch

  • platform: template
    switches:
    gps_high_accuracy:
    friendly_name: “GPS Alta Precisione”
    value_template: “{{ is_state(‘sensor.gps_high_accuracy’, ‘on’) }}”
    turn_on:
    service: notify.mobile_ap
    data:
    message: “command_high_accuracy_mode”
    data:
    command: “turn_on”
    turn_off:
    service: notify.mobile_ap
    data:
    message: “command_high_accuracy_mode”
    data:
    command: “turn_off”

You need to format the code as preformatted text or its unreadable.

okey…

another queston… if I unistall and reinstall on android home app companion and configure it works well… overy one minutes update tracker distance… but if my android phone turn off at restart not works well

how is possible that?

I don’t know

the app uses workmanager, if the app was killed for whatever reason you just need to open it again once and it will reschedule it. your device may have lost the schedule during shutdown.