I use Tempest to control interior and exterior lighting using variables. I have a series of programs that set a variable ($Brightness) for a range of light level values ($Light_Level). The brightness variable changes only when the light level moves into a new range. I then use the brightness variable value to trigger lighting programs. For example:
Brightness 03 - [ID 006C][Parent 0085]
If
$Light_Level >= 300
And $Light_Level < 500
Then
$Brightness = 3
Else
- No Actions - (To add one, press 'Action')