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
so this is the zone.yaml and not the configuration.yaml.
iāll try
thank you so much
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
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