Unfortunately, SmartThings has made the decision to discontinue hosting a public groovy cloud, so that type of custom code will no longer work by the end of this year, and the IDE itself is going away. . They have announced a general timeline for this.
So we don’t really know what the options are going to be as far as custom code for hub connected devices going forward.