Changeset 4


Ignore:
Timestamp:
2010-07-12 01:40:05 (3 years ago)
Author:
guessed
Message:

UI4 Rudimentary Arming support in the Device Dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • D_AlarmPartition1.json

    r3 r4  
    11{ 
    2     "flashicon": "icons\/devices.swf", 
     2    "flashicon": "icons\/generic_sensor.swf", 
    33    "imgIconBody": "", 
    44    "imgIconDimmable": "", 
     
    3030                    "Label": { 
    3131                        "lang_tag": "device_settings_page", 
    32                         "text": "Device settings"  
    33                     }, 
    34                     "Display": { 
    35                         "Top": 50, 
     32                        "text": "One Touch Arming Options"  
     33                    }, 
     34                    "Display": { 
     35                        "Top": 20, 
    3636                        "Left": 50, 
    37                         "Width": 120, 
    38                         "Height": 20  
    39                     }  
    40                 }  
     37                        "Width": 200, 
     38                        "Height": 20  
     39                    }  
     40                }, 
     41                { 
     42                    "ControlType": "button", 
     43                    "Label": { 
     44                        "lang_tag": "cmd_unlock", 
     45                        "text": "Quick Arm"  
     46                    }, 
     47                    "Display": { 
     48                        "Service": "urn:micasaverde-com:serviceId:AlarmPartition1", 
     49                        "Variable": "Armed", 
     50                        "Value": "1", 
     51                        "Top": 40, 
     52                        "Left": 50, 
     53                        "Width": 75, 
     54                        "Height": 20  
     55                    }, 
     56                    "Command": { 
     57                        "Service": "urn:micasaverde-com:serviceId:AlarmPartition1", 
     58                        "Action": "RequestQuickArm" 
     59                    }  
     60                }, 
     61                { 
     62                    "ControlType": "button", 
     63                    "Label": { 
     64                        "lang_tag": "cmd_unlock", 
     65                        "text": "Quick Stay"  
     66                    }, 
     67                    "Display": { 
     68                        "Service": "urn:micasaverde-com:serviceId:AlarmPartition1", 
     69                        "Variable": "StayArmed", 
     70                        "Value": "1", 
     71                        "Top": 40, 
     72                        "Left": 135, 
     73                        "Width": 75, 
     74                        "Height": 20  
     75                    }, 
     76                    "Command": { 
     77                        "Service": "urn:micasaverde-com:serviceId:AlarmPartition1", 
     78                        "Action": "RequestQuickStay" 
     79                    }  
     80                }, 
     81                { 
     82                    "ControlType": "label", 
     83                    "Label": { 
     84                        "lang_tag": "device_settings_page", 
     85                        "text": "Arming Options"  
     86                    }, 
     87                    "Display": { 
     88                        "Top": 60, 
     89                        "Left": 50, 
     90                        "Width": 200, 
     91                        "Height": 20  
     92                    }  
     93                }, 
     94                { 
     95                    "ControlType": "input", 
     96                    "ID": "PINCode", 
     97                    "Display": { 
     98                        "Top": 80, 
     99                        "Left": 50, 
     100                        "Width": 100, 
     101                        "Height": 20  
     102                    }  
     103                }, 
     104                { 
     105                    "ControlType": "button", 
     106                    "Label": { 
     107                        "lang_tag": "cmd_set", 
     108                        "text": "Arm"  
     109                    }, 
     110                    "Display": { 
     111                        "Service": "urn:micasaverde-com:serviceId:AlarmPartition1", 
     112                        "Variable": "Armed", 
     113                        "Value": "1", 
     114                        "Top": 80, 
     115                        "Left": 160, 
     116                        "Width": 50, 
     117                        "Height": 20  
     118                    }, 
     119                    "Command": { 
     120                        "Service": "urn:micasaverde-com:serviceId:AlarmPartition1", 
     121                        "Action": "RequestArm", 
     122                        "Parameters": [ 
     123                            { 
     124                                "Name": "PINCode", 
     125                                "ID": "PINCode"  
     126                            } 
     127                        ]  
     128                    }  
     129                }, 
     130                { 
     131                    "ControlType": "button", 
     132                    "Label": { 
     133                        "lang_tag": "cmd_set", 
     134                        "text": "Stay"  
     135                    }, 
     136                    "Display": { 
     137                        "Service": "urn:micasaverde-com:serviceId:AlarmPartition1", 
     138                        "Variable": "StayArmed", 
     139                        "Value": "1", 
     140                        "Top": 100, 
     141                        "Left": 160, 
     142                        "Width": 50, 
     143                        "Height": 20  
     144                    }, 
     145                    "Command": { 
     146                        "Service": "urn:micasaverde-com:serviceId:AlarmPartition1", 
     147                        "Action": "RequestStayArm", 
     148                        "Parameters": [ 
     149                            { 
     150                                "Name": "PINCode", 
     151                                "ID": "PINCode"  
     152                            } 
     153                        ]  
     154                    }  
     155                }, 
     156                { 
     157                    "ControlType": "button", 
     158                    "Label": { 
     159                        "lang_tag": "cmd_set", 
     160                        "text": "Disarm"  
     161                    }, 
     162                    "Display": { 
     163                        "Service": "urn:micasaverde-com:serviceId:AlarmPartition1", 
     164                        "Variable": "Disarmed", 
     165                        "Value": "1", 
     166                        "Top": 120, 
     167                        "Left": 160, 
     168                        "Width": 50, 
     169                        "Height": 20  
     170                    }, 
     171                    "Command": { 
     172                        "Service": "urn:micasaverde-com:serviceId:AlarmPartition1", 
     173                        "Action": "RequestDisarm", 
     174                        "Parameters": [ 
     175                            { 
     176                                "Name": "PINCode", 
     177                                "ID": "PINCode"  
     178                            } 
     179                        ]  
     180                    }  
     181                } 
    41182            ]  
    42         }, 
    43         { 
    44             "Label": { 
    45                 "lang_tag": "settings", 
    46                 "text": "Settings"  
    47             }, 
    48             "Position": "1", 
    49             "TabType": "javascript", 
    50             "ScriptName": "shared.js", 
    51             "Function": "simple_device"  
    52183        }, 
    53184        { 
     
    60191            "ScriptName": "shared.js", 
    61192            "Function": "advanced_device"  
    62         }, 
    63         { 
    64             "Label": { 
    65                 "lang_tag": "device_options", 
    66                 "text": "Device Options"  
    67             }, 
    68             "Position": "3", 
    69             "TabType": "javascript", 
    70             "ScriptName": "shared.js", 
    71             "Function": "device_zwave_options"  
    72         }  
     193        } 
    73194    ], 
    74195    "DeviceType": "urn:schemas-micasaverde-com:device:AlarmPartition:1", 
Note: See TracChangeset for help on using the changeset viewer.