mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-06-22 18:17:02 +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)
|
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
|
## Configuration
|
||||||
|
|
||||||
To enable the sensor, add the following lines to your `configuration.yaml` file:
|
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
|
# Example entry for configuration.yaml
|
||||||
sensor:
|
sensor:
|
||||||
- platform: here_travel_time
|
- platform: here_travel_time
|
||||||
app_id: "YOUR_APP_ID"
|
api_key: "YOUR_API_KEY"
|
||||||
app_code: "YOUR_APP_CODE"
|
|
||||||
origin_latitude: "51.222975"
|
origin_latitude: "51.222975"
|
||||||
origin_longitude: "9.267577"
|
origin_longitude: "9.267577"
|
||||||
destination_latitude: "51.257430"
|
destination_latitude: "51.257430"
|
||||||
@ -36,12 +39,8 @@ sensor:
|
|||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
app_id:
|
api_key:
|
||||||
description: "Your application's API id (get one by following the instructions above)."
|
description: "Your application's API key (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)."
|
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
origin_latitude:
|
origin_latitude:
|
||||||
@ -109,15 +108,13 @@ Tracking can be set up to track entities of type `device_tracker`, `zone`, `sens
|
|||||||
sensor:
|
sensor:
|
||||||
# Tracking entity to entity
|
# Tracking entity to entity
|
||||||
- platform: here_travel_time
|
- platform: here_travel_time
|
||||||
app_id: "YOUR_APP_ID"
|
api_key: "YOUR_API_KEY"
|
||||||
app_code: "YOUR_APP_CODE"
|
|
||||||
name: Phone To Home
|
name: Phone To Home
|
||||||
origin_entity_id: device_tracker.mobile_phone
|
origin_entity_id: device_tracker.mobile_phone
|
||||||
destination_entity_id: zone.home
|
destination_entity_id: zone.home
|
||||||
# Full config
|
# Full config
|
||||||
- platform: here_travel_time
|
- platform: here_travel_time
|
||||||
app_id: "YOUR_APP_ID"
|
api_key: "YOUR_API_KEY"
|
||||||
app_code: "YOUR_APP_CODE"
|
|
||||||
name: Work to Home By Bike
|
name: Work to Home By Bike
|
||||||
origin_entity_id: zone.work
|
origin_entity_id: zone.work
|
||||||
destination_latitude: 59.2842
|
destination_latitude: 59.2842
|
||||||
|
Loading…
x
Reference in New Issue
Block a user