Skip to content

Commit c5d720d

Browse files
authored
Update configuration samples (home-assistant#1205)
1 parent f64608e commit c5d720d

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

source/_components/proximity.markdown

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,20 @@ To enable this component in your installation, add the following to your `config
3838
```yaml
3939
# Example configuration.yaml entry
4040
proximity:
41-
zone: home
42-
ignored_zones:
43-
- twork
44-
- elschool
45-
devices:
46-
- device_tracker.nwaring_nickmobile
47-
- device_tracker.eleanorsiphone
48-
- device_tracker.tsiphone
49-
tolerance: 50
50-
unit_of_measurement: mi
41+
home:
42+
ignored_zones:
43+
- twork
44+
devices:
45+
- device_tracker.nwaring_nickmobile
46+
tolerance: 50
47+
unit_of_measurement: mi
5148
```
5249
5350
Configuration variables:
5451
5552
- **zone** (*Optional*): The zone to which this component is measuring the distance to. Default is the home zone.
5653
- **ignored_zones** array (*Optional*): Where proximity is not calculated for a device (either the device being monitored or ones being compared (e.g. work or school).
57-
- **devices** array (*Optional*): A list of devices to compare location against to check closeness to the configured zone.
54+
- **devices** array (*Optional*): A list of devices to compare location against to check closeness to the configured zone.
5855
- **tolerance** (*Optional*): The tolerance used to calculate the direction of travel in meters (m) to filter out small GPS coordinate changes.
5956
- **unit_of_measurement** (*Optional*): The unit of measurement for distance. Valid values are (km, m, mi, ft) [kilometers, meters, miles and feet respectfully]. The default value is kilometers.
6057
@@ -63,11 +60,21 @@ To add multiple proximity components, simply use a list in your `configuration.y
6360
```yaml
6461
# Example configuration.yaml entry
6562
proximity:
66-
- zone: home
63+
home:
64+
ignored_zones:
65+
- twork
66+
- elschool
67+
devices:
68+
- device_tracker.nwaring_nickmobile
69+
- device_tracker.eleanorsiphone
70+
- device_tracker.tsiphone
71+
tolerance: 50
72+
unit_of_measurement: mi
73+
home3:
6774
devices:
6875
- device_tracker.tsiphone
6976
tolerance: 50
70-
- zone: work
77+
work:
7178
devices:
7279
- device_tracker.elanorsiphone
7380
tolerance: 10

0 commit comments

Comments
 (0)