OK, sorry let me explain Exactly how the flow is supposed to work!
Let me start by first explaining the logic:
Work Mode: 0 = Default or off
1 = “early work mode” where I have to get up by 5:30 and leave by 5:45
2 = Normal work time where I get up at 6:10, snooze for 10 minutes, then get out of bed by 6:20 and leave at 6:35
Master Bedroom: Controls lighting modes: 0 = Disabled as all lighting automatons are disabled
1 = Normal mode where if the light is dim enough it will turn the lights on in day mode and both the presence sensor and motion sensor will trigger the lights
2 = Away mode where the lights will only work with a smart button, both sensors are disabled
3 = Sleep mode, works the same as mode 2 but does other things in other flows
4 = Enables the motion sensor ONLY (presence sensor remains disabled) and turns the lights on ONLY with the motion sensor (keeps me moving in the morning)
Downstairs Mode: Controls lighting modes: 0 = Disabled as all lighting automatons are disabled
1 = Presence sensor turns lights on when light is dim enough
2 = Away mode, works with button only, presence sensor is disabled
3 = Sleep mode, Sleep mode, works the same as mode 2 but does other things in other flows
School day: “Obvious” is just that.
Security: Again obvious, enables on all security features in my house
So form the top:
WHEN work mode changes, and it’s not 0 (will change from 0 to 1 or 2), start Good Night flow
@ 5:30 AND work mode is not 0 (disabled) then check if it’s 2 (Early work mode), if it is THEN use MB: Day Mood and change Master bedroom mode to 4
@ 5:45 AND work mode is not 0 then check if it’s 2, THEN if YES send my phone and alert letting me know it’s time to leave for work THEN set Master Bedroom Mode to 3 (Sleep Mode) THEN after 5 minutes (gives me time to leave)
@ 6:10 AND work mode is not 0 (disabled) then check if it’s 1 THEN if YES check if it’s a school day and if YES Start Good Morning flow, if School Day is NO, Set master bedroom to 3 WAIT 5 minutes THEN set downstairs mode to 3, IF Work Mode is not 1, check if it’s 2, if YES check if it’s a school day and if YES Start Good Morning flow
@ 6:20 IF Work Mode = 1 Cast audio to me bedroom speaker to yell at me to get out of bed! THEN set Downstairs Mode to 1 and Security to NO
@ 6:35 IF Work Mode = 1 Send message to my phone to get going and if School Day = NO Set Master Bedroom to 3 WAIT 5 minutes THEN set Downstairs to 3
When I leave home, IF Work Mode = 1 THEN set Work Mode to 3 THEN if it’s a school day set Security to YES, IF Work Mode = 2 THEN set Work Mode to 3 AND set Security to YES
@ 7:10 if Work Mode = 3 (Which it should be at this point) Set Work Mode to 0 and if it’s not a School Day, start Good Morning Flow
For some reason every part of this flow works fine except the 7:10 part and I have no idea why
Also if there is any way to rework this flow to be more efficient (and actually work) I’m open for suggestions!
I hope that explanation is sufficient, let me know if there are any other details you need to know that I may have missed, THANK YOU for your help!