| Line 1: |
Line 1: |
| − | <span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span> | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on the current light level.</pre> |
| | | | |
| − | This constraint can be used to allow a trigger to fire only when the light sensor detects a value less than or greater than a defined value.
| + | ''' Options ''' |
| | + | |
| | + | * '''Above/Below''' - Check if light level is above or below a threshold |
| | + | * '''Light Level''' - Set the lux value to compare |
| | + | |
| | + | ''' Example ''' |
| | + | |
| | + | ''Example 1: Dim the screen in low light conditions'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Screen On/Off - Screen On</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Brightness (25%)</pre> |
| | + | <pre class="constraint-style">Constraints |
| | + | |
| | + | Light Sensor - Below 10 lux</pre> |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Trigger: Light Sensor|Light Sensor Trigger]] |