Nest device type with a bunch of new features

This might be of interest. It applies to using any custom device type: