[
{
    "name": "Кондиционер",
    "manufacturer": "ONOKOM",
    "model": "AIR-GR-3-MB-B",
    "catalogId": -1,
    "link": "https://onokom.ru/ustroistva.html",
    "version" : "1.0",
    "services": [
      {
        "name": "Кондиционер",
        "type": "Thermostat",
        "characteristics": [
          {
            "type": "CurrentTemperature",
            "link": {
              "type": "Float",
              "topicSearch": "/devices/(ONOKOM-AIR-GR-3-MB-B_[0-9]{1,3})/controls/Indoor air temperature/meta/type",
              "topicGet": "/devices/(1)/controls/Indoor air temperature"
            }
          },
          {
            "type": "TargetTemperature",
            "link": {
              "type": "Float",
              "topicGet": "/devices/(1)/controls/Target temperature",
              "topicSet": "/devices/(1)/controls/Target temperature/on"
            },
            "minValue": 16,
            "maxValue": 30,
            "minStep": 1
          },
          {
            "type": "CurrentHeatingCoolingState",
            "link": {
              "type": "Integer",
              "topicGet": "/devices/(1)/controls/Thermostat state"
            },
            "validValues": "0,1,2"
          },
          {
            "type": "TargetHeatingCoolingState",
            "link": {
              "type": "Integer",
              "topicGet": "/devices/(1)/controls/Active mode",
              "topicSet": "/devices/(1)/controls/Active mode/on",
              "map": {
                "0": 0,
                "1": 1,
                "2": 2,
                "3": 3,
                "-2": 4,
                "-1": 5
              }
            },
            "validValues": "0,1,2,3, -1, -2"
          },
          {
            "type": "C_FanSpeed",
            "link": {
              "type": "Integer",
              "topicGet": "/devices/(1)/controls/Smart fan speed",
              "topicSet": "/devices/(1)/controls/Smart fan speed/on"
            }
          },
          {
            "type": "SwingMode",
            "link": {
              "type": "Integer",
              "topicGet": "/devices/(1)/controls/Vanes swing",
              "topicSet": "/devices/(1)/controls/Vanes swing/on",
              "map": {
                "0": 0,
                "1": 1,
                "-1": 2,
                "-2": 3
              }
            },
            "validValues": "0,1,-1,-2"
          }
        ]
      },
      {
        "name": "Вентилятор",
        "type": "Fan",
        "characteristics": [
          {
            "type": "RotationSpeed",
            "link": {
              "type": "Integer",
              "topicGet": "/devices/(1)/controls/Smart fan speed",
              "topicSet": "/devices/(1)/controls/Smart fan speed/on"
            },
            "minValue": 0,
            "maxValue": 5
          },
          {
            "type": "SwingMode",
            "link": {
              "type": "Integer",
              "topicGet": "/devices/(1)/controls/Vanes swing",
              "topicSet": "/devices/(1)/controls/Vanes swing/on"
            }
          }
        ]
      },
      {
        "name": "Горизонтальные жалюзи",
        "type": "Fan",
        "characteristics": [
          {
            "type": "RotationSpeed",
            "link": {
              "type": "Integer",
              "topicSearch": "/devices/(1)/controls/Horizontal vanes/meta/type",
              "topicGet": "/devices/(1)/controls/Horizontal vanes",
              "topicSet": "/devices/(1)/controls/Horizontal vanes/on"
            },
            "minValue": 0,
            "maxValue": 6
          }
        ]
      },
      {
        "name": "Вертикальные жалюзи",
        "type": "Fan",
        "characteristics": [
          {
            "type": "RotationSpeed",
            "link": {
              "type": "Integer",
              "topicSearch": "/devices/(1)/controls/Vertical vanes/meta/type",
              "topicGet": "/devices/(1)/controls/Vertical vanes",
              "topicSet": "/devices/(1)/controls/Vertical vanes/on"
            },
            "minValue": 0,
            "maxValue": 6
          }
        ]
      },
      {
        "name": "Тихий",
        "type": "Switch",
        "characteristics": [
          {
            "type": "On",
            "link": {
              "type": "Integer",
              "topicGet": "/devices/(1)/controls/Quiet mode",
              "topicSet": "/devices/(1)/controls/Quiet mode/on"
            }
          }
        ]
      },
      {
        "name": "Температура воздуха на улице",
        "type":"TemperatureSensor",
        "characteristics":[
           {
              "type":"CurrentTemperature",
              "link":{
                 "type":"Float",
                 "topicGet":"/devices/(1)/controls/Outdoor air temperature"
              }
           }
        ]
     }
    ],
    "options": [
      {
        "link": {
          "type": "String",
          "topicGet": "/devices/(1)/controls/FW Version"
        },
        "name": "Версия прошивки",
        "input": "status",
        "write": false,
        "type": "String"
      },
      {
          "link": {
              "type": "Integer",
              "topicGet": "/devices/(1)/controls/AC connected"
          },
          "name": "Кондиционер подключен",
          "type": "Boolean",
          "write": false,
          "init": true
      }
  ]
  }
]