Skip to content

Commit 0bc1fc4

Browse files
authored
Minimizing of the configuration sample (home-assistant#1019)
1 parent 227d5a3 commit 0bc1fc4

File tree

7 files changed

+44
-37
lines changed

7 files changed

+44
-37
lines changed

source/_components/graphite.markdown

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ To enable this component, add the following lines to your `configuration.yaml`:
1919
```yaml
2020
# Example configuration.yaml entry
2121
graphite:
22-
host: IP_ADDRESS
23-
port: 2003
24-
prefix: ha
2522
```
2623
2724
Configuration variables:

source/_components/influxdb.markdown

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,31 @@ To use the `influxdb` component in your installation, add the following to your
1919
```yaml
2020
# Example configuration.yaml entry
2121
influxdb:
22-
host: DB_HOST_IP_ADDRESS
22+
```
23+
24+
Configuration variables:
25+
26+
- **host** (*Optional*): IP address of your database host, eg. http://192.168.1.10. Defaults to `localhost`.
27+
- **port** (*Optional*): Port to use. Defaults to 8086.
28+
- **username** (*Optional*): The username of the database user.
29+
- **password** (*Optional*): The password for the database user account.
30+
- **database** (*Optional*): Name of the database to use. Defaults to `home_assistant`. The database must already exist.
31+
- **ssl** (*Optional*): Use https instead of http to connect. Defaults to false.
32+
- **verify_ssl** (*Optional*): Verify SSL certificate for https request. Defaults to false.
33+
- **blacklist** (*Optional*): List of entities not logged to InfluxDB.
34+
- **whitelist** (*Optional*): List of the entities (only) that will be logged to InfluxDB. If not set, all entities will be logged. Values set by the **blacklist** option will prevail.
35+
- **tags** (*Optional*): Tags to mark the data.
36+
37+
38+
## {% linkable_title Examples %}
39+
40+
In this section you find some real life examples of how to use this component.
41+
42+
### {% linkable_title Full configuration %}
43+
44+
```yaml
45+
influxdb:
46+
host: 192.168.1.190
2347
port: 20000
2448
database: DB_TO_STORE_EVENTS
2549
username: MY_USERNAME
@@ -36,17 +60,3 @@ influxdb:
3660
instance: prod
3761
source: hass
3862
```
39-
40-
Configuration variables:
41-
42-
- **host** (*Optional*): IP address of your database host, eg. http://192.168.1.10. Defaults to localhost.
43-
- **username** (*Required*): The username of the database user.
44-
- **password** (*Required*): The password for the database user account.
45-
- **port** (*Optional*): Port to use. Defaults to 8086.
46-
- **database** (*Optional*): Name of the database to use. Defaults to `home_assistant`. The database must already exist.
47-
- **ssl** (*Optional*): Use https instead of http to connect. Defaults to false.
48-
- **verify_ssl** (*Optional*): Verify SSL certificate for https request. Defaults to false.
49-
- **blacklist** (*Optional*): List of entities not logged to InfluxDB.
50-
- **whitelist** (*Optional*): List of the entities (only) that will be logged to InfluxDB. If not set, all entities will be logged. Values set by the **blacklist** option will prevail.
51-
- **tags** (*Optional*): Tags to mark the data.
52-

source/_components/logbook.markdown

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,16 @@ To enable the logbook in your installation, add the following to your `configura
1919
# Example configuration.yaml entry
2020
logbook:
2121
```
22+
23+
Configuration variables:
24+
25+
- **exclude** (*Optional*): Configure which components should **not** create logbook enties.
26+
- **entities** (*Optional*): The list of entity ids to be excluded from creating logbook entries.
27+
- **domains** (*Optional*): The list of domains to be excluded from creating logbook entries.
28+
2229
If you want to exclude messages of some entities or domains from the logbook just add the `exclude` parameter like:
30+
2331
```yaml
24-
# Example configuration.yaml entry
2532
logbook:
2633
exclude:
2734
entities:
@@ -32,12 +39,6 @@ logbook:
3239
- weblink
3340
```
3441

35-
Configuration variables:
36-
37-
- **exclude** (*Optional*): Configure which components should **not** create logbook enties.
38-
- **entities** (*Optional*): The list of entity ids to be excluded from creating logbook entries.
39-
- **domains** (*Optional*): The list of domains to be excluded from creating logbook entries.
40-
4142
### {% linkable_title Exclude Events %}
4243

4344
Entities customized as hidden are excluded from the logbook by default, but sometimes you want to show the entity in the UI and not in the logbook. For instance you use the `sensor.date`to show the current date in the UI, but you do not want an logbook entry for that sensor every day.

source/_components/logentries.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ To use the `logentries` component in your installation, add the following to you
1717
```yaml
1818
# Example configuration.yaml entry
1919
logentries:
20-
token: your-log-token-here
20+
token: TOKEN
2121
```
2222
2323
Configuration variables:
2424
25-
- **token** (*Required*): Your Logentries log token
25+
- **token** (*Required*): Your Logentries log token.

source/_components/recorder.markdown

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,21 @@ To setup the `recorder` component in your installation, add the following to you
2323
```yaml
2424
# Example configuration.yaml entry
2525
recorder:
26-
purge_days: 14
2726
```
2827
2928
Configuration variables:
3029
3130
- **purge_days** (*Optional*): Delete events and states older than x days.
3231
- **db_url** (*Optional*): The URL which point to your database.
3332
33+
34+
```yaml
35+
# Example configuration.yaml entry
36+
recorder:
37+
purge_days: 5
38+
db_url: sqlite:///home/user/.homeassistant/test
39+
```
40+
3441
| Database engine | `db_url` |
3542
| :---------------|:---------------------------------------------------------|
3643
| SQLite | `sqlite:///PATH/TO/DB_NAME` |

source/_components/splunk.markdown

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,12 @@ To use the `splunk` component in your installation, add the following to your `c
1919
```yaml
2020
# Example configuration.yaml entry
2121
splunk:
22-
host: SPLUNK_HOST_IP_ADDRESS_OR_HOST_NAME
23-
port: 8088
2422
token: B4415DFF-683C-5C6C-3994-4F6D4A5DB03A
25-
ssl: True
2623
```
2724
2825
Configuration variables:
2926
27+
- **token** (*Required*): The HTTP Event Collector Token already created in your Splunk instance.
3028
- **host** (*Optional*): IP address or host name of your Splunk host, eg. http://192.168.1.10. Will default to `localhost` if not supplied.
3129
- **port** (*Optional*): Port to use. Defaults to 8088.
32-
- **token** (*Required*): The HTTP Event Collector Token already created in your Splunk instance.
3330
- **ssl** (*Optional*): Use https instead of http to connect. Defaults to False.

source/_components/statsd.markdown

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ To use the `statsd` component in your installation, add the following to your `c
1818
```yaml
1919
# Example configuration.yaml entry
2020
statsd:
21-
host: DB_HOST_IP_ADDRESS
22-
port: 20000
23-
prefix: DB_TO_STORE_EVENTS
24-
rate: 1
25-
log_attributes: true
2621
```
2722
2823
Configuration variables:

0 commit comments

Comments
 (0)