Very enjoying Samsung's SmartThings home automation SDK. Groovy script that executes on security hub, wide support for types of devices & ability to write handlers for homemade LAN or Zigbee/Z-Wave mesh, online IDE that tests with simulated or real devices.