Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event reset threshold #661

Open
AldoRamos opened this issue Feb 29, 2016 · 5 comments
Open

Event reset threshold #661

AldoRamos opened this issue Feb 29, 2016 · 5 comments

Comments

@AldoRamos
Copy link

AldoRamos commented Feb 29, 2016

Mango allows a minimum amount of time before an event is generated; is there a way to implement a hysteresis-mitigation algorithm, so it won't consider a new event unless the condition has NOT been met for t time? Should I create a meta point to determine such fluctuation on borderline inputs?

For example, we have a wet floor sensor that as the water dries will vacillate between reporting wet/dry, generating potentially thousands of "new" events as the result of transitioning back & forth.

@terrypacker
Copy link
Contributor

Implement as a delay on both states, currently we only have a delay on the detection state.

@terrypacker terrypacker added this to the Future Features milestone Jun 2, 2016
Puckfist added a commit that referenced this issue Sep 12, 2018
@Puckfist
Copy link
Contributor

In my exploring implementation, I decided the event detector should still be detecting the event state the whole time, and then if the quiescent period elapses and the detector would have been active because its condition is met (read: the duration to raise the event doesn't begin at the end of quiescence) the quiescent task will raise the event.

@Puckfist
Copy link
Contributor

0a890b2

@Puckfist
Copy link
Contributor

Ready for testing in the quiescentEvents branch. Probably missing from API models and whatnot, though

@Puckfist
Copy link
Contributor

also it was my judgement the quiescent period shouldn't begin for events that return to normal until they have returned to normal, such that if they were active for longer than the quiescent period they would still have a quiescent period (and they cannot be raised again while still active, anyway)

Puckfist added a commit that referenced this issue Sep 12, 2018
terrypacker pushed a commit that referenced this issue Sep 25, 2018
terrypacker pushed a commit that referenced this issue Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants