{
  "manufacturer": "Svetomaniya",
  "model": "QS-Zigbee-SEC02",
  "manufacturerIds": [
    "Svetomaniya"
  ],
  "modelIds": [
    "QS-Zigbee-SEC02-Mod"
  ],
  "catalogId": 0,
  "template": [
    "/_Switch/BindOnOff.json",
    "/_Switch/BindOnOff2.json",
    "/_ProgrammableSwitch/BindMultistateInputBasic.json",
    "/_ProgrammableSwitch/BindMultistateInputBasic2.json"
  ],
  "init": [
    {
      "zcl": [
        {
          "endpoint": 1,
          "cluster": "0005_Scenes",
          "attribute": "F000_SceneId",
          "zclDataType": "UNSIGNED_8_BIT_INTEGER"
        },
        {
          "endpoint": 1,
          "cluster": "0005_Scenes",
          "attribute": "F001_GroupId",
          "zclDataType": "UNSIGNED_16_BIT_INTEGER"
        },
        {
          "endpoint": 1,
          "cluster": "0008_LevelControl",
          "attribute": "0002_MinLevel",
          "zclDataType": "UNSIGNED_8_BIT_INTEGER"
        },
        {
          "endpoint": 1,
          "cluster": "0008_LevelControl",
          "attribute": "0003_MaxLevel",
          "zclDataType": "UNSIGNED_8_BIT_INTEGER"
        },
        {
          "endpoint": 2,
          "cluster": "0005_Scenes",
          "attribute": "F000_SceneId",
          "zclDataType": "UNSIGNED_8_BIT_INTEGER"
        },
        {
          "endpoint": 2,
          "cluster": "0005_Scenes",
          "attribute": "F001_GroupId",
          "zclDataType": "UNSIGNED_16_BIT_INTEGER"
        },
        {
          "endpoint": 2,
          "cluster": "0008_LevelControl",
          "attribute": "0002_MinLevel",
          "zclDataType": "UNSIGNED_8_BIT_INTEGER"
        },
        {
          "endpoint": 2,
          "cluster": "0008_LevelControl",
          "attribute": "0003_MaxLevel",
          "zclDataType": "UNSIGNED_8_BIT_INTEGER"
        }
      ]
    },
    {
      "link": [
        {
          "endpoint": 1,
          "cluster": "0006_OnOff",
          "output": true
        }
      ],
      "name": "Прямое вкл/выкл (канал 1)",
      "bind": true,
      "visibleBind": true,
      "visibleBindGroup": true
    },
    {
      "link": [
        {
          "endpoint": 1,
          "cluster": "0008_LevelControl",
          "output": true
        }
      ],
      "name": "Прямая работа яркостью (канал 1)",
      "bind": true,
      "visibleBind": true,
      "visibleBindGroup": true
    },
    {
      "link": [
        {
          "endpoint": 1,
          "cluster": "0005_Scenes",
          "output": true
        }
      ],
      "name": "Прямая работа сценами (канал 1)",
      "bind": true,
      "visibleBind": true,
      "visibleBindGroup": true
    },
    {
      "link": [
        {
          "endpoint": 2,
          "cluster": "0006_OnOff",
          "output": true
        }
      ],
      "name": "Прямое вкл/выкл (канал 2)",
      "bind": true,
      "visibleBind": true,
      "visibleBindGroup": true
    },
    {
      "link": [
        {
          "endpoint": 2,
          "cluster": "0008_LevelControl",
          "output": true
        }
      ],
      "name": "Прямая работа яркостью (канал 2)",
      "bind": true,
      "visibleBind": true,
      "visibleBindGroup": true
    },
    {
      "link": [
        {
          "endpoint": 2,
          "cluster": "0005_Scenes",
          "output": true
        }
      ],
      "name": "Прямая работа сценами (канал 2)",
      "bind": true,
      "visibleBind": true,
      "visibleBindGroup": true
    }
  ],
  "services": [
    {
      "name": "Кнопка 1",
      "visible": false,
      "type": "ContactSensor",
      "characteristics": [
        {
          "type": "ContactSensorState",
          "link": [
            {
              "endpoint": 1,
              "cluster": "0012_MultistateInputBasic",
              "attribute": "0055_PresentValue",
              "map": {
                "CONTACT_DETECTED": "255",
                "CONTACT_NOT_DETECTED": "0"
              }
            }
          ]
        }
      ]
    },
    {
      "name": "Кнопка 2",
      "visible": false,
      "type": "ContactSensor",
      "characteristics": [
        {
          "type": "ContactSensorState",
          "link": [
            {
              "endpoint": 2,
              "cluster": "0012_MultistateInputBasic",
              "attribute": "0055_PresentValue",
              "map": {
                "CONTACT_DETECTED": "0",
                "CONTACT_NOT_DETECTED": "255"
              }
            }
          ]
        }
      ]
    },
    {
      "visible": false,
      "type": "StatelessProgrammableSwitch",
      "name": "Кнопка 1 Тройное",
      "characteristics": [
        {
          "type": "ProgrammableSwitchEvent",
          "link": [
            {
              "endpoint": 1,
              "cluster": "0012_MultistateInputBasic",
              "attribute": "0055_PresentValue",
              "map": {
                "SINGLE_PRESS": "3"
              }
            }
          ],
          "validValues": "SINGLE_PRESS"
        }
      ]
    },
    {
      "visible": false,
      "type": "StatelessProgrammableSwitch",
      "name": "Кнопка 1 Четверное",
      "characteristics": [
        {
          "type": "ProgrammableSwitchEvent",
          "link": [
            {
              "endpoint": 1,
              "cluster": "0012_MultistateInputBasic",
              "attribute": "0055_PresentValue",
              "map": {
                "SINGLE_PRESS": "4"
              }
            }
          ],
          "validValues": "SINGLE_PRESS"
        }
      ]
    },
    {
      "visible": false,
      "type": "StatelessProgrammableSwitch",
      "name": "Кнопка 1 Пятерное",
      "characteristics": [
        {
          "type": "ProgrammableSwitchEvent",
          "link": [
            {
              "endpoint": 1,
              "cluster": "0012_MultistateInputBasic",
              "attribute": "0055_PresentValue",
              "map": {
                "SINGLE_PRESS": "5"
              }
            }
          ],
          "validValues": "SINGLE_PRESS"
        }
      ]
    },
    {
      "visible": false,
      "type": "StatelessProgrammableSwitch",
      "name": "Кнопка 2 Тройное",
      "characteristics": [
        {
          "type": "ProgrammableSwitchEvent",
          "link": [
            {
              "endpoint": 2,
              "cluster": "0012_MultistateInputBasic",
              "attribute": "0055_PresentValue",
              "map": {
                "SINGLE_PRESS": "3"
              }
            }
          ],
          "validValues": "SINGLE_PRESS"
        }
      ]
    },
    {
      "visible": false,
      "type": "StatelessProgrammableSwitch",
      "name": "Кнопка 2 Четверное",
      "characteristics": [
        {
          "type": "ProgrammableSwitchEvent",
          "link": [
            {
              "endpoint": 2,
              "cluster": "0012_MultistateInputBasic",
              "attribute": "0055_PresentValue",
              "map": {
                "SINGLE_PRESS": "4"
              }
            }
          ],
          "validValues": "SINGLE_PRESS"
        }
      ]
    },
    {
      "visible": false,
      "type": "StatelessProgrammableSwitch",
      "name": "Кнопка 2 Пятерное",
      "characteristics": [
        {
          "type": "ProgrammableSwitchEvent",
          "link": [
            {
              "endpoint": 2,
              "cluster": "0012_MultistateInputBasic",
              "attribute": "0055_PresentValue",
              "map": {
                "SINGLE_PRESS": "5"
              }
            }
          ],
          "validValues": "SINGLE_PRESS"
        }
      ]
    }
  ],
  "options": [
    {
      "link": [
        {
          "endpoint": 1,
          "cluster": "0007_OnOffSwitchConfiguration",
          "attribute": "F000_Custom"
        }
      ],
      "name": "Тип 1 клавиши",
      "optional": true,
      "type": "Integer",
      "value": 2,
      "values": [
        {
          "value": 0,
          "name": "Переключатель"
        },
        {
          "value": 1,
          "name": "Мгновенный (возвратный)"
        },
        {
          "value": 2,
          "name": "Многофункциональный"
        },
        {
          "value": 3,
          "name": "Уровень яркости"
        },
        {
          "value": 4,
          "name": "Увеличение яркости"
        },
        {
          "value": 5,
          "name": "Уменьшение яркости"
        },
        {
          "value": 6,
          "name": "Сцена"
        }
      ]
    },
    {
      "link": [
        {
          "endpoint": 2,
          "cluster": "0007_OnOffSwitchConfiguration",
          "attribute": "F000_Custom"
        }
      ],
      "name": "Тип 2 клавиши",
      "type": "Integer",
      "value": 2,
      "values": [
        {
          "value": 0,
          "name": "Переключатель"
        },
        {
          "value": 1,
          "name": "Мгновенный (возвратный)"
        },
        {
          "value": 2,
          "name": "Многофункциональный"
        },
        {
          "value": 3,
          "name": "Уровень яркости"
        },
        {
          "value": 4,
          "name": "Увеличение яркости"
        },
        {
          "value": 5,
          "name": "Уменьшение яркости"
        },
        {
          "value": 6,
          "name": "Сцена"
        }
      ]
    },
    {
      "link": [
        {
          "endpoint": 1,
          "cluster": "0007_OnOffSwitchConfiguration",
          "attribute": "F001_Custom",
          "type": "Integer"
        }
      ],
      "name": "Отвязка клавиши 1",
      "type": "Boolean"
    },
    {
      "link": [
        {
          "endpoint": 2,
          "cluster": "0007_OnOffSwitchConfiguration",
          "attribute": "F001_Custom",
          "type": "Integer"
        }
      ],
      "name": "Отвязка клавиши 2",
      "type": "Boolean"
    },
    {
      "link": [
        {
          "endpoint": 1,
          "cluster": "0007_OnOffSwitchConfiguration",
          "attribute": "0010_SwitchActions",
          "type": "Integer"
        }
      ],
      "name": "Инверсия выключателя 1",
      "type": "Boolean",
      "value": false
    },
    {
      "link": [
        {
          "endpoint": 2,
          "cluster": "0007_OnOffSwitchConfiguration",
          "attribute": "0010_SwitchActions",
          "type": "Integer"
        }
      ],
      "name": "Инверсия выключателя 2",
      "type": "Boolean",
      "value": false
    },
    {
      "link": [
        {
          "endpoint": 1,
          "cluster": "0006_OnOff",
          "attribute": "4003_StartUpOnOff"
        }
      ],
      "name": "После восстановления питания (канал 1)",
      "type": "Integer",
      "value": 2,
      "values": [
        {
          "value": 0,
          "name": "@always_off"
        },
        {
          "value": 1,
          "name": "@always_on"
        },
        {
          "value": 2,
          "name": "Переключить"
        },
        {
          "value": 255,
          "name": "@last_state"
        }
      ]
    },
    {
      "link": [
        {
          "endpoint": 2,
          "cluster": "0006_OnOff",
          "attribute": "4003_StartUpOnOff"
        }
      ],
      "name": "После восстановления питания (канал 2)",
      "type": "Integer",
      "value": 2,
      "values": [
        {
          "value": 0,
          "name": "@always_off"
        },
        {
          "value": 1,
          "name": "@always_on"
        },
        {
          "value": 2,
          "name": "Переключить"
        },
        {
          "value": 255,
          "name": "@last_state"
        }
      ]
    },
    {
      "link": [
        {
          "endpoint": 1,
          "cluster": "0008_LevelControl",
          "attribute": "0002_MinLevel"
        }
      ],
      "name": "Минимальный уровень яркости (канал 1)",
      "description": "Минимальный уровень при уменьшении яркости",
      "type": "Integer",
      "value": 1,
      "minValue": 1,
      "maxValue": 255
    },
    {
      "link": [
        {
          "endpoint": 1,
          "cluster": "0008_LevelControl",
          "attribute": "0003_MaxLevel"
        }
      ],
      "name": "Максимальный уровень яркости (канал 1)",
      "description": "Максимальный уровень при увеличении яркости",
      "type": "Integer",
      "value": 255,
      "minValue": 1,
      "maxValue": 255
    },
    {
      "link": [
        {
          "endpoint": 1,
          "cluster": "0005_Scenes",
          "attribute": "F000_SceneId"
        }
      ],
      "name": "ID сцены (канал 1)",
      "description": "ID сцены (для типа клавиши «Сцена»)",
      "type": "Integer",
      "value": 0,
      "minValue": 0,
      "maxValue": 255
    },
    {
      "link": [
        {
          "endpoint": 1,
          "cluster": "0005_Scenes",
          "attribute": "F001_GroupId"
        }
      ],
      "name": "ID группы для сцен (канал 1)",
      "description": "ID группы для вызова сцен",
      "type": "Integer",
      "value": 0,
      "minValue": 0,
      "maxValue": 65527
    },
    {
      "link": [
        {
          "endpoint": 2,
          "cluster": "0008_LevelControl",
          "attribute": "0002_MinLevel"
        }
      ],
      "name": "Минимальный уровень яркости (канал 2)",
      "description": "Минимальный уровень при уменьшении яркости",
      "type": "Integer",
      "value": 1,
      "minValue": 1,
      "maxValue": 255
    },
    {
      "link": [
        {
          "endpoint": 2,
          "cluster": "0008_LevelControl",
          "attribute": "0003_MaxLevel"
        }
      ],
      "name": "Максимальный уровень яркости (канал 2)",
      "description": "Максимальный уровень при увеличении яркости",
      "type": "Integer",
      "value": 255,
      "minValue": 1,
      "maxValue": 255
    },
    {
      "link": [
        {
          "endpoint": 2,
          "cluster": "0005_Scenes",
          "attribute": "F000_SceneId"
        }
      ],
      "name": "ID сцены (канал 2)",
      "description": "ID сцены (для типа клавиши «Сцена»)",
      "type": "Integer",
      "value": 0,
      "minValue": 0,
      "maxValue": 255
    },
    {
      "link": [
        {
          "endpoint": 2,
          "cluster": "0005_Scenes",
          "attribute": "F001_GroupId"
        }
      ],
      "name": "ID группы для сцен (канал 2)",
      "description": "ID группы для вызова сцен",
      "type": "Integer",
      "value": 0,
      "minValue": 0,
      "maxValue": 65527
    }
  ]
}