The following WiKi post has many tips for porting code to Hubitat. It can also be edited by community members if you find anything new to add.