{
  "version": 1,
  "protocol": "rs485",
  "vendor": "simple",
  "description": "简易RS485协议,支持主机发送设备码去控制，也支持设备码状态反馈(发送码跟接收码一致)",
  "baudrate": 9600,
  "codeFormat": 0,
  "supportRecv": 1,
  "devices": [
    {
      "actions": [
        {
          "action": "TurnOn",
          "instructions": [
            {
              "code": "0100000000000000",
              "desc": "打开"
            }
          ]
        },
        {
          "action": "TurnOff",
          "instructions": [
            {
              "code": "0100000000000001",
              "desc": "关闭"
            }
          ]
        },
        {
          "action": "SetBrightness",
          "instructions": [
            {
              "value": "25",
              "code": "010100000000025"
            },
            {
              "value": "50",
              "code": "0101000000000050"
            },
            {
              "value": "75",
              "code": "0101000000000075"
            },
            {
              "value": "100",
              "code": "0101000000000100"
            }
          ]
        },
        {
          "action": "SetColorTemperature",
          "instructions": [
            {
              "value": "25",
              "code": "010200000000025"
            },
            {
              "value": "50",
              "code": "0102000000000050"
            },
            {
              "value": "75",
              "code": "0102000000000075"
            },
            {
              "value": "100",
              "code": "0102000000000100"
            }
          ]
        }
      ],
      "brand": "品牌",
      "deviceId": "1",
      "deviceName": "大灯",
      "deviceType": "light",
      "icon": "",
      "model": "型号",
      "zone": "客厅"
    },
    {
      "actions": [
        {
          "action": "TurnOn",
          "instructions": [
            {
              "code": "0200000000000000",
              "desc": "打开"
            }
          ]
        },
        {
          "action": "TurnOff",
          "instructions": [
            {
              "code": "0200000000000001",
              "desc": "关闭"
            }
          ]
        }
      ],
      "brand": "品牌",
      "deviceId": "2",
      "deviceName": "客厅灯",
      "deviceType": "light",
      "icon": "",
      "model": "型号",
      "zone": "客厅"
    },
    {
      "actions": [
        {
          "action": "TurnOn",
          "instructions": [
            {
              "code": "0300000000000000",
              "desc": "打开"
            }
          ]
        },
        {
          "action": "TurnOff",
          "instructions": [
            {
              "code": "0300000000000001",
              "desc": "关闭"
            }
          ]
        }
      ],
      "brand": "品牌",
      "deviceId": "3",
      "deviceName": "开关",
      "deviceType": "switch",
      "icon": "",
      "model": "型号",
      "zone": "客厅"
    },
    {
      "actions": [
        {
          "action": "TurnOn",
          "instructions": [
            {
              "code": "0400000000000000",
              "desc": "打开"
            }
          ]
        },
        {
          "action": "TurnOff",
          "instructions": [
            {
              "code": "0400000000000001",
              "desc": "关闭"
            }
          ]
        }
      ],
      "brand": "品牌",
      "deviceId": "4",
      "deviceName": "大灯",
      "deviceType": "light",
      "icon": "",
      "model": "型号",
      "zone": "主卧"
    },
    {
      "actions": [
        {
          "action": "TurnOn",
          "instructions": [
            {
              "code": "2000000000000000",
              "desc": "打开"
            }
          ]
        },
        {
          "action": "TurnOff",
          "instructions": [
            {
              "code": "2000000000000001",
              "desc": "关闭"
            }
          ]
        },
        {
          "action": "Pause",
          "instructions": [
            {
              "code": "2000000000000002",
              "desc": "暂停"
            }
          ]
        }
      ],
      "brand": "品牌",
      "deviceId": "20",
      "deviceName": "窗帘",
      "deviceType": "curtain",
      "icon": "",
      "model": "型号",
      "zone": "客厅"
    },
    {
      "actions": [
        {
          "action": "TurnOn",
          "instructions": [
            {
              "code": "0A00000000000000",
              "desc": "打开"
            }
          ]
        },
        {
          "action": "TurnOff",
          "instructions": [
            {
              "code": "0A00000000000001",
              "desc": "关闭"
            }
          ]
        },
        {
          "action": "SetTemperature",
          "instructions": [
            {
              "value": "20",
              "code": "0A00000000000020"
            },
            {
              "value": "21",
              "code": "0A00000000000021"
            },
            {
              "value": "22",
              "code": "0A00000000000022"
            },
            {
              "value": "23",
              "code": "0A00000000000023"
            },
            {
              "value": "24",
              "code": "0A00000000000024"
            },
            {
              "value": "25",
              "code": "0A00000000000025"
            },
            {
              "value": "26",
              "code": "0A00000000000026"
            },
            {
              "value": "27",
              "code": "0A00000000000027"
            },
            {
              "value": "28",
              "code": "0A00000000000028"
            },
            {
              "value": "29",
              "code": "0A00000000000029"
            },
            {
              "value": "30",
              "code": "0A00000000000030"
            }
          ]
        },
        {
          "action": "SetMode",
          "instructions": [
            {
              "value": "auto",
              "code": "0A00000000000040",
              "desc": "自动"
            },
            {
              "value": "cold",
              "code": "0A00000000000041",
              "desc": "制冷"
            },
            {
              "value": "heat",
              "code": "0A00000000000042",
              "desc": "制热"
            },
            {
              "value": "airsupply",
              "code": "0A00000000000043",
              "desc": "送风"
            }
          ]
        },
        {
          "action": "SetWindSpeed",
          "instructions": [
            {
              "value": "auto",
              "code": "0A00000000000010",
              "desc": "自动风"
            },
            {
              "value": "high",
              "code": "0A00000000000011",
              "desc": "高风"
            },
            {
              "value": "medium",
              "code": "0A00000000000012",
              "desc": "中风"
            },
            {
              "value": "low",
              "code": "0A00000000000013",
              "desc": "低风"
            }
          ]
        },
        {
          "action": "SetSwing",
          "instructions": [
            {
              "value": "OpenUpAndDownSwing",
              "code": "0A00000000000030",
              "desc": "上下扫风"
            },
            {
              "value": "OpenLeftAndRightSwing",
              "code": "0A00000000000031",
              "desc": "左右扫风"
            },
            {
              "value": "CloseSwing",
              "code": "0A00000000000032",
              "desc": "停止扫风"
            }
          ]
        }
      ],
      "brand": "品牌",
      "deviceId": "10",
      "deviceName": "空调",
      "deviceType": "aircondition",
      "icon": "",
      "model": "型号",
      "zone": "客厅"
    },
    {
      "actions": [
        {
          "action": "TurnOn",
          "instructions": [
            {
              "code": "F100000000000001",
              "desc": "打开"
            }
          ]
        },
        {
          "action": "TurnOff",
          "instructions": [
            {
              "code": "F100000000000002",
              "desc": "关闭"
            }
          ]
        },
        {
          "action": "AdjustUpChannel",
          "instructions": [
            {
              "code": "F100000000000003",
              "desc": ""
            }
          ]
        },
        {
          "action": "AdjustDownChannel",
          "instructions": [
            {
              "code": "F100000000000004",
              "desc": ""
            }
          ]
        },
        {
          "action": "AdjustUpVolume",
          "instructions": [
            {
              "code": "F100000000000005",
              "desc": ""
            }
          ]
        },
        {
          "action": "AdjustDownVolume",
          "instructions": [
            {
              "code": "F100000000000006",
              "desc": "关闭"
            }
          ]
        },
        {
          "action": "Mute",
          "instructions": [
            {
              "code": "F100000000000007",
              "desc": "关闭"
            }
          ]
        }
      ],
      "brand": "品牌",
      "deviceId": "F1",
      "deviceName": "电视",
      "deviceType": "tv",
      "icon": "",
      "model": "型号",
      "zone": "客厅"
    },
    {
      "actions": [
        {
          "action": "TurnOn",
          "instructions": [
            {
              "code": "1100000000000000",
              "desc": "打开"
            }
          ]
        }
      ],
      "deviceId": "100",
      "deviceName": "晨起",
      "deviceType": "smartscene",
      "icon": ""
    },
    {
      "actions": [
        {
          "action": "TurnOn",
          "instructions": [
            {
              "code": "1100000000000001",
              "desc": "打开"
            }
          ]
        }
      ],
      "deviceId": "101",
      "deviceName": "睡眠",
      "deviceType": "smartscene",
      "icon": ""
    },
    {
      "actions": [
        {
          "action": "TurnOn",
          "instructions": [
            {
              "code": "1100000000000002",
              "desc": "打开"
            }
          ]
        }
      ],
      "deviceId": "102",
      "deviceName": "酒店",
      "deviceType": "smartscene",
      "icon": ""
    }
  ]
}