Want to know the best method to automate snoozing

I would like to find a way to make the following happen automatically:
If I’m not at home, then snooze my bed time alarm

Ive read some of the docs and think that a post request of this kind from IFTTT to the sleep app isn’t possible but I don’t know if there is an alternative method?

I don’t mind what code I need to write or services I need to set up, I just wondered if this was possible?