Will this rule work for lighting?
-
I had an existing rule that turns on my Kitchen ceiling lights to 100% when motion is detected.
I want to make a change so that when Vera is in Night Mode the lights will instead turn on to 25% brightness.
I have added a Constraints Group in to the Set Reaction and set it to OR :
Is this likely to work or not ?
Or do I need two Constraints Groups within the Set Reaction ?
I can test it later on when its time to put Vera in to Night mode.
Thanks
-
Technically, what you have there should work just fine!!
In this situation, I would have recommended two different Constraint Groups (leaving each one set to [AND], though it doesn't matter since you only have one condition per Group) within the Set Reaction. One for full brightness, the other for setting the Dim Level. Sure beats having to create two groups, though!
-
I had an existing rule that turns on my Kitchen ceiling lights to 100% when motion is detected.
I want to make a change so that when Vera is in Night Mode the lights will instead turn on to 25% brightness.
I have added a Constraints Group in to the Set Reaction and set it to OR :
Is this likely to work or not ?
Or do I need two Constraints Groups within the Set Reaction ?
I can test it later on when its time to put Vera in to Night mode.
Thanks
@cw-kid It will work, but not the way you think.
The "OR" only applies to the conditions within the group. It does not look outside the group at any states.
That means that what you have here (assuming there is not a global rule constraint, not shown) is that the light will be set to 100% every time the reaction runs, and at night a few milliseconds later it will be reduced to 25%. That may or may not look right or work consistently.
You need two groups, one for day, one for night, the former setting 100%, the latter setting 25%.
-
@cw-kid It will work, but not the way you think.
The "OR" only applies to the conditions within the group. It does not look outside the group at any states.
That means that what you have here (assuming there is not a global rule constraint, not shown) is that the light will be set to 100% every time the reaction runs, and at night a few milliseconds later it will be reduced to 25%. That may or may not look right or work consistently.
You need two groups, one for day, one for night, the former setting 100%, the latter setting 25%.
@toggledbits said in Will this rule work for lighting?:
You need two groups, one for day, one for night, the former setting 100%, the latter setting 25%.
OK thanks I thought that might be the case.
It's Vera House mode Home and Night not daytime and night time I'm looking to base things off.
I'll create another Constraint group within the Set Reaction, for when Vera is in Home mode and in that mode I want the light to turn on to 100%.
And when Vera is in Night mode aka I've stumbled down stairs in the middle of the night, then I want the light to turn on to 25% so I'm not made blind.
-
Since the constraint group(s) only have one condition, AND and OR give the same result, but it's always my preference to use AND on singles. Looks good.
-
-
T toggledbits locked this topic on