Difference between revisions of "Constraint: Light Sensor"
(Created page with "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.") |
|||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | This constraint | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on the current light level.</pre> |
| + | |||
| + | ''' 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]] | ||
Latest revision as of 11:41, 9 January 2026
This constraint allows or prevents a macro/feature from running based on the current light level.
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
Triggers Screen On/Off - Screen On
Actions Brightness (25%)
Constraints Light Sensor - Below 10 lux
See Also