How to reduce the radius of the default Home zone

Hello

The default radius of the Home zone is 100m and that is far too big. The docs allege that creating a new “Home” zone will override the default Home, but that’s a lie. How do I reduce the radius of the default Home zone?

core-2021.9.4

4 Likes

Create a new one with the same name of Home. Then specify the radius.

zone:
  # This will override the default home zone
  - name: Home
    latitude: 32.8793367
    longitude: -117.2474053
    radius: 35
    icon: mdi:account-multiple
3 Likes

I agree with the OP that there seems to be something fishy.

Creating a “Home” zone manually (at least via the UI) doesn’t replace the actual “home”.
It just creates a new zone, and a person will be located in “Home” (the zone name) and not in “home” (the inverse of “not_home”)

2 Likes

The UI is broken then?

1 Like

I don’t use the UI to override the Home zone - so I don’t know. But configuring it manually through YAML seems to override the Home zone.

Yep. Just retested with the zone definition in YAML, as described by @ardysusilo , and that works, but it doesn’t work via the UI.

Definitely a bug to be reported.

2 Likes

Using YAML is also broken. It also creates another Zone without overriding the default one.

EDIT: I try to restart HA. I’ll see.
Restarting seems to have solved the issue.

3 Likes

You can just go to customisations, select home and adjust the radius.
I made mine bigger the other day.

2 Likes

It works. After restart you will only have zone.home.

This does work for when you have set the name of ‘Home’ to ‘Home’. If not, it will only work when you do set a zone in configuration.yaml with the name ‘Home’ and it will overide the name you used for the ‘Home’ location. So it is either change the radius or keep the ‘Home’ name.

1 Like

I’m a bit surprised something that should be so simple is so complicated to get resolved. I’m just starting to use HA, but configuring a very basic setting is already a pain.

5 Likes

UPD: never mind, this does not survive HA restart uhh

Hey folks, I’ve found a way to set Zone radius in UI as of HA 2023.4.4:

  1. Find Left Menu as Admin
  2. Open “Developer Tools”
  3. Open “States” sub-tab in “Developer Tools”
  4. Type Zone name “Home” or other
  5. Check that YAML loaded with default “radius” value of “100”
  6. Change radius value to desired (seems to be meters)
  7. Verify that “Settings” → “Areas & Zones” → “Zones” renders your zone with new radius (worked w/o restart for me!)
31 Likes

You are a real one! Thank you figuring this out and sharing. Was starting to warm up to HA, then had this minor setting set me back a day. Thank you for solving what others could not

Sorry if you’ve read my reply through email notification, I’ve updated it since then

UPD: reducing zone radius via Developer Tools in HA does not survive restart, it’s in-memory setting.

I ended up modifying configuration.yaml like so with values from Developer Tools and custom radius (in meters):

zone:
  - name: Home
    latitude: 12.3456
    longitude: 78.91023
    radius: 50

Now this survives HA restart! But unfortunately can’t be done via UI without filesystem access.

3 Likes

i know this is an old post but fixed it for me, thanks! Actually it didn’t survive a reboot. is this entry in the main HA configuration.yaml?

i put this in my configuration.yaml and the location does work, but the radius does not. Was trying to make the location radius smaller.

Add to customize.yaml

zone.home:
  radius: 50
6 Likes

i have this in my configuration.yaml, is this wrong? everything seems to work but the radius. i added radius:50 into the customize.yaml and it worked, thank you!

zone:
  - name: Home
    latitude: 49.24749
    longitude: -122.87197
    radius: 10
    icon: mdi:home-account

I end up with two zones named Home.
When i look into the entities i have zone.home and zone.home_2
I restarted HA but that didn’t help.
What am i doing wrong ?

What version of HA are you on? Try to remove the zone_2 and restart. Does it come back?

looks like adding this to the configuration.yaml seems to set the radius of home.

homeassistant:
  customize:
    zone.home:
      radius: 20

Annoyingly though i have a zone.home_2 also which i cant get rid of. This was from adding a zone in confuguration.yaml called Home. Does anyone know how to get rid of this zone now, it wont let me from entities or the map edit. (yes i have removed it from configuration.yaml and restarted)

EDIT: looks like my zona.home_2 has gone now. Under developer tools i did clear its states, but expect it sorted itself out.

17 Likes