alarmui/group/alarmuisnooze.rul
branchRCL_3
changeset 13 0f07cd1b5772
parent 0 f979ecb2b13e
equal deleted inserted replaced
12:38571fd2a704 13:0f07cd1b5772
    83             <publishContext>
    83             <publishContext>
    84                 <contextRef source='Sensor' type='Event' value='Orientation.Activate'/>
    84                 <contextRef source='Sensor' type='Event' value='Orientation.Activate'/>
    85             </publishContext>
    85             </publishContext>
    86         </actions>
    86         </actions>
    87     </elseIf>
    87     </elseIf>
    88     <!-- deactivate sensor channels when alarm is dismissed -->
       
    89     <elseIf>
       
    90         <and>
       
    91             <!-- ...an alarm that was just deactivated -->
       
    92             <contextUpdated>
       
    93                 <contextRef source='AlarmUI' type='State'/>
       
    94             </contextUpdated>
       
    95             <equals>
       
    96                 <contextRef source='AlarmUI' type='State'/>
       
    97                 <string>Inactive</string>
       
    98             </equals>
       
    99         </and>
       
   100         <actions>
       
   101             <!-- deactivate doubletap channel -->
       
   102             <publishContext>
       
   103                 <contextRef source='Sensor' type='Event' value='DoubleTap.Deactivate'/>
       
   104             </publishContext>
       
   105 
       
   106             <!-- deactivate orientation channel -->
       
   107             <publishContext>
       
   108                 <contextRef source='Sensor' type='Event' value='Orientation.Deactivate'/>
       
   109             </publishContext>
       
   110         </actions>
       
   111     </elseIf>
       
   112     <!-- stop an active alarm on a 'Stop' command -->
    88     <!-- stop an active alarm on a 'Stop' command -->
   113     <elseIf>
    89     <elseIf>
   114         <and>
    90         <and>
   115             <!-- alarm is active... -->
    91             <!-- alarm is active... -->
   116             <notEqual>
    92             <notEqual>