Hi
Is it possible to implement a decision table within a rule?
For example :-
A sensor returns a value between 10 & 60
Can a single rule be created with different actions for exact values or ranges?
<20
executecommand ("all off")
20.1 & <30
executecommand ("1st thing ON")
executecommand ("2nd thing OFF")
executecommand ("3rd thing OFF")
30.1 & <40
executecommand ("2nd thing ON")
executecommand ("1st thing OFF")
executecommand ("3rd thing OFF")
40.1
executecommand ("3rd thing ON")
executecommand ("1st thing OFF")
executecommand ("2nd thing OFF")
Or would each value or range have to be a separate rule?
The other question is..
What is the correct syntax to define a range in the event section of a rule?
Event( source == "A Numeric Sensor", value > 20 & < 30 )