diff --git a/source/_components/sensor.alpha_vantage.markdown b/source/_components/sensor.alpha_vantage.markdown index 29712a8d0c9..f984e743546 100644 --- a/source/_components/sensor.alpha_vantage.markdown +++ b/source/_components/sensor.alpha_vantage.markdown @@ -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: