Porting Zooz ZEN27 from SmartThings

Thanks for the help here if you were following this I have posted my final product: