Skip to content

Instantly share code, notes, and snippets.

@bobalob
Created January 21, 2018 12:25
Show Gist options
  • Save bobalob/307047930189462c4375ef432ed82f9e to your computer and use it in GitHub Desktop.
Save bobalob/307047930189462c4375ef432ed82f9e to your computer and use it in GitHub Desktop.
{
"schema": [
{
"mode": "rw",
"code": "led_switch",
"name": "开关",
"property": {
"type": "bool"
},
"iconname": "icon-dp_power",
"id": 1,
"type": "obj",
"desc": ""
},
{
"mode": "rw",
"code": "work_mode",
"name": "工作模式",
"property": {
"range": [
"white",
"colour",
"scene",
"scene_1",
"scene_2",
"scene_3",
"scene_4"
],
"type": "enum"
},
"iconname": "icon-dp_mode",
"id": 2,
"type": "obj",
"desc": ""
},
{
"mode": "rw",
"code": "bright_value",
"name": "亮度值",
"property": {
"unit": "",
"min": 25,
"max": 255,
"scale": 0,
"step": 1,
"type": "value"
},
"iconname": "icon-dp_sun",
"id": 3,
"type": "obj",
"desc": ""
},
{
"mode": "rw",
"code": "temp_value",
"name": "冷暖值",
"property": {
"unit": "",
"min": 0,
"max": 255,
"scale": 0,
"step": 1,
"type": "value"
},
"iconname": "icon-dp_light",
"id": 4,
"type": "obj",
"desc": ""
},
{
"mode": "rw",
"code": "colour_data",
"name": "彩光模式数",
"property": {
"type": "string",
"maxlen": 14
},
"id": 5,
"type": "obj",
"desc": "rgbhsv"
},
{
"mode": "rw",
"code": "scene_data",
"name": "情景模式数",
"property": {
"type": "string",
"maxlen": 14
},
"id": 6,
"type": "obj",
"desc": "rgbhsv"
},
{
"mode": "rw",
"code": "flash_scene_1",
"name": "柔光情景",
"property": {
"type": "string",
"maxlen": 14
},
"id": 7,
"type": "obj",
"desc": ""
},
{
"mode": "rw",
"code": "flash_scene_2",
"name": "缤纷情景",
"property": {
"type": "string",
"maxlen": 44
},
"id": 8,
"type": "obj",
"desc": ""
},
{
"mode": "rw",
"code": "flash_scene_3",
"name": "炫彩情景",
"property": {
"type": "string",
"maxlen": 14
},
"id": 9,
"type": "obj",
"desc": ""
},
{
"mode": "rw",
"code": "flash_scene_4",
"name": "斑斓情景",
"property": {
"type": "string",
"maxlen": 44
},
"id": 10,
"type": "obj",
"desc": ""
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment