Where to start writing a new device type?

So, Ive found an old NorthQ Z-wave sensor that is supposed to report energy usage.
Ive successfully paired it with the hub, using a generic z-wave device.
(Obviously) no sensor data being returned yet. EDIT: actually, using a predefined type of Metering Dimmer is giving some values…

Please can someone link me to a guide on writing a device-type!! ?

The following doc list some of the config variables and command classes.

http://www.vesternet.com/downloads/dl/file/id/105/z_wave_data_logger_for_e_meters_manual.pdf

http://docs.smartthings.com/en/latest/
(Examples and information)

IDE
https://graph.api.smartthings.com

Hi Andy,

Did you get anywhere? I tried to edit a few things but creating a new device/device type from scratch is a whole new area for me.

I tried using the Home smartmeter template and edit it but don’t seem to make any sense from it yet

Any tips?
http://www.vesternet.com/downloads/dl/file/id/105/product/0/z_wave_data_logger_for_e_meters_manual.pdf