You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/zone.markdown
+16-18Lines changed: 16 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -13,29 +13,27 @@ ha_category: Organization
13
13
14
14
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.
15
15
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:
17
17
18
18
```yaml
19
19
# Example configuration.yaml entry
20
20
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
26
26
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
31
30
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
39
37
```
40
38
41
39
Configuration variables:
@@ -47,7 +45,7 @@ Configuration variables:
47
45
- **icon** (*Optional*): Optional icon to show instead of name.
48
46
- **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.
49
47
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)
0 commit comments