I have an outdoor lamp on one module that is controlled on/off by a photoresistor on an other module. I want to use the following automation conditions:
"< falling edge", fixed value 400
and
"> rising edge", fixed value 500
(Intended hysteresis to avoid lamp flickering in the transition)
But it does not work as expected:
When lamp is ON and light increases, the lamp is switched OFF (correct).
But hen lamp is OFF and light decreases, nothing happens.
If I use "<" and ">" (without rising/falling edge) instead, it works as expected, but I am not able to force the lamp on/off, as the automation takes over (which is as expected).
ArneiO wrote: I have an outdoor lamp on one module that is controlled on/off by a photoresistor on an other module. I want to use the following automation conditions:
"< falling edge", fixed value 400
and
"> rising edge", fixed value 500
(Intended hysteresis to avoid lamp flickering in the transition)
But it does not work as expected:
When lamp is ON and light increases, the lamp is switched OFF (correct).
But hen lamp is OFF and light decreases, nothing happens.
If I use "<" and ">" (without rising/falling edge) instead, it works as expected, but I am not able to force the lamp on/off, as the automation takes over (which is as expected).
("<= falling edge" has the same behavior)
I'm not sure if you can do hysteresis with falling and rising edge, because they are in two separate programs.
I am not sure if I fully understand your explanation.
The behavior I expect is:
"> Rising edge":
First time the parameter is larger than the given value, when it was smaller or equal before
"< falling edge":
First time the parameter is smaller than the given value, when it was larger or equal before
Does this correspond to your intended performance, or should I set the parameters differently to obtain this?
< and > is just condition. If you have for example temp. sensor and set email notification when temp. is > 20 then you will get email notification every time temperature is greater than 20 - usually you do not want that, because you report temperature periodically.
If you set "> rising" then you will be notified only when temp. goes from less than 20 to more than 20.
If you set "> falling" then you will be notified only when temp drops from more than 20 to less than 20.