This might be a stupid question, but what is the exact definition of “above” and “below” of “on_value_range”?
For example, let’s assume we have a pulse_counter:
- platform: pulse_counter
pin: GPIO17
on_value_range:
- below: 2
then:
…
- above: 2
below: 10
then:
…
- above: 10
then:
…
As you can see, i want to classify those values into three groups:
x < 2
2 <= x < 10
10 <= x
So, back to the initial question:
- does
below: 2
mean x <= 2 or x < 2? - What is triggered on value = 2
Edit: Shall i use below: 1.9
e.g. ?