Activation Elements (Digital Values)

Influx1

I need to register with “0” and “1”, when an item is deactivated and activated respectively.

Then with those records in the database, I must count the number of activations in a period of the query.

The problem is when I make the query in the next moment as seen in the attached image.

If I query between 00:30 and 2:30, the result is “0”.

I hope you can help me!

Hello @jber,
I believe you’ll want run a task that uses monitor package to determine whether or not your state has changed and then you can write those state changes to a new bucket.

These blogs might be helpful:

@jber but please let me know if I can help you construct the task.

Anaisdg, if you can help me, I appreciate it. We have no experience with bucket and monitor package.

Thank you!

Hello @jber,
What version of InfluxDB are you using?

Hello Anaisdg

We are using version 1.8.0
Regards!