-
Notifications
You must be signed in to change notification settings - Fork 743
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
Add top level boolean logic operator for signals #12
Comments
I have thought about this in terms of implementing the basic buildings blocks of binary logic as in circuit |
I feel this feature is essential to make framework easy to use. Basically, without support for OR operator, you end up writing multiple sensors that trigger same workflow. e.g. consider your gateway is generating 4 different configuration, and for each event we want to create same workflow, then adding these 4 signals in one sensor will cause sensor to wait on all 4 signals, definitely what we wanted. |
https://github.com/Knetic/govaluate does the job |
Is your feature request related to a problem? Please describe.
With current Sensor spec, user can only use AND operator for multiple signals and it lacks support for complex signals circuiting.
Describe the solution you'd like
Use "--" for OR operator and "-" for AND operator.
Example-
The text was updated successfully, but these errors were encountered: