I have the below Rule and wish to change the first line to:
IF (Illuminance of Lux Sensor, Mijia is < AccentOnLux AND Accent Lights are off) THEN
On: Accent lights
'
'
I have not found a way to edit this expression in the rule machine editing options.
Is if possible?
I only find the ability to add before this expression
I think all you need to do is add the new condition that you want...then edit the IF to add the new condition. (EDIT: And as Bruce notes below there is an even faster way...but either works.)
It is not trivial and very tricky but yes, this is possible. Once you select IF statement you will see an option for erasin, editing and deleting expressions.
What's shown above is the harder way to do this. When you edit a Conditional Action (IF-THEN), by clicking on the action in the action table, this is what comes up:
And you can see it starts out with a pull-down to add onto it with another AND, or whatever. Only if you need to edit within the expression would you need to do what is described above. After adding AND from the pull-down, you would be right back in the Expression creation flow.
Whenever you create an expression, like IF-THEN, when you've finished before hitting Done with Expression, you would see this, with the dangling AND, OR or XOR pull-down:
The Done with IF Expression button only appears when there is a possibly completed expression, If I do add AND then this would show, the Done button goes away, and I have to define the next expression element,.
The point of all of that being that you will always see that dangling pull-down with a completed expression, both when first creating it, and later when editing it.