DISCLAIMER: The following should be considered “Advanced Usage” of Reactor and is therefore not the first nor best approach for a new user. You can get the same results by building a routine with the customary (non-Expressions-based) blocks, such as the built-in [HOUSE MODE] [is…] []Home []Away, etc.
I just whipped up an Expression you may find helpful, one which yields different brightness values (which you certainly can modify - I just typed in random whole numbers) depending on the current House Mode. Since this is the kind of thing Reactor can easily do, but which a novice might not think to construct, here goes:
hallLevel :== choose(tonumber(getstate( 175 , "urn:toggledbits-com:serviceId:Reactor" , "HouseMode" )),20,40,75,100)
Let me deconstruct this so it makes sense, and you can then copy and paste the right-hand portion into your Reactor’s “Expressions” section. I named the variable ‘hallLevel’ so that’s self-explanatory. The “choose” function is a LuaXP function which returns a value based on an index number. (Since there are only four House Modes – Home, Away, Night and Vacation, which Reactor numbers internally as 1, 2, 3, and 4 – this serves as an easy index!) The function is of the form CHOOSE(index, var1, var2, …).
NOTE: I had to wrap CHOOSE inside of a TONUMBER() so that its output – which looks like a number but is technically text, i.e. “1”, “2”, “3” or “4” – is forced to become numeric.
In the ‘index’ slot, I’ve inserted yet another Reactor-specific command, “GET”, which extracts the value of a specified variable (in this case, “HouseMode”) directly from a given device (#175 – replace this number with that of your own Master Reactor!).
For the other slots, I’ve typed four ‘brightness values’ which you can also modify to suit your needs. Granted, you may only care about the number in the 3rd ‘var’ slot (since that corresponds with ‘Night’ mode), but keep all four slots filled to prevent errors.
Lastly, you would use the output of this variable expression within your Reactor “Activities”, such as the Device Action which turns on the hallway light, by typing {hallLevel} in the ‘newLoadLevel’ field. (Pro tip: By first deleting any existing numbers from that field, it becomes a clickable drop-down list of all available Expression variables, and you could just pick {hallLevel} using your mouse.)
Hope this takes you to the next level! Reactor is the best, but we all know there’s a bit of a learning curve to become proficient.