I notice the need to fix following:
Change button1 definition
“component”: “button1”,
“capability”: “button”,
“attribute”: “button”,
“trigger”: “Always”
Delete arguments definition from switch commands
“commands”: [
{
“component”: “main”,
“capability”: “switch”,
“command”: “on”,
}
]
“commands”: [
{
“component”: “main”,
“capability”: “switch”,
“command”: “off”,
}
]