Convert map to list in InfluxDB 1.x example (#26225)

This commit is contained in:
Austin Rasmussen 2023-02-13 02:59:03 -06:00 committed by GitHub
parent e199ab00ef
commit f630543f85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 %}