What is happening currently
Change between Day and Away is by presence of the adults. Kids mode, however is done by use of a virtual keypadn just before leaving the house. This is working great except when we exit the geofence area it goes to Away mode.
What I want to happen
We choose to set Kids mode via the keypad
We exit the geofence
House stays in Kids mode
We enter the geofence
House "returns from Away" as dictate by Mode Manager
There may be some that remember I had a slightly different issue with a third presence device being involved. Well this is replacing that because our child got his phone taken away so now we are only dealing with two presence devices.
Set a boolean (or virtual switch to on) to true when kids mode is active and false when not. Then allow presence to change to day, and away to activate only if boolean is false (or switch is off).
I'd go for two rules, although I'm not sure what the trigger options are for a virtual keypad.
Rule 1 could be triggered by a change in presence, with conditional actions saying if not present and currently in Day mode, change the mode to Away. If present, change mode to Day.
Rule 2 would need to be triggered by the keypad, like I said, not sure what the trigger would be exactly. This would have the action to change the mode to Kids.
You may want to tweak the logic in rule 1 about which mode to select on returning home, allowing for some kind of night mode option, perhaps based on time of day.
I use RM to manage my modes as mode manager couldnt quite fit my needs. I have 2 rules, and this could be pretty close to fitting your needs. I also use the virtual keypad to set modes, so you can see how i do that in RM below:
Here is my main mode manager rule. This runs on the schedule as seen, but I can also manually run the actions from other various rules to ensure my hub is in the correct mode, like after a hub restart, which mode manager could not do.
you can see in my "ModeManager" rule, that if the mode is in away or party, it will skip the rest of the logic, and keep it in that mode. This could be your kid mode. Then use the 2nd rm "ModeManagerCustom" to set into kid mode from the keypad, or away based on your presence sensors (if not already in kid mode).
I also have Mode Manager configured to just my wife or I trigger "Return From Away" which I already know will pull mode out of Kids and into Day (or Evening).
Mode Manager has a feature about Modes to ignore Presence changes. By putting Kids there, it won't go to Away when you leave. Then the issue is simply how to deal with your return.
I had seen that. I will have to do some testing with the above set of rules. I think the way I have it set up is the best way to achieve the time based evening mode and return from away function.
It's pretty easy to accomplish this. The trickier aspect is dealing with presence leaving. For example, suppose you AND the kids leave, so you're not leaving from Kids mode. It will then change to Away, and the return from Away logic will happen as desired when you come back. So it's only dealing with the mode when you return and are in Kids mode. That's pretty easy to deal with.
So what you're saying is leave kids mode set to ignore presence and use rule machine to handle what to do when returning when the house is in Kids Mode?
This my config in Mode Manager. The time conditional in Mode Manager will still handle setting Evening instead of Day when the rule I made runs after sunset, correct?