The Unifi device represents only the phone, not your person (Homey account). Just set you at home/away in the flow.
I use it rhis way to make all other home/away logics with the homey user state.
In addition I use a timer for away state to prevent a state change if teh phone is roaming between APs.
Unifi-Connect:
Set me at home and stop timer (if running).
Unifi-Disconnect:
Start timer (delay is taken from a logic variable):
Disconnect-Timer (delay) finished:
Set me away.