For the purpose of this discussion, I have 4 modes (Home, Night, Away Day, Away Night). I have not been able to get Mode Manager to set the correct mode based on whether my presence device is "present" or "not present". I understand by reading threads on this subject many are using RM to accomplish this.
The problem I am having is with the presence. I can set a mode based on the time of day but the presence options are only "leave" or "arrive". What if I am already gone or already home? Mode Manager handled the switch from daytime to nighttime by setting the mode to Away Night even though the presence was present, I am guessing it chose Away Night over Night mode (both modes have the same time settings) because the former was first in the list.
I looked into RM but run into the same problem. I can set the timeframes for each mode but cant find an option to determine the present state.
Can someone tell me which triggers I should be using for what I am trying to do here?
This might not be the most elegant way to do this, but hereās what I would do based on my limited RM knowledge. Iād create 3 separate rules. You probably could combine these into a single rule but if your RM knowledge is not as good like me itās probably better to keep things simple.
Rule 1:
Trigger X time
If presence is present set mode to Home
Else if presence is not present set mode to Away-Day
Rule 2 (repeat for night mode)
Tigger Y time
If presence is present set mode to Night
Else if presence is not present set mode to Away-Night
Rule 3
Trigger presence changed
If time is before Y and presence is present - change mode to Home
Else if time is before Y and presence is not presence - change mode to Away-Day
Else if time is after Y and presence is present - change mode to Nighy
Else if time is after Y and presence is not present - change mode to Away-Night