Is there a way to have a rule set the mode to what "Mode Manager" thinks it should be instead of having to select an actual mode?
For example... Most days I work from home so I have a "Work From Home" mode. My other modes (morning, day, evening and night) are all based on time of day. Sometimes I kill my "Work From Home" mode when it should otherwise be "Day" and others when it should otherwise be "Evening". I'd love to be able to set the mode to whatever Mode Manager is setup for.
Set mode with switches coexists peacefully with other methods of setting modes, so you can still have your mode change based on time of day, or however you set them otherwise. I set modes based on time of day, switches, and presence.
You need to get Mode Manager to do this, as it is the keeper of knowing what mode you should be in. You could use a virtual switch, and in Mode Manager use that switch for Return from Away Mode (under Set mode with switches), either on or off as appropriate. Presumably you have your Work From Home mode set in Mode Manager as a mode to ignore time changes for. If this is so, then Mode Manager will know what mode it should be based on time, and then when you flip the switch, it will put it in that mode.
I don't think the condition is "Time between fired your rule at two times",
actually the condition IS TRUE when time is between two defined times, i.e. the condition is true during the interval and it is fired and continue to fire depending on the define rule. And that is what the purpose of this "time between" condition does.
I know because i am having problem converting the below RM3 to RM4
Select Conditions
Time between 9:00 AM EDT and 11:00 PM EDT TRUE
Variable HSMArmStay(true) = true TRUE
Variable HSMArmAway(false) = false TRUE
Variable HSMArmNight(false) = false TRUE
Define Rule
Time between 9:00 AM EDT and 11:00 PM EDT AND
Variable HSMArmStay(true) = true AND
Variable HSMArmAway(false) = false AND
Variable HSMArmNight(false) = false
Select Actions for True
Hubitat® Safety Monitor: Arm Home
Notify HSMTextStatusDisplay: 'HSM ArmedStay auto setting = armed home @%now%'
Off: ArmedNight
The variables are used to report and manually control the HSM via virtual sw. The pic below is what my HSM is.
I cannot come up with a trigger rule in RM4 to replace the above. Any suggestion?
Is there some miniumum time between events that is needed to be recognized? In my ongoing efforts to improve my presence handling I created a rule in RM4 to do some testing. I set up the trigger as either of 2 presence (phones) leaves. Then in the actions I look to see if both are gone or not. Every once in a while it will miss one of the triggers. It seems to be related to when both phones leave at the same time, but the triggers are not at the exact same time I'm sure. Not sure if the second trigger is missed while the rule is evaluating the first one or what is happening.
I have some ideas for a work around if that is the problem, but just trying to figure it out.
Does "Wait for Events" support multiple time events?
The idea here is similar to have "the earlier of the two events" trigger the rule to continue.
But I have the feeling that the first schedule will be overwritten by the second schedule...
Select Trigger Events
Presence Side, Presence2 Side any *changed
Select Actions to Run
Set Fan Speed: Master Bedroom Fan Fan to medium IF (Presence Side, Presence2 Side all not present(T) [TRUE]) THEN Set Fan Speed: Master Bedroom Fan Fan to off
In this rule it should work as presence sensors are changed then fan comes on and when they leave turns off. It works when they arrived but not when they leave? but when I go into device on the presence and turn off and on it works? is there something that I'm missing?
So i should change to arrive instead of using changed? I had this in rule 3.0 but wanted to start moving over to 4.0 and when I create the rule I cannot get to present or not present it is not on the screen when I choose presence only arrive, leaves or changed in 3.0 the present and not present were there?