Static JSON files for devices - templates/examples?

The documentation seems to suggest I start with this in my D_MyPlugin.json file…

{
	"default_icon": "../../../icons/power2.png",
	"state_icons": [],
	"inScene":"1",
	"Tabs": [
		{
          "Label": {
                "lang_tag": "About",
                "text": "About"
          },
          "TopNavigationTab": "1",
          "Position": "4",
          "TabType": "javascript",
          "ScriptName": "J_MyPlugin.js",
          "Function": "MyPlugin.about"
	  }
	],

Within that referenced J_MyPlugin.js file, needing to include something like the following (example)

var MyPlugin = (function(api){
    return {
        about: function() {
            try {              
                var html = '<div>This is all about me !</div>';
             api.setCpanelContent(html);
            } catch (e) {
                Utils.logError('Error in MyPlugin.about(): ' + e);
            }
        }
    };
})(api);

And then back to the json file again, it seems i need to add a ‘scene group’ ?

"SceneGroup": [
   {
       "id": "1",
       "top": "1",
       "left": "0",
       "x": "2",
       "y": "3"
   }
],
"ControlGroup": [
   {
       "id": "1",
       "isSingle": "1",
       "scenegroup": "1"
   }
]

Followed by a ‘Button’ control type ?

{
   "ControlGroup": 1,
   "ControlType": "button",
   "ControlCode": "my_button",
   "top": 0,
   "left": 0,
   "Label": {
       "lang_tag": "my_first_button",
       "text": "My First Button"
   },
   "Display": {
       "Service": "urn:micasaverde-com:serviceId:MyPlugin1",
       "Variable": "Status",
       "Value": "1",
       "Top": 200,
       "Left": 50,
       "Width": 100,
       "Height": 20
   },
   "Command": {
       "Service": "urn:micasaverde-com:serviceId:MyPlugin1",
       "Action": "SetStatus",
       "Parameters": [
           {
               "Name": "Status",
               "Value": "1"
           }
       ]
   }
},

I’ve tried all of these together and running it through a JSON validator, https://jsonlint.com/. But it just gives me errors, and it’s also not clear how do i should look to end the file ? :exploding_head: !!!???

D_ MyPlugin1.json.zip (1.3 KB)