- Location:
- /trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
/trunk/D_Concord.json
r1 r3 15 15 "Position": "0", 16 16 "TabType": "flash", 17 "SceneGroup":[ 18 { 19 "id": "1", 20 "top": "1", 21 "left": "0", 22 "x": "1", 23 "y": "1" 24 } 25 ], 17 26 "ControlGroup": [ 18 27 { 19 28 "id": "1", 29 "scenegroup": "1", 20 30 "isSingle": "1" 21 31 } … … 30 40 }, 31 41 "Display": { 32 "Top": 20,42 "Top": 30, 33 43 "Left": 50, 34 44 "Width": 100, … … 45 55 { 46 56 "Label": { 57 "lang_tag": "settings", 58 "text": "Settings" 59 }, 60 "Position": "1", 61 "TabType": "javascript", 62 "ScriptName": "shared.js", 63 "Function": "simple_device" 64 }, 65 { 66 "Label": { 47 67 "lang_tag": "advanced", 48 68 "text": "Advanced" 49 69 }, 50 "Position": " 1",70 "Position": "2", 51 71 "TabType": "javascript", 52 72 "ScriptName": "shared.js", -
/trunk/D_ConcordPartition.json
r1 r3 7 7 "imgIconMax": "pics\/devices\/Door_LOCKED.png", 8 8 "halloIconsDir": "pics\/hallo", 9 "inScene": "1", 9 10 "DisplayStatus": { 10 11 "Style": "label", … … 25 26 { 26 27 "Label": { 27 "lang_tag": " tab_alarm_partition",28 "lang_tag": "alarm_partition", 28 29 "text": "Alarm Partition" 29 30 }, 30 31 "Position": "0", 31 32 "TabType": "flash", 33 "SceneGroup": [ 34 { 35 "id": "1", 36 "top": "0.5", 37 "left": "0", 38 "x": "2", 39 "y": "1" 40 }, 41 { 42 "id": "2", 43 "top": "1.5", 44 "left": "0", 45 "x": "2", 46 "y": "2" 47 } 48 ], 32 49 "ControlGroup": [ 33 50 { 34 51 "id": "1", 35 "type": "info" 52 "scenegroup": "1" 53 }, 54 { 55 "id": "2", 56 "scenegroup": "2" 36 57 } 37 58 ], … … 39 60 { 40 61 "ControlGroup": "1", 41 "ControlHeader": "1",42 62 "ControlType": "label", 43 63 "Label": { 44 "lang_tag": " label_status",64 "lang_tag": "status", 45 65 "text": "Status:" 46 66 }, 67 "top": 0, 68 "left": 0, 47 69 "Display": { 48 70 "Top": 20, 49 "Left": 285,50 "Width": 75,71 "Left": 155, 72 "Width": 40, 51 73 "Height": 20 52 74 } … … 54 76 { 55 77 "ControlGroup": "1", 56 "ControlHeader": "1",57 78 "ControlType": "variable", 79 "top": 0, 80 "left": 1, 81 "text_align": "left", 58 82 "Display": { 59 83 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 60 84 "Variable": "DetailedArmMode", 61 "Top": 40,62 "Left": 2 85,63 "Width": 75,85 "Top": 20, 86 "Left": 200, 87 "Width": 80, 64 88 "Height": 20 65 89 } … … 68 92 "ControlType": "label", 69 93 "Label": { 70 "lang_tag": " label_pin_code",94 "lang_tag": "pin_code", 71 95 "text": "PIN Code:" 72 96 }, 73 97 "Display": { 74 "Top": 8 0,75 "Left": 70,98 "Top": 85, 99 "Left": 40, 76 100 "Width": 75, 77 101 "Height": 20 … … 83 107 "Display": { 84 108 "Top": 105, 85 "Left": 70,109 "Left": 40, 86 110 "Width": 75, 87 111 "Height": 20 … … 89 113 }, 90 114 { 91 "ControlType": "button",92 "Label": {93 "lang_tag": "button_store",94 "text": "Store"95 },96 "Display": {97 "Top": 130,98 "Left": 70,99 "Width": 75,100 "Height": 20101 },102 "Command": {103 "Service": "urn:micasaverde-com:serviceId:ElkAlarmPanel1",104 "Action": "StorePinCode",105 "Parameters": [106 {107 "Name": "PinCode",108 "ID": "PINCode"109 }110 ]111 }112 },113 {114 "ControlType": "button",115 "Label": {116 "lang_tag": "button_clear",117 "text": "Clear"118 },119 "Display": {120 "Top": 150,121 "Left": 70,122 "Width": 75,123 "Height": 20124 },125 "Command": {126 "Service": "urn:micasaverde-com:serviceId:ElkAlarmPanel1",127 "Action": "ClearPinCode",128 "Parameters": []129 }130 },131 {132 115 "ControlType": "label", 133 116 "Label": { 134 "lang_tag": "label_arm_mode", 135 "text": "Arm Mode:" 136 }, 137 "Display": { 138 "Top": 80, 139 "Left": 285, 140 "Width": 75, 141 "Height": 20 142 } 143 }, 144 { 145 "ControlType": "button", 146 "Label": { 147 "lang_tag": "button_away", 117 "lang_tag": "arm_mode", 118 "text": "<b>Arm/Disarm Partition</b>" 119 }, 120 "Display": { 121 "Top": 60, 122 "Left": 155, 123 "Width": 100, 124 "Height": 20 125 } 126 }, 127 { 128 "ControlGroup": "2", 129 "ControlType": "button", 130 "Label": { 131 "lang_tag": "away", 148 132 "text": "Away" 149 133 }, 134 "top": 0, 135 "left": 0, 150 136 "Display": { 151 137 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 152 138 "Variable": "DetailedArmMode", 153 139 "Value": "Armed", 154 "Top": 100,155 "Left": 200,156 "Width": 75,140 "Top": 80, 141 "Left": 150, 142 "Width": 110, 157 143 "Height": 20 158 144 }, … … 175 161 "ControlType": "button", 176 162 "Label": { 177 "lang_tag": "button_vacation", 178 "text": "Vacation" 179 }, 180 "Display": { 181 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 182 "Variable": "DetailedArmMode", 183 "Value": "Vacation", 184 "Top": 120, 185 "Left": 200, 186 "Width": 75, 163 "lang_tag": "away_no_delay", 164 "text": "Away (No Delay)" 165 }, 166 "Display": { 167 "Top": 80, 168 "Left": 265, 169 "Width": 110, 187 170 "Height": 20 188 171 }, … … 193 176 { 194 177 "Name": "State", 195 "Value": "Vacation" 196 }, 197 { 198 "Name": "PINCode", 199 "ID": "PINCode" 200 } 201 ] 202 } 203 }, 204 { 205 "ControlType": "button", 206 "Label": { 207 "lang_tag": "button_stay", 178 "Value": "ArmedInstant" 179 }, 180 { 181 "Name": "PINCode", 182 "ID": "PINCode" 183 } 184 ] 185 } 186 }, 187 { 188 "ControlType": "button", 189 "Label": { 190 "lang_tag": "away_silently", 191 "text": "Away (Silently)" 192 }, 193 "Display": { 194 "Top": 80, 195 "Left": 380, 196 "Width": 110, 197 "Height": 20 198 }, 199 "Command": { 200 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 201 "Action": "RequestArmMode", 202 "Parameters": [ 203 { 204 "Name": "State", 205 "Value": "ArmedSilent" 206 }, 207 { 208 "Name": "PINCode", 209 "ID": "PINCode" 210 } 211 ] 212 } 213 }, 214 { 215 "ControlGroup": "2", 216 "ControlType": "button", 217 "Label": { 218 "lang_tag": "stay", 208 219 "text": "Stay" 209 220 }, 221 "top": 0, 222 "left": 1, 210 223 "Display": { 211 224 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 212 225 "Variable": "DetailedArmMode", 213 226 "Value": "Stay", 214 "Top": 100, 215 "Left": 285, 227 "Top": 105, 228 "Left": 150, 229 "Width": 110, 230 "Height": 20 231 }, 232 "Command": { 233 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 234 "Action": "RequestArmMode", 235 "Parameters": [ 236 { 237 "Name": "State", 238 "Value": "Stay" 239 }, 240 { 241 "Name": "PINCode", 242 "ID": "PINCode" 243 } 244 ] 245 } 246 }, 247 { 248 "ControlType": "button", 249 "Label": { 250 "lang_tag": "stay_no_delay", 251 "text": "Stay (No Delay)" 252 }, 253 "Display": { 254 "Top": 105, 255 "Left": 265, 256 "Width": 110, 257 "Height": 20 258 }, 259 "Command": { 260 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 261 "Action": "RequestArmMode", 262 "Parameters": [ 263 { 264 "Name": "State", 265 "Value": "StayInstant" 266 }, 267 { 268 "Name": "PINCode", 269 "ID": "PINCode" 270 } 271 ] 272 } 273 }, 274 { 275 "ControlType": "button", 276 "Label": { 277 "lang_tag": "stay_silently", 278 "text": "Stay (Silently)" 279 }, 280 "Display": { 281 "Top": 105, 282 "Left": 380, 283 "Width": 110, 284 "Height": 20 285 }, 286 "Command": { 287 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 288 "Action": "RequestArmMode", 289 "Parameters": [ 290 { 291 "Name": "State", 292 "Value": "StaySilent" 293 }, 294 { 295 "Name": "PINCode", 296 "ID": "PINCode" 297 } 298 ] 299 } 300 }, 301 { 302 "ControlGroup": "2", 303 "ControlType": "button", 304 "Label": { 305 "lang_tag": "disarm", 306 "text": "Disarm" 307 }, 308 "top": 1, 309 "left": 0.5, 310 "Display": { 311 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 312 "Variable": "DetailedArmMode", 313 "Value": "Disarmed", 314 "Top": 130, 315 "Left": 150, 316 "Width": 110, 317 "Height": 20 318 }, 319 "Command": { 320 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 321 "Action": "RequestArmMode", 322 "Parameters": [ 323 { 324 "Name": "State", 325 "Value": "Disarmed" 326 }, 327 { 328 "Name": "PINCode", 329 "ID": "PINCode" 330 } 331 ] 332 } 333 }, 334 { 335 "ControlType": "label", 336 "Label": { 337 "lang_tag": "bypass_sensors", 338 "text": "<b>Bypass Sensors</b>" 339 }, 340 "Display": { 341 "Top": 170, 342 "Left": 155, 343 "Width": 100, 344 "Height": 20 345 } 346 }, 347 { 348 "ControlType": "input", 349 "ID": "zones", 350 "Display": { 351 "Top": 190, 352 "Left": 150, 353 "Width": 100, 354 "Height": 20 355 } 356 }, 357 { 358 "ControlType": "button", 359 "Label": { 360 "lang_tag": "bypass", 361 "text": "Bypass" 362 }, 363 "Display": { 364 "Top": 190, 365 "Left": 260, 366 "Width": 70, 367 "Height": 20 368 }, 369 "Command": { 370 "Service": "urn:micasaverde-com:serviceId:ConcordAlarmPanel1", 371 "Action": "BypassZones", 372 "Parameters": [ 373 { 374 "Name": "Zones", 375 "ID": "zones" 376 }, 377 { 378 "Name": "PINCode", 379 "ID": "PINCode" 380 } 381 ] 382 } 383 }, 384 { 385 "ControlType": "label", 386 "Label": { 387 "lang_tag": "toggle_chime_mode", 388 "text": "<b>Toggle Chime Mode</b>" 389 }, 390 "Display": { 391 "Top": 230, 392 "Left": 155, 393 "Width": 100, 394 "Height": 20 395 } 396 }, 397 { 398 "ControlType": "button", 399 "Label": { 400 "lang_tag": "chime_mode", 401 "text": "Chime Mode" 402 }, 403 "Display": { 404 "Service": "urn:micasaverde-com:serviceId:ConcordAlarmPanel1", 405 "Variable": "ChimeMode", 406 "Value": "1", 407 "Top": 250, 408 "Left": 150, 409 "Width": 100, 410 "Height": 20 411 }, 412 "Command": { 413 "Service": "urn:micasaverde-com:serviceId:ConcordAlarmPanel1", 414 "Action": "ToggleChimeMode", 415 "Parameters": [] 416 } 417 }, 418 { 419 "ControlType": "label", 420 "Label": { 421 "lang_tag": "panic_alarms", 422 "text": "<b>Panic Alarms</b>" 423 }, 424 "Display": { 425 "Top": 290, 426 "Left": 155, 427 "Width": 100, 428 "Height": 20 429 } 430 }, 431 { 432 "ControlType": "button", 433 "Label": { 434 "lang_tag": "police", 435 "text": "Police" 436 }, 437 "Display": { 438 "Top": 310, 439 "Left": 150, 216 440 "Width": 75, 217 441 "Height": 20 … … 219 443 "Command": { 220 444 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 221 "Action": "RequestArmMode", 222 "Parameters": [ 223 { 224 "Name": "State", 225 "Value": "Stay" 226 }, 227 { 228 "Name": "PINCode", 229 "ID": "PINCode" 230 } 231 ] 232 } 233 }, 234 { 235 "ControlType": "button", 236 "Label": { 237 "lang_tag": "button_istay", 238 "text": "iStay" 239 }, 240 "Display": { 241 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 242 "Variable": "DetailedArmMode", 243 "Value": "StayInstant", 244 "Top": 120, 245 "Left": 285, 445 "Action": "RequestPanicMode", 446 "Parameters": [ 447 { 448 "Name": "State", 449 "ID": "Police" 450 } 451 ] 452 } 453 }, 454 { 455 "ControlType": "button", 456 "Label": { 457 "lang_tag": "fire", 458 "text": "Fire" 459 }, 460 "Display": { 461 "Top": 310, 462 "Left": 230, 246 463 "Width": 75, 247 464 "Height": 20 … … 249 466 "Command": { 250 467 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 251 "Action": "RequestArmMode", 252 "Parameters": [ 253 { 254 "Name": "State", 255 "Value": "StayInstant" 256 }, 257 { 258 "Name": "PINCode", 259 "ID": "PINCode" 260 } 261 ] 262 } 263 }, 264 { 265 "ControlType": "button", 266 "Label": { 267 "lang_tag": "button_night", 268 "text": "Night" 269 }, 270 "Display": { 271 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 272 "Variable": "DetailedArmMode", 273 "Value": "Night", 274 "Top": 100, 275 "Left": 370, 468 "Action": "RequestPanicMode", 469 "Parameters": [ 470 { 471 "Name": "State", 472 "ID": "Fire" 473 } 474 ] 475 } 476 }, 477 { 478 "ControlType": "button", 479 "Label": { 480 "lang_tag": "auxiliary", 481 "text": "Auxiliary" 482 }, 483 "Display": { 484 "Top": 310, 485 "Left": 310, 276 486 "Width": 75, 277 487 "Height": 20 … … 279 489 "Command": { 280 490 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 281 "Action": "RequestArmMode", 282 "Parameters": [ 283 { 284 "Name": "State", 285 "Value": "Night" 286 }, 287 { 288 "Name": "PINCode", 289 "ID": "PINCode" 290 } 291 ] 292 } 293 }, 294 { 295 "ControlType": "button", 296 "Label": { 297 "lang_tag": "button_inight", 298 "text": "iNight" 299 }, 300 "Display": { 301 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 302 "Variable": "DetailedArmMode", 303 "Value": "NightInstant", 304 "Top": 120, 305 "Left": 370, 306 "Width": 75, 307 "Height": 20 308 }, 309 "Command": { 310 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 311 "Action": "RequestArmMode", 312 "Parameters": [ 313 { 314 "Name": "State", 315 "Value": "NightInstant" 316 }, 317 { 318 "Name": "PINCode", 319 "ID": "PINCode" 320 } 321 ] 322 } 323 }, 324 { 325 "ControlType": "button", 326 "Label": { 327 "lang_tag": "button_disarm", 328 "text": "Disarm" 329 }, 330 "Display": { 331 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 332 "Variable": "ArmMode", 333 "Value": "Disarmed", 334 "Top": 140, 335 "Left": 285, 336 "Width": 75, 337 "Height": 20 338 }, 339 "Command": { 340 "Service": "urn:micasaverde-com:serviceId:AlarmPartition2", 341 "Action": "RequestArmMode", 342 "Parameters": [ 343 { 344 "Name": "State", 345 "Value": "Disarmed" 346 }, 347 { 348 "Name": "PINCode", 349 "ID": "PINCode" 491 "Action": "RequestPanicMode", 492 "Parameters": [ 493 { 494 "Name": "State", 495 "ID": "Auxiliary" 350 496 } 351 497 ] … … 375 521 } 376 522 ], 377 "eventList": { 378 "event_1": { 379 "label": "Armed state", 523 "eventList2": [ 524 { 525 "id": 1, 526 "label": { 527 "lang_tag": "armed_state", 528 "text": "Armed state" 529 }, 380 530 "serviceId": "urn:micasaverde-com:serviceId:AlarmPartition2", 381 "argumentList" : { 382 "argument_1" : { 531 "argumentList": [ 532 { 533 "id": 1, 534 "name": "ArmMode", 383 535 "dataType": "string", 384 536 "defaultValue": "Armed", 385 "allowedValueList" : { 386 "Yes" : "Armed", 387 "No" : "Disarmed" 388 }, 389 "name": "ArmMode", 537 "allowedValueList": [ 538 { 539 "value": "Armed", 540 "HumanFriendlyText": { 541 "lang_tag": "is_armed", 542 "text": "_DEVICE_NAME_ is ARMED" 543 } 544 }, 545 { 546 "value": "Disarmed", 547 "HumanFriendlyText": { 548 "lang_tag": "is_disarmed", 549 "text": "_DEVICE_NAME_ is DISARMED" 550 } 551 } 552 ], 390 553 "comparisson": "=", 391 "prefix": "Is Armed?",392 "suffix": ""554 "prefix": {}, 555 "suffix": {} 393 556 } 394 }557 ] 395 558 }, 396 "event_2": { 397 "label": "Armed detailed state", 559 { 560 "id": 2, 561 "label": { 562 "lang_tag": "armed_detailed_state", 563 "text": "Armed detailed state" 564 }, 398 565 "serviceId": "urn:micasaverde-com:serviceId:AlarmPartition2", 399 "argumentList" : { 400 "argument_1" : { 566 "argumentList": [ 567 { 568 "id": 1, 569 "name": "DetailedArmMode", 401 570 "dataType": "string", 402 571 "defaultValue": "Armed", 403 "allowedValueList" : { 404 "Disarmed" : "Disarmed", 405 "Armed" : "Armed", 406 "Stay" : "Stay", 407 "StayInstant" : "StayInstant", 408 "Night" : "Night", 409 "NightInstant" : "NightInstant", 410 "Force" : "Force", 411 "Ready" : "Ready", 412 "Vacation" : "Vacation", 413 "NotReady" : "NotReady", 414 "FailedToArm" : "FailedToArm", 415 "EntryDelay" : "EntryDelay", 416 "ExitDelay" : "ExitDelay" 417 }, 418 "name": "DetailedArmMode", 572 "allowedValueList": [ 573 { 574 "value": "Armed", 575 "HumanFriendlyText": { 576 "lang_tag": "is_armed_away", 577 "text": "_DEVICE_NAME_ is armed AWAY" 578 } 579 }, 580 { 581 "value": "Stay", 582 "HumanFriendlyText": { 583 "lang_tag": "is_armed_stay", 584 "text": "_DEVICE_NAME_ is armed STAY" 585 } 586 }, 587 { 588 "value": "Disarmed", 589 "HumanFriendlyText": { 590 "lang_tag": "is_disarmed", 591 "text": "_DEVICE_NAME_ is DISARMED" 592 } 593 }, 594 { 595 "value": "ExitDelay", 596 "HumanFriendlyText": { 597 "lang_tag": "is_in_exit_delay", 598 "text": "_DEVICE_NAME_ is in EXIT DELAY" 599 } 600 }, 601 { 602 "value": "EntryDelay", 603 "HumanFriendlyText": { 604 "lang_tag": "is_in_entry_delay", 605 "text": "_DEVICE_NAME_ is in ENTRY DELAY" 606 } 607 } 608 ], 419 609 "comparisson": "=", 420 "prefix": "Armed state",421 "suffix": ""610 "prefix": {}, 611 "suffix": {} 422 612 } 423 }613 ] 424 614 }, 425 "event_3": { 426 "label": "Alarm Active", 615 { 616 "id": 3, 617 "label": { 618 "lang_tag": "alarm_active", 619 "text": "Alarm active" 620 }, 427 621 "serviceId": "urn:micasaverde-com:serviceId:AlarmPartition2", 428 "argumentList" : { 429 "argument_1" : { 430 "dataType": "boolean", 622 "argumentList": [ 623 { 624 "id": 1, 625 "name": "Alarm", 626 "dataType": "string", 431 627 "defaultValue": "Active", 432 "allowedValueList" : { 433 "Active" : "Active", 434 "NotActive" : "None" 435 }, 436 "name": "Alarm", 628 "allowedValueList" : [ 629 { 630 "value": "Active", 631 "HumanFriendlyText": { 632 "lang_tag": "alarm_is_active", 633 "text": "_DEVICE_NAME_: Alarm is ACTIVE" 634 } 635 }, 636 { 637 "value": "None", 638 "HumanFriendlyText": { 639 "lang_tag": "alarm_is_cleared", 640 "text": "_DEVICE_NAME_: Alarm is CLEARED" 641 } 642 } 643 ], 437 644 "comparisson": "=", 438 "prefix": "Is Active?", 439 "suffix": "" 645 "prefix": { 646 "lang_tag": "is_active", 647 "text": "Alarm status:" 648 }, 649 "suffix": {} 440 650 } 441 }651 ] 442 652 } 443 }, 444 "sceneList": { 445 "group_1": { 446 "cmd_1": { 447 "label": "Set Partition ... (PIN)", 448 "serviceId": "urn:micasaverde-com:serviceId:AlarmPartition2", 449 "action": "RequestArmMode", 450 "argumentList": { 451 "argument_1": { 452 "dataType": "string", 453 "defaultValue": "Disarmed", 454 "allowedValueList": { 455 "Disarmed" : "Disarmed", 456 "Armed" : "Armed", 457 "Stay" : "Stay", 458 "StayInstant" : "StayInstant", 459 "Night" : "Night", 460 "NightInstant" : "NightInstant", 461 "Force" : "Force", 462 "Vacation" : "Vacation" 463 }, 464 "name": "State", 465 "prefix": "State", 466 "suffix": "" 467 }, 468 "argument_2": { 469 "dataType": "ui4", 470 "defaultValue": "1234", 471 "allowedValueRange": { 472 "minimum": "0", 473 "maximum": "999999" 474 }, 475 "prefix" : "PIN", 476 "suffix" : "0-999999, (insecure)", 477 "name": "PINCode" 478 } 479 } 480 } 481 } 482 }, 483 "DeviceType": "urn:schemas-micasaverde-com:device:ElkAlarmPartition:1" 653 ], 654 "DeviceType": "urn:schemas-micasaverde-com:device:ConcordAlarmPartition:1" 484 655 } -
/trunk/D_Concord.xml
r1 r3 7 7 <device> 8 8 <deviceType>urn:schemas-micasaverde-com:device:ConcordAlarmPanel:1</deviceType> 9 < !--<staticJson>D_Concord.json</staticJson>-->9 <staticJson>D_Concord.json</staticJson> 10 10 <friendlyName>Concord Alarm Panel</friendlyName> 11 11 <commUse>rs232</commUse> -
/trunk/L_Concord.lua
r1 r3 48 48 } 49 49 50 local ZONE_STATUSES {50 local ZONE_STATUSES = { 51 51 TRIPPED = 1, 52 52 FAULTED = 2, … … 352 352 ------------------------------------------------------------------------------- 353 353 354 local getinfo = debug.getinfo -- Get the 'getinfo' function from the 'debug' module before overloading it. 355 354 356 local log = luup.log 355 357 … … 366 368 if (mode == TASK.ERROR or mode == TASK.ERROR_PERM) then 367 369 messageType = "ERROR" 368 else if (mode ~= TASK.SUCCESS) then370 else 369 371 messageType = "STATUS" 370 372 end 371 debug("(ConcordPlugin::task::"..( debug.getinfo(2).name or "N/A")..") "..messageType..": "..text)373 debug("(ConcordPlugin::task::"..(getinfo(2).name or "N/A")..") "..messageType..": "..text) 372 374 373 375 if (mode == TASK.ERROR_PERM) then 374 g_taskHandle =luup.task(text, TASK.ERROR, "Concord Plugin", g_taskHandle)376 luup.task(text, TASK.ERROR, "Concord Plugin", g_taskHandle) 375 377 elseif (mode == TASK.BUSY_PERM) then 376 g_taskHandle =luup.task(text, TASK.BUSY, "Concord Plugin", g_taskHandle)378 luup.task(text, TASK.BUSY, "Concord Plugin", g_taskHandle) 377 379 else 378 g_taskHandle = luup.task(text, mode, "Concord Plugin", g_taskHandle) 379 380 luup.task(text, mode, "Concord Plugin", g_taskHandle) 380 381 -- Clear the previous error, since they're all transient 381 if (mode ~= TASK.SUCCESS) then 382 luup.call_delay("clearTask", 30) 383 end 382 luup.call_delay("clearTask", 30) 384 383 end 385 384 end … … 387 386 388 387 function clearTask() 389 task("Clearing...", TASK.SUCCESS)388 luup.task("Clearing...", TASK.SUCCESS, "Concord Plugin", g_taskHandle) 390 389 end 391 390 … … 961 960 962 961 lug_device = lul_device 962 963 -- Call the task function to get a handle. 964 g_taskHandle = luup.task("Startup successful.", TASK.SUCCESS, "Concord Plugin", g_taskHandle) 963 965 964 966 debug ("(ConcordPlugin::init) SUCCESS: startup successful.")
Note: See TracChangeset
for help on using the changeset viewer.