mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-10 02:46:53 +00:00
Fixes the simple example code for creating a sensor influxdb 2.x.x (#14285)
This commit is contained in:
parent
dbd5eabd14
commit
359261dfb0
@ -343,7 +343,7 @@ sensor:
|
||||
name: "Mean humidity reported from past day"
|
||||
query: >
|
||||
filter(fn: (r) => r._field == "value" and r.domain == "sensor" and strings.containsStr(v: r.entity_id, substr: "humidity"))
|
||||
|> keep(columns: ["_value"])\n"
|
||||
|> keep(columns: ["_value"])
|
||||
range_start: "-1d"
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user