-
Why doesn't this config produce log entries? It looks like the on_value_range hooks are not triggering: uart:
- id: uart_senseair
rx_pin: GPIO17
tx_pin: GPIO16
baud_rate: 9600
sensor:
- platform: senseair
uart_id: uart_senseair
update_interval: 45s
co2:
name: "SenseAir CO2 Value"
on_value_range:
- below: 400
then:
- logger.log: "=========== co level 0"
- above: 400.1
then:
- logger.log: "=========== co level 1" But nothing in the logs:
I can see that the sensor is working and the value is changing, but no lines starting with "===== co level". Documentation says:
Since I have two intervals (from negative infinity to 400 and from 401 to infinity), I assume that any saved value should trigger the hook - but that's not happening. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If the saved value is in the same range as the current value, there's no boundary crossing. |
Beta Was this translation helpful? Give feedback.
-
Understood, thanks |
Beta Was this translation helpful? Give feedback.
If the saved value is in the same range as the current value, there's no boundary crossing.