Zones are not showing up on the map

Hi,

I’m trying to set up zones in Hassio. I see the home-location on the map and I see the trackers from OwnTracks, but not the zones. What am I doing wrong?

This is my setup:

in the config file:

zone: !include zone.yaml

in zone.yaml:

  • name: work-name
    latitude: xx.xxxxxx
    longitude: x.xxxxxx
    radius: 100
    icon: mdi:briefcase-outline

  • name: gym-name
    latitude: xx.xxxxxx
    longitude: x.xxxxxx
    radius: 100
    icon: mdi:dumbbell

Bullet points are not valid yaml.

I think what he’s trying to say is…:wink:

You need to properly format your code for the forum.

Unless that really is the way your code is written in your config. :thinking: If so, then see the post above…

Let me try agan:

  - name: work
    latitude: xx
    longitude: xx
    radius: 100
    icon: mdi:briefcase-outline

  - name: gym
    latitude: xx
    longitude: xx
    radius: 100
    icon: mdi:dumbbell

Do they appear in the dev-state page? (Get there by clicking the <> button in the hamburger menu)

only the zone.home is appearing (and working correctly on the map). The two above are not.

In config it looks 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: !secret home_latitude
  longitude: !secret home_longitude
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 0
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: CET

Do you mean in the dev-state page? Or on the map panel?

zone.home is appearing on the dev-state page and on the map. The work and gym are not appearing on any of the pages.

EDIT: I have no idea why, but the zones just appeared on the map after two days. I fixed some other error and now it is working. Don’t know how the two are related, but it seems like they were.

Easy. If you have a configuration error, it can load everything up to that point and stop. Sometimes it will still run Home Assistant and not tell you of the problem.

are you placing the zones in the zone section? Outside the homeassistant section?

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: !secret home_latitude
  longitude: !secret home_longitude
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 0
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: CET

zone:
  - name: work
    latitude: xx
    longitude: xx
    radius: 100
    icon: mdi:briefcase-outline

  - name: gym
    latitude: xx
    longitude: xx
    radius: 100
    icon: mdi:dumbbell

At the bottom with a

zone: !include zone.yaml

I like the config file tidy. But that might be why it wasn’t working with an error above it.

Ah, I didn’t read the full thread and it appears you already fixed it. My bad!