Hi Chris,
Ok, I’ve done a write-up. Take a look at this: https://github.com/daltskin/ST-HomeAutomation