mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 14:26:51 +00:00
Add details for foreign exchange support (#4374)
This commit is contained in:
parent
f850f2e109
commit
18fe3e4452
@ -33,21 +33,58 @@ api_key:
|
|||||||
symbols:
|
symbols:
|
||||||
description: List of stock market symbols for given companies.
|
description: List of stock market symbols for given companies.
|
||||||
required: false
|
required: false
|
||||||
type: string, list
|
|
||||||
default: GOOGL
|
default: GOOGL
|
||||||
|
type: map
|
||||||
|
keys:
|
||||||
|
name:
|
||||||
|
description: The name of the sensor to use for the frontend.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
currency:
|
||||||
|
description: The name of the sensor to use for the frontend.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: USD
|
||||||
|
symbol:
|
||||||
|
description: The stock market symbol for the given company.
|
||||||
|
required: required
|
||||||
|
type: string
|
||||||
|
foreign_exchange:
|
||||||
|
description: List of currencies.
|
||||||
|
type: map
|
||||||
|
required: false
|
||||||
|
keys:
|
||||||
|
name:
|
||||||
|
description: The name of the sensor to use for the frontend.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
from:
|
||||||
|
description: The source currency.
|
||||||
|
required: required
|
||||||
|
type: string
|
||||||
|
to:
|
||||||
|
description: The target currency.
|
||||||
|
required: required
|
||||||
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
## {% linkable_title Examples %}
|
## {% linkable_title Examples %}
|
||||||
|
|
||||||
In this section you find some real life examples of how to use this sensor.
|
In this section you find some real life examples of how to use this sensor.
|
||||||
|
|
||||||
### {% linkable_title Red Hat and Google %}
|
### {% linkable_title Google and the exchange rate for Bitcoin %}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
sensor:
|
sensor:
|
||||||
- platform: alpha_vantage
|
- platform: alpha_vantage
|
||||||
|
api_key: YOUR_API_KEY
|
||||||
symbols:
|
symbols:
|
||||||
- RHT
|
- name: Google
|
||||||
- GOOGL
|
currency: USD
|
||||||
|
symbol: GOOGL
|
||||||
|
foreign_exchange:
|
||||||
|
- from: BTC
|
||||||
|
to: USD
|
||||||
|
name: Bitcoin
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user