state_trigger triggering when it shouldn't? #650
Replies: 2 comments 1 reply
-
You are correct about the state_hold_false. Maybe it is in the compare float / int. You can try to compare to 300.0 |
Beta Was this translation helpful? Give feedback.
-
Just two hints, though I am not really sure if they are of any relevance to your case. I've seen a lot of erratic behavior, too, but at some point, things became stable. I could track down erratic behaviour to two main sources:
|
Beta Was this translation helpful? Give feedback.
-
I have a luminance sensor I want to use to control some lights - turn them on when it gets dark & off when it gets light. Here's my simple start to building this:
This certainly works at the end of the day as light falls, the lights turn on. But I'm also noticing that the lights are on in the morning when I get up.
The history graph of the luminance sensor is this and clearly hasn't gone above 300 in order to allow the state_trigger to trigger again, which is what the state_hold_false=0 is supposed to do I thought:
Am I misunderstanding what state_hold_false=0 does, or is pyscript triggering this function when it shouldn't?
Thanks,
Steve.
Beta Was this translation helpful? Give feedback.
All reactions