Skip to content

Commit de9d800

Browse files
dale3hfabaff
authored andcommitted
Update example and minor text changes (home-assistant#3325)
1 parent 3b5627f commit de9d800

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

source/_components/zone.markdown

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,27 @@ ha_category: Organization
1313

1414
Zones allow you to specify certain regions on earth (for now). When a device tracker sees a device to be within a zone, the state will take the name from the zone. Zones can also be used as a [trigger](/getting-started/automation-trigger/#zone-trigger) or [condition](/getting-started/automation-condition/#zone-condition) inside automation setups.
1515

16-
Zones support the usual method to specify multiple zones, use keys `zone:`, `zone 2:` etc.
16+
The Zone component uses YAML sequences to configure multiple zones:
1717

1818
```yaml
1919
# Example configuration.yaml entry
2020
zone:
21-
name: School
22-
latitude: 32.8773367
23-
longitude: -117.2494053
24-
radius: 250
25-
icon: mdi:school
21+
- name: School
22+
latitude: 32.8773367
23+
longitude: -117.2494053
24+
radius: 250
25+
icon: mdi:school
2626

27-
zone 2:
28-
name: Work
29-
latitude: 32.8753367
30-
longitude: -117.2474053
27+
- name: Work
28+
latitude: 32.8753367
29+
longitude: -117.2474053
3130

32-
# This will override the default home zone
33-
zone 3:
34-
name: Home
35-
latitude: 32.8793367
36-
longitude: -117.2474053
37-
radius: 100
38-
icon: mdi:account-multiple
31+
# This will override the default home zone
32+
- name: Home
33+
latitude: 32.8793367
34+
longitude: -117.2474053
35+
radius: 100
36+
icon: mdi:account-multiple
3937
```
4038
4139
Configuration variables:
@@ -47,7 +45,7 @@ Configuration variables:
4745
- **icon** (*Optional*): Optional icon to show instead of name.
4846
- **passive** (*Optional*): Optional boolean to only use the zone for automation and hide it from the UI and not use the zone for device tracker name. Defaults to false.
4947
50-
To find your latitude/longitude of a certain place you can use for example [Google Maps](https://www.google.nl/maps/) or [Bing Maps](https://www.bing.com/maps). Just right click and copy the coordinates from there (Bing) or click on the "What is here?" (Google)
48+
To find the latitude/longitude of a certain place you can use [Google Maps](https://www.google.com/maps/) or [Bing Maps](https://www.bing.com/maps). Just right click and copy the coordinates from there (Bing) or click on the "What is here?" (Google)
5149
5250
#### {% linkable_title Home zone %}
5351

0 commit comments

Comments
 (0)