InfluxDB Logger Support

Can you share your exact query that generated that output. I suspect there is something with how it is aggregating the values that is making it between 0 and 1

I found the problem Influx DB switched their chart default function from "last" to "mean"

from(bucket: "hubitat")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "motion")
|> filter(fn: (r) => r["_field"] == "valueBinary")
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: "mean")

fixed it and now I am just receiving ones and zeros

from(bucket: "hubitat")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "motion")
|> filter(fn: (r) => r["_field"] == "valueBinary")
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> yield(name: "last")

1 Like

Thanks...I'm an idiot, clearly! A simple typo wasted about a day and a half of my Christmas break, and some of your time, sorry about that dennypage

I kept all the other debug actions taken (restricted the port to the original instead of trying to use something else) and it's working now!!

1 Like