ok. thanks.
with the multi-rule processing i am changing the rules processing logic a bit let me address this at the same time.
the new logic should be as following:
- if matching rules have no lux and no time all of those rules will be executed.
- if matching rules has lux the rule with the lowest lux value < current lux value will be executed. if there are multiple matching rules with the same lux value all of them will be executed.
- if matching rules has time all rules that match that current time will be executed.
- if matching rules have lux and time the rule with the lowest lux value < current lux value and matching time will be executed. if there are multiple matching rules with the same lux value and matching time all of them will be executed.
how does that sound?
@nathancu since you are interested in the multi rule processing would you please review the above and confirm if this works for you as well?
thank you.