My SmartApps code for SmartThings