From 025eb8d5c901672ae88746eae4a5f8443d31066d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Sat, 10 Feb 2018 19:11:07 +0100 Subject: [PATCH 1/3] removed Google as default stock --- source/_components/sensor.alpha_vantage.markdown | 1 - 1 file changed, 1 deletion(-) diff --git a/source/_components/sensor.alpha_vantage.markdown b/source/_components/sensor.alpha_vantage.markdown index 29712a8d0c99..93059beb8deb 100644 --- a/source/_components/sensor.alpha_vantage.markdown +++ b/source/_components/sensor.alpha_vantage.markdown @@ -33,7 +33,6 @@ api_key: symbols: description: List of stock market symbols for given companies. required: false - default: GOOGL type: map keys: name: From 11c84e29ba11c7b8b73f8d9e7385f8c44db68c79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Sat, 10 Feb 2018 19:20:19 +0100 Subject: [PATCH 2/3] extended config example --- source/_components/sensor.alpha_vantage.markdown | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/_components/sensor.alpha_vantage.markdown b/source/_components/sensor.alpha_vantage.markdown index 93059beb8deb..edab6416a2e2 100644 --- a/source/_components/sensor.alpha_vantage.markdown +++ b/source/_components/sensor.alpha_vantage.markdown @@ -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_stock + 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)." From 951b3d42f5571e2bb46acebd3084f9afb34c27b7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2018 22:58:38 +0100 Subject: [PATCH 3/3] Add exchange rate --- source/_components/sensor.alpha_vantage.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_components/sensor.alpha_vantage.markdown b/source/_components/sensor.alpha_vantage.markdown index edab6416a2e2..f984e7435462 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: @@ -25,7 +25,7 @@ sensor: api_key: YOUR_API_KEY symbols: - symbol: GOOGL - name: Google_stock + name: Google foreign_exchange: - name: USD_EUR from: USD