mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-10 19:06:55 +00:00
Minimal configuration exemple and fix for host variable (ip address without http)
This commit is contained in:
parent
fb1d72a4a4
commit
ad4bd13627
@ -25,7 +25,7 @@ You will still need to create a database named `home_assistant` via InfluxDB's w
|
|||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
|
|
||||||
- **host** (*Optional*): IP address of your database host, eg. http://192.168.1.10. Defaults to `localhost`.
|
- **host** (*Optional*): IP address of your database host, eg. 192.168.1.10. Defaults to `localhost`.
|
||||||
- **port** (*Optional*): Port to use. Defaults to 8086.
|
- **port** (*Optional*): Port to use. Defaults to 8086.
|
||||||
- **username** (*Optional*): The username of the database user.
|
- **username** (*Optional*): The username of the database user.
|
||||||
- **password** (*Optional*): The password for the database user account.
|
- **password** (*Optional*): The password for the database user account.
|
||||||
|
@ -18,7 +18,7 @@ To configure this sensor, you need to define the sensor connection variables and
|
|||||||
|
|
||||||
Configuration variables for the server:
|
Configuration variables for the server:
|
||||||
|
|
||||||
- **host** (*Optional*): IP address of your database host, eg. http://192.168.1.10. Defaults to `localhost`.
|
- **host** (*Optional*): IP address of your database host, eg. 192.168.1.10. Defaults to `localhost`.
|
||||||
- **port** (*Optional*): Port to use. Defaults to 8086.
|
- **port** (*Optional*): Port to use. Defaults to 8086.
|
||||||
- **username** (*Optional*): The username of the database user.
|
- **username** (*Optional*): The username of the database user.
|
||||||
- **password** (*Optional*): The password for the database user account.
|
- **password** (*Optional*): The password for the database user account.
|
||||||
@ -37,7 +37,18 @@ Configuration variables for the queries:
|
|||||||
- **field** (*Optional*): The field name to select, default to value.
|
- **field** (*Optional*): The field name to select, default to value.
|
||||||
|
|
||||||
## {% linkable_title Examples %}
|
## {% linkable_title Examples %}
|
||||||
|
### {% linkable_title Minimal configuration %}
|
||||||
|
The example configuration below will create a request to influx db to the default database (`home_assistant`) to get the mean value of `foo` in measurement `°C`
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
sensor:
|
||||||
|
- platform: influxdb
|
||||||
|
queries:
|
||||||
|
- name: mean value of foo
|
||||||
|
unit_of_measurement: °C
|
||||||
|
where: '"name" = ''foo'''
|
||||||
|
measurement: '"°C"'
|
||||||
|
```
|
||||||
|
|
||||||
### {% linkable_title Full configuration %}
|
### {% linkable_title Full configuration %}
|
||||||
The example configuration entry bellow create two request to influx db, one to the database db1, the other to db2 :
|
The example configuration entry bellow create two request to influx db, one to the database db1, the other to db2 :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user