Skip to content

Commit

Permalink
Update for Refactor Waze Travel Time #21632
Browse files Browse the repository at this point in the history
update to the documentation when home-assistant/core#21632 hits.
  • Loading branch information
Petro31 authored and balloob committed Jun 26, 2019
1 parent 1fd61f3 commit 8194dd0
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions source/_components/waze_travel_time.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ sensor:
{% configuration %}
origin:
description: Enter the starting address or the GPS coordinates of the location (GPS coordinates has to be separated by a comma). You can also enter the entity id of a sensor, device_tracker, person, or zone, which provides this information in its state.
description: Enter the starting address or the GPS coordinates of the location (GPS coordinates has to be separated by a comma). You can also enter an entity id which provides this information in its state, a entity id with latitude and longitude attributes, or zone friendly name.
required: true
type: string
destination:
description: Enter the destination address or the GPS coordinates of the location (GPS coordinates has to be separated by a comma). You can also enter the entity id of a sensor, device_tracker, person, or zone, which provides this information in its state.
description: Enter the destination address or the GPS coordinates of the location (GPS coordinates has to be separated by a comma). You can also enter an entity id which provides this information in its state, a entity id with latitude and longitude attributes, or zone friendly name.
required: true
type: string
region:
Expand All @@ -63,6 +63,10 @@ realtime:
description: If this is set to false, Waze returns the time estimate, not including current conditions, but rather the average travel time for the current time of day. The parameter defaults to true, meaning Waze will return real-time travel time.
required: false
type: boolean
units:
description: "Set the unit for the sensor in metric or imperial, otherwise the default unit the same as the unit set in `unit_system:`."
required: false
type: string
{% endconfiguration %}

## {% linkable_title Example using dynamic destination %}
Expand Down Expand Up @@ -95,11 +99,26 @@ sensor:
{%- else -%}
Unknown
{%- endif %}
# Tracking entity to entity
- platform: waze_travel_time
name: "Me to destination"
origin: device_tracker.myphone
destination: sensor.dest_address
region: 'US'
# Tracking entity to zone friendly name
- platform: waze_travel_time
name: Home To Eddie's House
origin: zone.home
destination: Eddies House # Friendly name of a zone
region: 'US'
# Tracking entity in imperial unit
- platform: waze_travel_time
origin: person.paulus
destination: "725 5th Ave, New York, NY 10022, USA"
region: 'US'
units: imperial # 'metric' for Metric, 'imperial' for Imperial
```
{% endraw %}

0 comments on commit 8194dd0

Please sign in to comment.