Source code for built-in device types?

Device type code documentation is being written right now. I know we’re behind on that :s but its coming! As for your own code, when in the code editor, hit “Device Type Settings” on the upper right of the edit box. Then click “switch” and hit add custom attribute “greeting” and custom commands “hello” and “goodbye” should look like this:

http://imgur.com/SkVc6Lw

Also, if there is any specific device type code you would like to see let me know and I’ll post it.