1
1
{
2
- "flashicon" : " icons\/ generic_sensor.swf" ,
3
- "imgIconBody" : " " ,
4
- "imgIconDimmable" : " " ,
5
- "imgIconTurnable" : " " ,
6
- "imgIconMin" : " " ,
7
- "imgIconMax" : " " ,
8
- "halloIconsDir" : " pics/hallo" ,
9
- "inScene" : " 0" ,
10
- "DisplayStatus" : {},
11
- "doc_url" : {
12
- "doc_language" : 1 ,
13
- "doc_manual" : 1 ,
14
- "doc_version" : 1 ,
15
- "doc_platform" : 0 ,
16
- "doc_page" : " sensors"
2
+ "default_icon" : " https://media.vsm.net.ua/vera/icons/col2/unknown.png" ,
3
+ "state_icons" : [
4
+ {
5
+ "img" : " https://media.vsm.net.ua/vera/icons/col2/stable.png" ,
6
+ "conditions" : [
7
+ {
8
+ "service" : " urn:upnp-org:serviceId:BarometerSensor1" ,
9
+ "variable" : " Forecast" ,
10
+ "operator" : " ==" ,
11
+ "value" : " stable"
12
+ }
13
+ ]
14
+ },
15
+ {
16
+ "img" : " https://media.vsm.net.ua/vera/icons/col2/sunny.png" ,
17
+ "conditions" : [
18
+ {
19
+ "service" : " urn:upnp-org:serviceId:BarometerSensor1" ,
20
+ "variable" : " Forecast" ,
21
+ "operator" : " ==" ,
22
+ "value" : " sunny"
23
+ }
24
+ ]
25
+ },
26
+ {
27
+ "img" : " https://media.vsm.net.ua/vera/icons/col2/cloudy.png" ,
28
+ "conditions" : [
29
+ {
30
+ "service" : " urn:upnp-org:serviceId:BarometerSensor1" ,
31
+ "variable" : " Forecast" ,
32
+ "operator" : " ==" ,
33
+ "value" : " cloudy"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "img" : " https://media.vsm.net.ua/vera/icons/col2/unstable.png" ,
39
+ "conditions" : [
40
+ {
41
+ "service" : " urn:upnp-org:serviceId:BarometerSensor1" ,
42
+ "variable" : " Forecast" ,
43
+ "operator" : " ==" ,
44
+ "value" : " unstable"
45
+ }
46
+ ]
47
+ },
48
+ {
49
+ "img" : " https://media.vsm.net.ua/vera/icons/col2/thunderstorm.png" ,
50
+ "conditions" : [
51
+ {
52
+ "service" : " urn:upnp-org:serviceId:BarometerSensor1" ,
53
+ "variable" : " Forecast" ,
54
+ "operator" : " ==" ,
55
+ "value" : " thunderstorm"
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ "img" : " https://media.vsm.net.ua/vera/icons/col2/unknown.png" ,
61
+ "conditions" : [
62
+ {
63
+ "service" : " urn:upnp-org:serviceId:BarometerSensor1" ,
64
+ "variable" : " Forecast" ,
65
+ "operator" : " ==" ,
66
+ "value" : " unknown"
67
+ }
68
+ ]
69
+ }
70
+ ],
71
+ "imgIconBody" : " " ,
72
+ "imgIconDimmable" : " " ,
73
+ "imgIconTurnable" : " " ,
74
+ "imgIconMin" : " " ,
75
+ "imgIconMax" : " " ,
76
+ "halloIconsDir" : " pics/hallo" ,
77
+ "x" : " 3" ,
78
+ "y" : " 4" ,
79
+ "inScene" : " 0" ,
80
+ "DisplayStatus" : {},
81
+ "doc_url" : {
82
+ "doc_language" : 1 ,
83
+ "doc_manual" : 1 ,
84
+ "doc_version" : 1 ,
85
+ "doc_platform" : 0 ,
86
+ "doc_page" : " sensors"
17
87
},
18
- "Tabs" : [
19
- {
20
- "Label" : {
21
- "lang_tag" : " tabname_control" ,
88
+ "Tabs" :[
89
+ {
90
+ "Label" : {
91
+ "lang_tag" : " tabname_control" ,
22
92
"text" : " Information"
23
93
},
24
94
"Position" : " 0" ,
25
95
"TabType" : " flash" ,
26
- "SceneGroup" : [
96
+ "SceneGroup" : [
27
97
{
28
98
"id" : " 1" ,
29
- "top" : " 1.5" ,
30
- "left" : " 0" ,
31
- "x" : " 2" ,
32
- "y" : " 2"
33
- }
34
- ],
35
- "ControlGroup" : [
36
- {
37
- "id" : " 1" ,
38
- "scenegroup" : " 1" ,
39
- "type" : " info"
40
- },
41
- {
42
- "id" : " 2" ,
43
- "scenegroup" : " 1" ,
44
- "type" : " info"
45
- }
46
- ],
47
- "Control" : [
48
- {
49
- "ControlGroup" : " 1" ,
50
- "ControlPair" : " 1" ,
51
- "ControlHeader" : " 1" ,
52
- "top" : " 0" ,
53
- "left" : " 0" ,
54
- "x" : " 1.25" ,
55
- "ControlType" : " label" ,
56
- "Label" : {
57
- "lang_tag" : " pressure" ,
58
- "text" : " Pressure"
59
- },
60
- "Display" : {
61
- "Top" : 30 ,
62
- "Left" : 50 ,
63
- "Width" : 75 ,
64
- "Height" : 20
65
- }
66
- },
67
- {
68
- "ControlGroup" : " 1" ,
69
- "ControlPair" : " 1" ,
70
- "ControlHeader" : " 1" ,
71
- "top" : " 0" ,
72
- "left" : " 1.25" ,
73
- "x" : " 0.75" ,
74
- "ControlType" : " variable" ,
75
- "Display" : {
76
- "Service" : " urn:upnp-org:serviceId:BarometerSensor1" ,
77
- "Variable" : " CurrentPressure" ,
78
- "Top" : 30 ,
79
- "Left" : 150 ,
80
- "Width" : 25 ,
81
- "Height" : 20
82
- }
83
- },
84
- {
85
- "ControlType" : " label" ,
86
- "Label" : {
87
- "lang_tag" : " pressure_unit" ,
88
- "text" : " hPa"
89
- },
90
- "Display" : {
91
- "Top" : 30 ,
92
- "Left" : 200 ,
93
- "Width" : 25 ,
94
- "Height" : 20
95
- }
96
- },
97
- {
98
- "ControlType" : " label" ,
99
- "Label" : {
100
- "lang_tag" : " forecast" ,
101
- "text" : " Forecast"
102
- },
103
- "Display" : {
104
- "Top" : 55 ,
105
- "Left" : 50 ,
106
- "Width" : 75 ,
107
- "Height" : 20
108
- }
109
- },
110
- {
111
- "ControlGroup" : " 2" ,
112
99
"top" : " 1" ,
113
100
"left" : " 0" ,
114
101
"x" : " 2" ,
115
- "ControlType" : " variable" ,
116
- "Display" : {
117
- "Service" : " urn:upnp-org:serviceId:BarometerSensor1" ,
118
- "Variable" : " Forecast" ,
119
- "Top" : 55 ,
120
- "Left" : 150 ,
121
- "Width" : 100 ,
122
- "Height" : 20
123
- }
102
+ "y" : " 3"
124
103
}
125
- ]
126
- },
104
+ ],
105
+ "ControlGroup" : [
106
+ {
107
+ "id" : " 1" ,
108
+ "scenegroup" : " 1" ,
109
+ "type" : " info"
110
+ }
111
+ ],
112
+ "Control" : [
113
+ {
114
+ "ControlGroup" : 1 ,
115
+ "ControlType" : " spacer" ,
116
+ "HorizontalMultiplier" : " 0.7"
117
+ },
118
+ {
119
+ "ControlGroup" : " 1" ,
120
+ "ControlPair" : " 1" ,
121
+ "ControlHeader" : " 1" ,
122
+ "ControlType" : " label" ,
123
+ "top" : 0 ,
124
+ "left" : 0 ,
125
+ "x" : 1.25 ,
126
+ "Label" : {
127
+ "lang_tag" : " Pressure" ,
128
+ "text" : " Pressure:"
129
+ },
130
+ "Display" : {
131
+ "Top" : 30 ,
132
+ "Left" : 50 ,
133
+ "Width" : 75 ,
134
+ "Height" : 20
135
+ }
136
+ },
137
+ {
138
+ "ControlGroup" : " 1" ,
139
+ "ControlPair" : " 1" ,
140
+ "ControlHeader" : " 1" ,
141
+ "ControlType" : " variable" ,
142
+ "top" : " 0" ,
143
+ "left" : " 1.25" ,
144
+ "x" : " 0.75" ,
145
+ "Display" : {
146
+ "Service" : " urn:upnp-org:serviceId:BarometerSensor1" ,
147
+ "Variable" : " CurrentPressure" ,
148
+ "Top" : 30 ,
149
+ "Left" : 150 ,
150
+ "Width" : 25 ,
151
+ "Height" : 20
152
+ }
153
+ },
154
+ {
155
+ "ControlGroup" : 1 ,
156
+ "ControlType" : " spacer" ,
157
+ "HorizontalMultiplier" : " 0.3"
158
+ },
159
+ {
160
+ "ControlGroup" : " 1" ,
161
+ "ControlPair" : " 1" ,
162
+ "ControlHeader" : " 1" ,
163
+ "ControlType" : " label" ,
164
+ "Label" : {
165
+ "lang_tag" : " pressure_unit" ,
166
+ "text" : " hPa"
167
+ },
168
+ "Display" : {
169
+ "Top" : 30 ,
170
+ "Left" : 200 ,
171
+ "Width" : 25 ,
172
+ "Height" : 20
173
+ }
174
+ },
175
+ {
176
+ "ControlGroup" : 1 ,
177
+ "ControlType" : " line_break"
178
+ },
179
+ {
180
+ "ControlGroup" : 1 ,
181
+ "ControlType" : " spacer" ,
182
+ "HorizontalMultiplier" : " 0.7"
183
+ },
184
+ {
185
+ "ControlGroup" : " 1" ,
186
+ "ControlPair" : " 1" ,
187
+ "ControlHeader" : " 1" ,
188
+ "ControlType" : " label" ,
189
+ "Label" : {
190
+ "lang_tag" : " forecast" ,
191
+ "text" : " Forecast:"
192
+ },
193
+ "Display" : {
194
+ "Top" : 55 ,
195
+ "Left" : 50 ,
196
+ "Width" : 100 ,
197
+ "Height" : 20
198
+ }
199
+ },
200
+ {
201
+ "ControlGroup" : 1 ,
202
+ "ControlType" : " spacer" ,
203
+ "HorizontalMultiplier" : " 0.3"
204
+ },
205
+ {
206
+ "ControlGroup" : " 1" ,
207
+ "ControlPair" : " 1" ,
208
+ "ControlHeader" : " 1" ,
209
+ "top" : " 1" ,
210
+ "left" : " 0" ,
211
+ "x" : " 2" ,
212
+ "ControlType" : " variable" ,
213
+ "Display" : {
214
+ "Service" : " urn:upnp-org:serviceId:BarometerSensor1" ,
215
+ "Variable" : " Forecast" ,
216
+ "Top" : 55 ,
217
+ "Left" : 150 ,
218
+ "Width" : 100 ,
219
+ "Height" : 20
220
+ }
221
+ }
222
+
223
+ ]
224
+ },
127
225
{
128
226
"Label" : {
129
227
"lang_tag" : " advanced" ,
153
251
"TabType" : " javascript" ,
154
252
"ScriptName" : " shared.js" ,
155
253
"Function" : " device_notifications"
156
- }
157
- ],
254
+ }
255
+ ],
158
256
"eventList2" : [
159
257
{
160
258
"id" : 1 ,
281
379
]
282
380
}
283
381
],
284
- "DeviceType " : " urn:schemas-micasaverde-com:device:BarometerSensor:1"
285
- }
382
+ "device_type " : " urn:schemas-micasaverde-com:device:BarometerSensor:1"
383
+ }
0 commit comments