Can someone explain for me how to use Reset reaction in MSR without disturbing other rules.
-
Matteburkreplied to toggledbits on Mar 28, 2021, 4:08 PM last edited by Matteburk Mar 28, 2021, 12:14 PMThis post is deleted!
-
This post is deleted!
-
@matteburk I think you need to put AND in top level for the triggers for Rule 1.
-
-
OK, that's a start, I guess, although they are barely readable. Maybe we'll need to go back to some kind of Logic Summary-like thing.
Now, what are these supposed to do, and what is the problem you are having with them?
-
Crillereplied to Matteburk on Mar 28, 2021, 4:37 PM last edited by Crille Mar 28, 2021, 1:44 PM
@matteburk I would still put condition "natt"/"dag" and "kväll" in Constraints as it's not a trigger, rather a condition and would prevent Reaction/Reset Reaction to run.
Edit: Clarification for future readers. Forcing the Constraints condition to go FALSE prevents the SET/Reset Reaction to run.
-
toggledbitsreplied to Crille on Mar 28, 2021, 4:38 PM last edited by toggledbits Mar 28, 2021, 12:39 PM
@crille said in Can someone explain for me how to use Reset reaction in MSR without disturbing other rules.:
rather a condition and would prevent Reaction/Reset Reaction to run.
No, that's not how Constraints work. Constraints do not prevent Reset reactions.
-
@toggledbits No, but it will prevent the Reaction to run, thus the Reset Reaction?
-
Rule 1 is 1 motion sensor I Master bedroom and 2 motion sensors in bathroom that if any is true (delayed reset 120s)and Natt mode is true master bedroom light and bathroom light is turn on. Reset reaction turn off
Rule 2 If any of the 2 motion sensors in bathroom is true(delayed reset 600s) and dag or kväll mode is true bathroom light is turned on . Reset reaction turn off -
@crille said in Can someone explain for me how to use Reset reaction in MSR without disturbing other rules.:
o, but it will prevent the Reaction to run, thus the Reset Reaction?
THAT is true, so we need to be careful how we phrase it, because your other statement is incorrect and misleading, and would give other readers the wrong idea. But you are correct in the last: if the SET reaction does not run, neither can the RESET, because RESET will only follow SET (once the basic state of the rules has been established).
-
@matteburk And the problem?
-
The problem is when rule 2 is set and reset is delayed 600s rule 1 is being resetted by reset reaction in it and lights go of in 120 s instead of 600s as it should
-
I have a strong suspicion that both of your rules are running simultaneously because they are reacting to very (overly?) similar conditions. That is, when the light is increasing from Off to 100%, it passes 20% and may thereby trigger Rule 1.
You could include a Restriction on that Condition such that the dimming level "Must be sustained for at least 4 seconds" or so. -
What I'm trying to explain is a condition for Rule 1 to NOT run the SET action by setting Constraints according to the opposite of Rule 2 so they won't run simultaneous as both are triggered by the motion sensors.
-
@librasun said in Can someone explain for me how to use Reset reaction in MSR without disturbing other rules.:
when the light is increasing from Off to 100%, it passes 20% and may thereby trigger Rule 1
Yeah, but Rule 1 doesn't say that. Rule one seems to be triggered exclusively by the motion sensors, and as posted (screen shot) potentially by a change in mode if a motion sensor is active at the same time (moving the mode check to Constraints solves this).
I would not expect the RESET reaction to run in this case, but I'm also not watching the state of these rules. This might a case where putting both of these rules into the Scope and watching their state interact with each other would be educational. If anything is triggering rule 1, that would be obvious there (also looking just in the status view for the rule at a changing timestamp). But I don't see why the reset would run for rule 1, and I'm off to do some code review and see if I can back into reason...
-
@toggledbits Yes, you are correct. My goal in my head was to make the Constraints condition FALSE to prevent the SET Reaction.
-
@toggledbits I did have modes in constraints from beginning but then when rule 2 is SET lights turn on in bathroom for 0.5seconds and then off.
as this pics show
Rule 2 is set
-
OK. I think I see a bug in the handling of the constraints. I'm still verifying, so sit tight for the moment...
16/34