mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-27 19:26:50 +00:00
Minimizing of the configuration sample (#1017)
This commit is contained in:
parent
1abe7da82c
commit
8a386143a4
@ -22,7 +22,6 @@ To add the Bitcoin sensor to your installation, add a selection of the available
|
|||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
platform: bitcoin
|
platform: bitcoin
|
||||||
currency: YOUR CURRENCY
|
|
||||||
display_options:
|
display_options:
|
||||||
- exchangerate
|
- exchangerate
|
||||||
- trade_volume_btc
|
- trade_volume_btc
|
||||||
|
@ -21,7 +21,6 @@ To add the CoinMarketCap sensor to your installation, add the following lines to
|
|||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
- platform: coinmarketcap
|
- platform: coinmarketcap
|
||||||
currency: bitcoin
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
|
@ -23,15 +23,13 @@ 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
|
||||||
name: EUR
|
target: CHF
|
||||||
base: EUR
|
|
||||||
target: CHF
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
|
|
||||||
|
- **target** (*Required*): The symbol of the target currency.
|
||||||
- **name** (*Optional*): Name to use in the frontend.
|
- **name** (*Optional*): Name to use in the frontend.
|
||||||
- **base** (*Optional*): The symbol of the base currency. Default to USD
|
- **base** (*Optional*): The symbol of the base currency. Default to USD
|
||||||
- **target** (*Required*): The symbol of the target currency.
|
|
||||||
|
|
||||||
|
@ -25,14 +25,12 @@ To enable this sensor, add the following lines to your `configuration.yaml` file
|
|||||||
sensor:
|
sensor:
|
||||||
- platform: openexchangerates
|
- platform: openexchangerates
|
||||||
api_key: YOUR_API_KEY
|
api_key: YOUR_API_KEY
|
||||||
base: USD
|
|
||||||
quote: EUR
|
quote: EUR
|
||||||
name: USDEUR
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
|
|
||||||
- **api_key** (*Required*): API Key for [Open Exchange Rates](https://openexchangerates.org).
|
- **api_key** (*Required*): API Key for [Open Exchange Rates](https://openexchangerates.org).
|
||||||
- **name** (*Optional*): Name to use in the frontend.
|
|
||||||
- **base** (*Optional*): The symbol of the base currency. Defaults to USD
|
|
||||||
- **quote** (*Required*): The symbol of the quote or target currency.
|
- **quote** (*Required*): The symbol of the quote or target currency.
|
||||||
|
- **name** (*Optional*): Name to use in the frontend.
|
||||||
|
- **base** (*Optional*): The symbol of the base currency. Defaults to USD.
|
||||||
|
@ -22,8 +22,6 @@ To enable the `yahoo_finance` platform, add the following lines to your `configu
|
|||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
- platform: yahoo_finance
|
- platform: yahoo_finance
|
||||||
name: Red Hat Inc.
|
|
||||||
symbol: RHT
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
@ -31,16 +29,25 @@ Configuration variables:
|
|||||||
- **name** (*Optional*): The name of the sensor. If not specified, it defaults to *Yahoo Stock*.
|
- **name** (*Optional*): The name of the sensor. If not specified, it defaults to *Yahoo Stock*.
|
||||||
- **symbol** (*Optional*): The stock market symbol for a given company. If not specified, it defaults to *Yahoo (YHOO)*.
|
- **symbol** (*Optional*): The stock market symbol for a given company. If not specified, it defaults to *Yahoo (YHOO)*.
|
||||||
|
|
||||||
Example configuration:
|
## {% linkable_title Examples %}
|
||||||
|
|
||||||
|
In this section you find some real life examples of how to use this sensor.
|
||||||
|
|
||||||
|
### {% linkable_title Red Hat %}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: yahoo_finance
|
- platform: yahoo_finance
|
||||||
name: Red Hat Inc.
|
name: Red Hat Inc.
|
||||||
symbol: RHT
|
symbol: RHT
|
||||||
|
```
|
||||||
|
|
||||||
|
### {% linkable_title Google %}
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
sensor:
|
||||||
- platform: yahoo_finance
|
- platform: yahoo_finance
|
||||||
name: Google
|
name: Google
|
||||||
symbol: GOOGL
|
symbol: GOOGL
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user