mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 18:36:51 +00:00
Proximity List and Configurable Unit of Measure (#698)
* Proximity List and Configurable Unit of Measure List of proximity component and valid unit of measurement configuration * Add type to code segment * Add default value to markdown
This commit is contained in:
parent
24d3f6adaa
commit
9ba7da10a1
@ -47,6 +47,7 @@ proximity:
|
|||||||
- device_tracker.eleanorsiphone
|
- device_tracker.eleanorsiphone
|
||||||
- device_tracker.tsiphone
|
- device_tracker.tsiphone
|
||||||
tolerance: 50
|
tolerance: 50
|
||||||
|
unit_of_measurement: mi
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
@ -55,4 +56,19 @@ Configuration variables:
|
|||||||
- **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).
|
- **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).
|
||||||
- **devices** array (*Optional*): A list of devices to compare location against to check closeness to the configured zone.
|
- **devices** array (*Optional*): A list of devices to compare location against to check closeness to the configured zone.
|
||||||
- **tolerance** (*Optional*): The tolerance used to calculate the direction of travel in meters (m) to filter out small GPS coordinate changes.
|
- **tolerance** (*Optional*): The tolerance used to calculate the direction of travel in meters (m) to filter out small GPS coordinate changes.
|
||||||
|
- **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.
|
||||||
|
|
||||||
|
To add multiple proximity components, simply use a list in your `configuration.yaml` file:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example configuration.yaml entry
|
||||||
|
proximity:
|
||||||
|
- zone: home
|
||||||
|
devices:
|
||||||
|
- device_tracker.tsiphone
|
||||||
|
tolerance: 50
|
||||||
|
- zone: work
|
||||||
|
devices:
|
||||||
|
- device_tracker.elanorsiphone
|
||||||
|
tolerance: 10
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user