mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
sensor.alpha_vantage: removed Google as default stock (#4618)
* removed Google as default stock * extended config example * Add exchange rate
This commit is contained in:
parent
3bba87b248
commit
9329aa74cc
@ -14,7 +14,7 @@ featured: false
|
||||
ha_release: "0.60"
|
||||
---
|
||||
|
||||
The `alpha_vantage` sensor platform uses [Alpha Vantage](https://www.alphavantage.co) to monitor the stock market.
|
||||
The `alpha_vantage` sensor platform uses [Alpha Vantage](https://www.alphavantage.co) to monitor the stock market. This platform also provides detail about exchange rates.
|
||||
|
||||
To enable the `alpha_vantage` platform, add the following lines to your `configuration.yaml` file:
|
||||
|
||||
@ -23,8 +23,17 @@ To enable the `alpha_vantage` platform, add the following lines to your `configu
|
||||
sensor:
|
||||
- platform: alpha_vantage
|
||||
api_key: YOUR_API_KEY
|
||||
symbols:
|
||||
- symbol: GOOGL
|
||||
name: Google
|
||||
foreign_exchange:
|
||||
- name: USD_EUR
|
||||
from: USD
|
||||
to: EUR
|
||||
```
|
||||
|
||||
Either a symbol or a foreign exchange must be configured, otherwise you will not get any data.
|
||||
|
||||
{% configuration %}
|
||||
api_key:
|
||||
description: "The API Key from [Alpha Vantage](https://www.alphavantage.co)."
|
||||
@ -33,7 +42,6 @@ api_key:
|
||||
symbols:
|
||||
description: List of stock market symbols for given companies.
|
||||
required: false
|
||||
default: GOOGL
|
||||
type: map
|
||||
keys:
|
||||
name:
|
||||
|
Loading…
x
Reference in New Issue
Block a user