Skip to content

Commit 9329aa7

Browse files
ChristianKuehnelfabaff
authored andcommitted
sensor.alpha_vantage: removed Google as default stock (home-assistant#4618)
* removed Google as default stock * extended config example * Add exchange rate
1 parent 3bba87b commit 9329aa7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

source/_components/sensor.alpha_vantage.markdown

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ featured: false
1414
ha_release: "0.60"
1515
---
1616

17-
The `alpha_vantage` sensor platform uses [Alpha Vantage](https://www.alphavantage.co) to monitor the stock market.
17+
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.
1818

1919
To enable the `alpha_vantage` platform, add the following lines to your `configuration.yaml` file:
2020

@@ -23,8 +23,17 @@ To enable the `alpha_vantage` platform, add the following lines to your `configu
2323
sensor:
2424
- platform: alpha_vantage
2525
api_key: YOUR_API_KEY
26+
symbols:
27+
- symbol: GOOGL
28+
name: Google
29+
foreign_exchange:
30+
- name: USD_EUR
31+
from: USD
32+
to: EUR
2633
```
2734
35+
Either a symbol or a foreign exchange must be configured, otherwise you will not get any data.
36+
2837
{% configuration %}
2938
api_key:
3039
description: "The API Key from [Alpha Vantage](https://www.alphavantage.co)."
@@ -33,7 +42,6 @@ api_key:
3342
symbols:
3443
description: List of stock market symbols for given companies.
3544
required: false
36-
default: GOOGL
3745
type: map
3846
keys:
3947
name:

0 commit comments

Comments
 (0)