mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 07:46:52 +00:00
Add config flow to Open Exchange Rates (#23693)
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
a9931cc2cb
commit
94d9ea340e
@ -4,6 +4,7 @@ description: Instructions on how to integrate exchange rates from https://openex
|
|||||||
ha_category:
|
ha_category:
|
||||||
- Finance
|
- Finance
|
||||||
ha_iot_class: Cloud Polling
|
ha_iot_class: Cloud Polling
|
||||||
|
ha_config_flow: true
|
||||||
ha_release: 0.23
|
ha_release: 0.23
|
||||||
ha_domain: openexchangerates
|
ha_domain: openexchangerates
|
||||||
ha_platforms:
|
ha_platforms:
|
||||||
@ -11,37 +12,8 @@ ha_platforms:
|
|||||||
ha_integration_type: integration
|
ha_integration_type: integration
|
||||||
---
|
---
|
||||||
|
|
||||||
The `openexchangerates` sensor will show you the current exchange rate from [Open Exchange Rates](https://openexchangerates.org) that provides realtime exchange rates for [170 currencies](https://openexchangerates.org/currencies). The free account is limited to only USD as a base currency, allows 1000 requests per month, and updates every hour.
|
The Open Exchange Rates integration will show you the current exchange rate from [Open Exchange Rates](https://openexchangerates.org) that provides real-time exchange rates for [170 currencies](https://openexchangerates.org/currencies). The free account is limited to only USD as a base currency, allows 1000 requests per month, and updates every hour.
|
||||||
|
|
||||||
Obtain your API key [here](https://openexchangerates.org/signup)
|
Obtain your API key [here](https://openexchangerates.org/signup)
|
||||||
|
|
||||||
To enable this sensor, add the following lines to your `configuration.yaml` file:
|
{% include integrations/config_flow.md %}
|
||||||
|
|
||||||
```yaml
|
|
||||||
# Example configuration.yaml entry
|
|
||||||
sensor:
|
|
||||||
- platform: openexchangerates
|
|
||||||
api_key: YOUR_API_KEY
|
|
||||||
quote: EUR
|
|
||||||
```
|
|
||||||
|
|
||||||
{% configuration %}
|
|
||||||
name:
|
|
||||||
description: The name of the sensor.
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: Exchange Rate Sensor
|
|
||||||
api_key:
|
|
||||||
description: "The API Key for [Open Exchange Rates](https://openexchangerates.org)."
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
quote:
|
|
||||||
description: The symbol of the quote or target currency.
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
base:
|
|
||||||
description: The symbol of the base currency. Note that, changing the API `base` currency is not part of the freemium API plan.
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: USD
|
|
||||||
{% endconfiguration %}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user