Presence sensor smartapp that looks at state?

It depends on what you need the established presence for…
Do you want to run something only if someone is present?

I have an app which I’m developing for all things presence.

Have a look here…

Maybe I can add something if this doesn’t work for you in its current state