Thank you for the update. Sadly, it seems that it can't detect the ssh client session since the wifi power status remains unchanged.
sudo iwconfig
ssh USERNAME@NETWORK-IP
PermitLocalCommand yes localCommand /usr/lib/openssh/session_client
grep ssh
grep sshd:
ps | grep wifi