Explain your wasp algorithm, please?

Can someone clear this topic up for me please?

I have read/heard about the ‘wasp algorithm’ for presence detection a few times and it sounds like a good premise.

But is it a case of me having to write a bunch of if/else statements and timers which turn on a presence item, or is there some ridiculously difficult to find git repo of a pre-written script that I can implement into my items and it updates the presence item itself?

Have you read this post:

Nope, but thanks. It looks like it’ll get me going nicely.