Using Local variable in a condition statement

[RM5] .151

I'm trying to create the following rule, however I could not find the "local Variable" option when entering the
"If Illum < 20 AND enable = true THEN" line. I saw Private Boolean but nothing that I could identify as local variable.

Rule seems pretty simple, am I missing something?

 Local Variable bool enable  =  true

Triggers:

Illuminance of Mijjia Lux < 20
OR
Time is 11:00 AM

Conditions / Actions:

If Illum < 20 AND enable = true THEN
enable = false
On: Front Entrance
Delay 2:00:00
Delay 0:15:00 Random
end-if

(simple conditional)
 If(time = 11 AM) then enable = true

Local Variables are just the same as Hub Variables when trying to select in a rule. For example, in a condition, like this.

To set a variable you use the Set Variable action:

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.