mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-06-21 17:46:51 +00:00
here_travel_time - Migrate to api_key (#11463)
This commit is contained in:
parent
43df99851e
commit
59d40c9048
@ -19,6 +19,10 @@ HERE offers a Freemium Plan which includes 250,000 free Transactions per month.
|
||||
|
||||
By default HERE will deactivate your account if you exceed the free Transaction limit for the month. You can add payment details to reenable your account as described [here](https://developer.here.com/faqs)
|
||||
|
||||
### Migrate from app_code to api_key
|
||||
|
||||
HERE has changed its authentication mechanism. It is no longer possible to use `app_id` and `app_code`. Existing users have to follow the [migration guide](https://developer.here.com/documentation/authentication/dev_guide/topics/api-key-credentials.html) in order to retrieve the now needed `api_key`.
|
||||
|
||||
## Configuration
|
||||
|
||||
To enable the sensor, add the following lines to your `configuration.yaml` file:
|
||||
@ -27,8 +31,7 @@ To enable the sensor, add the following lines to your `configuration.yaml` file:
|
||||
# Example entry for configuration.yaml
|
||||
sensor:
|
||||
- platform: here_travel_time
|
||||
app_id: "YOUR_APP_ID"
|
||||
app_code: "YOUR_APP_CODE"
|
||||
api_key: "YOUR_API_KEY"
|
||||
origin_latitude: "51.222975"
|
||||
origin_longitude: "9.267577"
|
||||
destination_latitude: "51.257430"
|
||||
@ -36,12 +39,8 @@ sensor:
|
||||
```
|
||||
|
||||
{% configuration %}
|
||||
app_id:
|
||||
description: "Your application's API id (get one by following the instructions above)."
|
||||
required: true
|
||||
type: string
|
||||
app_code:
|
||||
description: "Your application's API code (get one by following the instructions above)."
|
||||
api_key:
|
||||
description: "Your application's API key (get one by following the instructions above)."
|
||||
required: true
|
||||
type: string
|
||||
origin_latitude:
|
||||
@ -109,15 +108,13 @@ Tracking can be set up to track entities of type `device_tracker`, `zone`, `sens
|
||||
sensor:
|
||||
# Tracking entity to entity
|
||||
- platform: here_travel_time
|
||||
app_id: "YOUR_APP_ID"
|
||||
app_code: "YOUR_APP_CODE"
|
||||
api_key: "YOUR_API_KEY"
|
||||
name: Phone To Home
|
||||
origin_entity_id: device_tracker.mobile_phone
|
||||
destination_entity_id: zone.home
|
||||
# Full config
|
||||
- platform: here_travel_time
|
||||
app_id: "YOUR_APP_ID"
|
||||
app_code: "YOUR_APP_CODE"
|
||||
api_key: "YOUR_API_KEY"
|
||||
name: Work to Home By Bike
|
||||
origin_entity_id: zone.work
|
||||
destination_latitude: 59.2842
|
||||
|
Loading…
x
Reference in New Issue
Block a user