Automation Issue With Conditionals

Hello,

I have an automation that turns on a plug at 23:00 every day if someone is at home. For that, I am checking the condition that my mobile is at home (via Ubiquiti) or my wife´s. It worked like a charm for months, but in the last time (last 15 days) it fails a lot because I track a wifi network that is out of home, and sometimes my wife is connected to them so is away at the automation time.

But for that I have the OR conditional, but when I check the debug I cannot understand why is failing. I attach some screenshots, and maybe someone can explain to me if it is a bug or is just something I misconfigured.

I attached everything in one screenshot because I only can upload one picture.

I really cannot understand why is checking the second part, when the first one is TRUE, so it should be good to go.

Thanks for your help.