Rule machine - as per the app developer, this app is no longer available for new installs, distribution, or support

FYI - there is another forum setup for discussions on rule logic within Rule Machine. I pasted the link at the bottom.

If I understand you correctly you want a routine to execute when either you, your husband or both of you are home and either one of your Zzz switches turns off. I think your rule logic can be a lot simpler and I don’t think you will have to use Advanced Rule Input.

Condition 1 select both switches. State=OFF
Condition 2 select both presence sensors. State=PRESENT

Rule: [Zzz Tam, Zzz Ed] any off AND [Tamara Presence, Ed Presence] any present
True Action: Routine Good Morning!

You also have this setup to run only when in Sleep mode. I assume your Good Morning routine is changing your mode or some other routine that would run after the Zzz switch has been turned off otherwise the entire rule will never be evaluated.