mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
parent
79b8291436
commit
2402306433
@ -18,16 +18,27 @@ The `fixer` sensor will show you the current exchange rate from [Fixer.io](http:
|
|||||||
|
|
||||||
To get an overview about the available [currencies](http://api.fixer.io/latest).
|
To get an overview about the available [currencies](http://api.fixer.io/latest).
|
||||||
|
|
||||||
|
## {% linkable_title Setup %}
|
||||||
|
|
||||||
|
You need to create an [API key](https://fixer.io/product). There is a rate limit of 1000 calls per month.
|
||||||
|
|
||||||
|
## {% linkable_title Configuration %}
|
||||||
|
|
||||||
To enable this sensor, add the following lines to your `configuration.yaml` file:
|
To enable this sensor, add the following lines to your `configuration.yaml` file:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
- platform: fixer
|
- platform: fixer
|
||||||
|
api_key: YOUR_API_KEY
|
||||||
target: CHF
|
target: CHF
|
||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
|
api_key:
|
||||||
|
description: Your API key for [Fixer.io](http://fixer.io/).
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
target:
|
target:
|
||||||
description: The symbol of the target currency.
|
description: The symbol of the target currency.
|
||||||
required: true
|
required: true
|
||||||
@ -37,9 +48,6 @@ name:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: Exchange rate
|
default: Exchange rate
|
||||||
base:
|
|
||||||
description: The symbol of the base currency.
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: USD
|
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
Details about the API are available in the [Fixer.io documentation](https://fixer.io/documentation).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user