- Location:
- /trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
/trunk/D_VistaAlarmPanel1.json
r1 r3 1 1 { 2 "flashicon": "icons\/ generic_sensor.swf",2 "flashicon": "icons\/Door_Lock.swf", 3 3 "imgIconBody": "", 4 4 "imgIconDimmable": "", 5 5 "imgIconTurnable": "", 6 "imgIconMin": " ",7 "imgIconMax": " ",6 "imgIconMin": "pics\/devices\/Door_UNLOCKED.png", 7 "imgIconMax": "pics\/devices\/Door_LOCKED.pn", 8 8 "halloIconsDir": "pics\/hallo", 9 9 "DisplayStatus": { 10 10 "Style": "label", 11 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 12 "Variable": "ArmMode", 13 "MinValue": "Disarmed", 14 "MaxValue": "Armed" 11 15 }, 12 16 "doc_url":{ 17 "doc_language": 1, 18 "doc_manual": 1, 19 "doc_version": 1, 20 "doc_platform": 0, 21 "doc_page": "devices", 13 22 "doc_forced_url":{ 14 23 "text":"http://code.mios.com/trac/mios_ademco-panels-plugin" 15 24 } 16 25 }, 26 "ToggleButton": 1, 17 27 "Tabs": [ 18 28 { … … 24 34 "TabType": "flash", 25 35 "Control": [ 36 { 37 "ControlGroup": "1", 38 "ControlHeader": "1", 39 "ControlType": "label", 40 "Label": { 41 "lang_tag": "device_settings_page", 42 "text": "Partitions:" 43 }, 44 "Display": { 45 "Top": 0, 46 "Left": 50, 47 "Width": 50, 48 "Height": 20 49 } 50 }, 51 { 52 "ControlType": "variable", 53 "Display": { 54 "Service": "urn:micasaverde-com:serviceId:VistaAlarmPanel1", 55 "Variable": "ActivePartitions", 56 "Top": 0, 57 "Left": 100, 58 "Width": 50, 59 "Height": 20 60 } 61 }, 62 { 63 "ControlGroup": "1", 64 "ControlHeader": "1", 65 "ControlType": "label", 66 "Label": { 67 "lang_tag": "device_settings_page", 68 "text": "Zones:" 69 }, 70 "Display": { 71 "Top": 20, 72 "Left": 50, 73 "Width": 50, 74 "Height": 20 75 } 76 }, 77 { 78 "ControlType": "variable", 79 "Display": { 80 "Service": "urn:micasaverde-com:serviceId:VistaAlarmPanel1", 81 "Variable": "ActiveZones", 82 "Top": 20, 83 "Left": 100, 84 "Width": 50, 85 "Height": 20 86 } 87 }, 26 88 27 89 ] -
/trunk/D_VistaAlarmPartition2.json
r1 r3 45 45 "Label": { 46 46 "lang_tag": "device_settings_page", 47 "text": "Status "47 "text": "Status:" 48 48 }, 49 49 "Display": { 50 50 "Top": 0, 51 51 "Left": 50, 52 "Width": 200,52 "Width": 50, 53 53 "Height": 20 54 54 } … … 60 60 "Display": { 61 61 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 62 "Variable": "DetailedArmMode",63 "Top": 20,64 "Left": 50,65 "Width": 200,66 "Height": 2067 }68 },69 {70 "ControlType": "label",71 "Label": {72 "lang_tag": "device_settings_page",73 "text": "One Touch Options"74 },75 "Display": {76 "Top": 60,77 "Left": 50,78 "Width": 200,79 "Height": 2080 }81 },82 {83 "ControlGroup": "1",84 "ControlType": "button",85 "Label": {86 "lang_tag": "cmd_lock",87 "text": "Arm"88 },89 "Display": {90 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2",91 62 "Variable": "ArmMode", 92 "Value": "Armed", 93 "Top": 80, 94 "Left": 50, 95 "Width": 75, 96 "Height": 20 97 }, 98 "Command": { 99 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 100 "Action": "RequestQuickArmMode", 101 "Parameters": [ 102 { 103 "Name": "State", 104 "Value": "Armed" 105 } 106 ] 107 } 108 }, 109 { 110 "ControlGroup": "1", 111 "ControlType": "button", 112 "Label": { 113 "lang_tag": "cmd_lock", 114 "text": "Force" 115 }, 116 "Display": { 117 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 118 "Variable": "DetailedArmMode", 119 "Value": "Force", 120 "Top": 100, 121 "Left": 50, 122 "Width": 75, 123 "Height": 20 124 }, 125 "Command": { 126 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 127 "Action": "RequestQuickArmMode", 128 "Parameters": [ 129 { 130 "Name": "State", 131 "Value": "ArmedInstant" 132 } 133 ] 134 } 135 }, 136 { 137 "ControlGroup": "1", 138 "ControlType": "button", 139 "Label": { 140 "lang_tag": "cmd_lock", 141 "text": "Stay" 142 }, 143 "Display": { 144 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 145 "Variable": "DetailedArmMode", 146 "Value": "Stay", 147 "Top": 80, 148 "Left": 135, 149 "Width": 75, 150 "Height": 20 151 }, 152 "Command": { 153 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 154 "Action": "RequestQuickArmMode", 155 "Parameters": [ 156 { 157 "Name": "State", 158 "Value": "Stay" 159 } 160 ] 161 } 162 }, 163 { 164 "ControlGroup": "1", 165 "ControlType": "button", 166 "Label": { 167 "lang_tag": "cmd_lock", 168 "text": "iStay" 169 }, 170 "Display": { 171 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 172 "Variable": "DetailedArmMode", 173 "Value": "StayInstant", 174 "Top": 100, 175 "Left": 135, 176 "Width": 75, 177 "Height": 20 178 }, 179 "Command": { 180 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 181 "Action": "RequestQuickArmMode", 182 "Parameters": [ 183 { 184 "Name": "State", 185 "Value": "StayInstant" 186 } 187 ] 188 } 189 }, 190 { 191 "ControlGroup": "1", 192 "ControlType": "button", 193 "Label": { 194 "lang_tag": "cmd_lock", 195 "text": "Night" 196 }, 197 "Display": { 198 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 199 "Variable": "DetailedArmMode", 200 "Value": "Night", 201 "Top": 80, 202 "Left": 220, 203 "Width": 75, 204 "Height": 20 205 }, 206 "Command": { 207 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 208 "Action": "RequestQuickArmMode", 209 "Parameters": [ 210 { 211 "Name": "State", 212 "Value": "Night" 213 } 214 ] 215 } 216 }, 217 { 218 "ControlGroup": "1", 219 "ControlType": "button", 220 "Label": { 221 "lang_tag": "cmd_lock", 222 "text": "iNight" 223 }, 224 "Display": { 225 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 226 "Variable": "DetailedArmMode", 227 "Value": "NightInstant", 228 "Top": 100, 229 "Left": 220, 230 "Width": 75, 231 "Height": 20 232 }, 233 "Command": { 234 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 235 "Action": "RequestQuickArmMode", 236 "Parameters": [ 237 { 238 "Name": "State", 239 "Value": "NightInstant" 240 } 241 ] 242 } 243 }, 63 "Top": 0, 64 "Left": 100, 65 "Width": 200, 66 "Height": 20 67 } 68 }, 69 244 70 { 245 71 "ControlGroup": "2", … … 251 77 }, 252 78 "Display": { 253 "Top": 140,79 "Top": 40, 254 80 "Left": 50, 255 81 "Width": 200, … … 263 89 "ID": "PINCode", 264 90 "Display": { 265 "Top": 160,91 "Top": 60, 266 92 "Left": 50, 267 93 "Width": 100, … … 281 107 "Variable": "ArmMode", 282 108 "Value": "Armed", 283 "Top": 160,109 "Top": 60, 284 110 "Left": 160, 285 111 "Width": 50, … … 313 139 "Variable": "DetailedArmMode", 314 140 "Value": "Stay", 315 "Top": 180,141 "Top": 80, 316 142 "Left": 160, 317 143 "Width": 50, … … 345 171 "Variable": "ArmMode", 346 172 "Value": "Disarmed", 347 "Top": 200,173 "Top": 100, 348 174 "Left": 160, 349 175 "Width": 50, … … 372 198 }, 373 199 "Display": { 374 "Top": 240,200 "Top": 140, 375 201 "Left": 50, 376 202 "Width": 200, … … 385 211 }, 386 212 "Display": { 387 "Top": 260,213 "Top": 160, 388 214 "Left": 50, 389 215 "Width": 75, … … 408 234 }, 409 235 "Display": { 410 "Top": 260,236 "Top": 160, 411 237 "Left": 135, 412 238 "Width": 75, … … 431 257 }, 432 258 "Display": { 433 "Top": 260,259 "Top": 160, 434 260 "Left": 220, 435 261 "Width": 75, … … 454 280 }, 455 281 "Display": { 456 "Top": 300,282 "Top": 200, 457 283 "Left": 50, 458 284 "Width": 200, … … 465 291 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 466 292 "Variable": "VendorStatus", 467 "Top": 320,293 "Top": 220, 468 294 "Left": 50, 469 295 "Width": 200, … … 476 302 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 477 303 "Variable": "VendorStatusCode", 478 "Top": 340,304 "Top": 240, 479 305 "Left": 50, 480 306 "Width": 200, … … 487 313 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 488 314 "Variable": "VendorStatusData", 489 "Top": 360,315 "Top": 260, 490 316 "Left": 50, 491 317 "Width": 200, -
/trunk/I_VistaAlarmPanel1.xml
r1 r3 236 236 for partStatus in string.gmatch(fields, "%d") do 237 237 partStatus = tonumber(partStatus) 238 --if(partStatus ~= 0) then numZones = numZones + 1 end239 238 if(partStatus ~= 0 and foundParts[partStatus] == nil) then 240 239 numPartitions = numPartitions + 1 240 foundParts[partStatus] = 1 241 241 Partitions[numPartitions] = partStatus 242 242 end … … 246 246 247 247 setVistaPanelState("ActivePartitions", numPartitions) 248 setVistaPanelState("ActiveZones", numZones)249 248 250 249 end … … 268 267 end 269 268 269 setVistaPanelState("ActiveZones", j) 270 270 271 for i,z in ipairs(Zones) do 271 272 log(string.format("%d - %d - %s", i, z, ZoneDescriptions[z]))
Note: See TracChangeset
for help on using the changeset viewer.