ok, i will try this.
but lets break it down.
main trigger is temp (as you said, working fine.
then we want the following
(time = between(6-8) OR time = between(17-22) )
(WifesHomeStatus OR MyHomeStaus )
Just making a basic flow with these might be a bit tricky, as I dont think stringify really allows "inner logic"
SO what I would do is use extra flows, and set variables.
if time = between(6-8) OR time = between(17-22) SET timevariable = true (its a bit more tricky than this, but think you should be able to get that sorted though)
and in another flow
if WifesHomeStatus OR MyHomeStatus changes to true SET someOneHomeVariable = true (just remember to set it back to false as well)
And then you just use these in your main flow.
Trigger(temp) AND timevariable = true AND someOneHomeVariable = true
I think this should solve your problems