Home radius

Is there a way to set the radius of the default home zone? It seems to be set at 100m, and if I add a radius to the config file it throws an error.

This is not working?

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

That did work, thought I tried thatā€¦ Thanks!

hello!

tried that but got an error:

no extra keys not allowed for home

Do you have a zoneā€™s file?

ahm NO :grinning:

so this is the zone.yaml and not the configuration.yaml.

iā€˜ll try

thank you so much

1 Like

No, no, no.
I was worried that you may have had a conflict between the two.
Leave as is.
Can you post the relevant section from your config, replacing any sensitive data as you wish, itā€™s probably just a yaml spacing issue.

thx for your answer.

this is my configuration section


  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: xxxxx
  longitude: xxxxx
  radius: 180
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 184
  # metric for Metric, imperial for Imperial

and the error is:

ā€žextra keys not allowed @ data[ā€˜radiusā€™]ā€œ

thank you

Well this looks wrong but it may be just how you have posted it. When posting yaml you should use the </> button in the header of the text editing box. Yaml Ainā€™t a Mark-up Language but it is hierarchical so things relating to an item are usually indented from it so that ā€˜homeā€™ has attributes and they are defined as : lattitide, longitude, radius and elevation (if you do a search for any element, home in this case, go to Google and type ā€œhome assistant zoneā€ and peruse what comes back. Iā€™ve learnt a lot from simple searches like that. Replace the last word with the term you need)
Anyway your code should look like this : -


homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: xxxxx
  longitude: xxxxx
  radius: 180
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 184
  icon: mdi:home
  # metric for Metric, imperial for Imperial

Do you see that homeassistant: has no spaces before it and all the rest have 2 spaces.? You should have a homeassistant: line in your config and the home element should be under that and indented from it (2 spaces is the standard indent)
It may be this way in your file (as your formatting may not have been preserved (or just as I couldnā€™t see the relationship to ā€œhomeassistant:ā€), weā€™re just trying to eliminate possibilities here). Come back if thatā€™s the case, well, come back anyway to mark your issue closed :slight_smile:
My set up is different as I use a zone file but the principle is similar.
You may find that the yaml spacing is off, try indenting radius to the same level as latitude.
(This wonā€™t help ypu so just ignore the next 2 paragraphs)
If that doesnā€™t work : - the way that HA defines home for everyone has changed. So Iā€™d advise you to remove (or just comment out (put a # at the start of each line) the following lines : - a) the name: Home line. b) the latitude line c) the longitude line d) the radius line e) the elevation line and f) the icon line
Then, go to configuration - General, and enter your details in there.

If the reason you are entering radius is for presence detection then we will need to nail the radius, probably by creating the zone.yaml file we talked about before. Iā€™m away from home at the moment so Iā€™m entering all this on a phone, there will be multiple errors and Iā€™ll try to edit them out. Bear with us we will get this issue sorted for you.
Regards
Mutt

Hi @ jasondreher,
I would like to know if you found a solution to your questions since Iā€™m having the same problem?
SKAL

UPDATE:
after poking and looking around Iā€™ve found the solution to the question.
in the configuration -> customization conf page you can set the radius and all the rest of the parameters.
after that you have to ad the following code to the customize.yaml

homeassistant:
  customize: !include customize.yaml

Hope it help all the people looking for a solution :slight_smile:

2 Likes