Could you give an example on how to use it? I don’t see how I can grab the time duration. To clarify:
See the red boxes, I would like to get the duration of those. The last one is enough as well.
So in the end, I would like to extract from this graph that the sensor’s last true state lasted for 21 minutes.