-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.json
More file actions
129 lines (129 loc) · 3.42 KB
/
example.json
File metadata and controls
129 lines (129 loc) · 3.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"adapters": [
{
"model": "iTachIP2SL",
"ip": "10.100.87.43",
"uuid": "GlobalCache_000C1E051AEE",
"ports": [{
"id": "sl_dten_tv",
"name": "DTEN TV",
"settings":
{
"baud_rate": "115200",
"flow_control": "FLOW_NONE",
"parity": "PARITY_NO"
},
"methods": [
{
"id": "power",
"name": "Power",
"command": "\\x99\\xA2\\x01\\x01\\x27\\xAA\\xAA\\xAA",
"type": "action"
},
{
"id": "sleep",
"name": "Sleep",
"command": "\\x99\\x01%\\xAA",
"params": [{"id":"confirm", "name":"Confirm", "value":"\\x26\\x01\\xD9"},
{"id":"exit", "name":"Exit", "value":"\\x14\\x01\\xEB"}],
"type": "actions"
},
{
"id": "mute",
"name": "Mute",
"command": "\\x99\\x01%\\xAA",
"params": [{"id":"mute", "name":"Mute", "value":"\\x02\\x01\\xFD"},
{"id":"unmute", "name":"Unmute", "value":"\\x02\\x01\\xFD"}],
"type": "actions"
},
{
"id": "volume",
"name": "Volume",
"command": "\\x99\\x01%\\xAA",
"params": [{"id":"up", "name":"Up", "value":"\\x17\\x01\\xE8"},
{"id":"down", "name":"Down", "value":"\\x18\\x01\\xE7"}],
"type": "actions"
},
{
"id": "source",
"name": "Source",
"command": "\\x99\\x01%\\xAA",
"params": [{"id":"show", "name":"Show", "value":"\\x20\\x01\\xDF"},
{"id":"hide", "name":"Hide", "value":"\\x14\\x01\\xEB"}],
"type": "actions"
}
]
}]
},
{
"model": "iTachIP2CC",
"ip": "10.100.87.99",
"uuid": "GlobalCache_000C1E051AEE",
"ports": [{
"id": "cc_light",
"name": "Light",
"position": 1
},
{
"id": "cc_projector",
"name": "Projector",
"position": 2
}
]
},
{
"model": "GenericNetworkAdapter",
"ip": "tcp://10.100.87.99:4998",
"ports": [{
"id": "generic_curtain",
"name": "Curtain",
"methods":[
{
"id": "power",
"name": "Power",
"command": "setstate,1:3,%\r",
"params": [{"id":"on", "name":"Open", "value":"1"},
{"id":"off", "name":"Close", "value":"0"}],
"type": "actions"
}
]
}]
}
],
"styles":[
"sl_dten_tv.main_method=power",
"sl_dten_tv.icon=icon_air_conditioner",
"sl_dten_tv.power.icon=icon_power",
"sl_dten_tv.volume.up.icon=icon_up",
"sl_dten_tv.volume.down.icon=icon_down",
"cc_light.icon=icon_light",
"cc_projector.icon=icon_projector",
"generic_curtain.main_method=power",
"generic_curtain.icon=icon_curtain"
],
"rules":
{
"meeting_started": [
"cc_light.power.on",
"cc_projector.power.on",
"generic_curtain.power.on"
],
"meeting_ended": [
"cc_light.power.off",
"cc_projector.power.off",
"generic_curtain.power.off"
],
"microphone_muted":[
"sl_dten_tv.mute.mute"
],
"microphone_unmuted":[
"sl_dten_tv.mute.unmute"
],
"video_started":[
"generic_curtain.power.on"
],
"video_stopped":[
"generic_curtain.power.off"
]
}
}