Schlage Camelot custom device

I’m trying to create a new device type for my Schlage camelot lock based on the code that @bigpunk6 created here -> https://github.com/bigpunk6/device-type.lock

I created the device as per the instructions with the capabilities,custom attributes, etc, however when I paste the custom code for the device then save/publish I lose all the capabilities and custom attributes. It won’t even let me edit the device to put them back in.

I also get the following message.

“A definition section has been added to your device metadata. Click ‘Save’ to save these changes. Make future changes to device properties here.”

Can someone please tell me what I’m doing wrong?