mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 02:16:50 +00:00
Convert map to list in InfluxDB 1.x example (#26225)
This commit is contained in:
parent
e199ab00ef
commit
f630543f85
@ -506,27 +506,27 @@ The example configuration entry below create two request to your local InfluxDB
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
sensor:
|
sensor:
|
||||||
platform: influxdb
|
- platform: influxdb
|
||||||
host: localhost
|
host: localhost
|
||||||
username: home-assistant
|
username: home-assistant
|
||||||
password: password
|
password: password
|
||||||
queries:
|
queries:
|
||||||
- name: last value of foo
|
- name: last value of foo
|
||||||
unit_of_measurement: °C
|
unit_of_measurement: °C
|
||||||
value_template: '{{ value | round(1) }}'
|
value_template: '{{ value | round(1) }}'
|
||||||
group_function: last
|
group_function: last
|
||||||
where: '"name" = ''foo'''
|
where: '"name" = ''foo'''
|
||||||
measurement: '"°C"'
|
measurement: '"°C"'
|
||||||
field: value
|
field: value
|
||||||
database: db1
|
database: db1
|
||||||
- name: Min for last hour
|
- name: Min for last hour
|
||||||
unit_of_measurement: "%"
|
unit_of_measurement: "%"
|
||||||
value_template: '{{ value | round(1) }}'
|
value_template: '{{ value | round(1) }}'
|
||||||
group_function: min
|
group_function: min
|
||||||
where: '"entity_id" = ''salon'' and time > now() - 1h'
|
where: '"entity_id" = ''salon'' and time > now() - 1h'
|
||||||
measurement: '"%"'
|
measurement: '"%"'
|
||||||
field: tmp
|
field: tmp
|
||||||
database: db2
|
database: db2
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user