Package: Set Keypad LED Brightness

Author: Mark Stayton
Version: 2
Added to Library: 11-Nov-23
HCAVersion needed: 16
Keywords: Utility

Package Description:
Sets the LED brightness of multi-button keypads, based upon the Home Mode and whether it is dark out. If the program is started by a user, they are prompted to select the desired brightness level.

See the Notes tab in the program for more information.

Program: Set Keypad LED Brightness

Program Description:
This program sets the LED brightness of multi-button keypads, based upon the Home Mode and whether it is dark out. If the program is started by a user, they are prompted to select the desired brightness level.

The brightness level values are:

0 = None (LEDs Off)

1 = Faint

2 = Low

3 = Medium

4 = High

WHAT YOU NEED TO DO:

1. Edit the "LEDLevel" value for each trigger (except the Generic ON trigger. Leave that one blank)

2. Edit each of the DayNight elements, adding the devices to have their keypad LEDs dimmed.

The default brightness levels for each trigger are:

1. Home Mode = 0 (Home and Awake), and not _Dark: brightness is None (Off)

2. Home Mode = 0 (Home and Awake), and _Dark: brightness is Low

3. Home Mode = 1 (Home and Asleep): brightness is Faint

4. Home Mode > 1 (Away or the 4th Mode): brightness is None (Off)

5. Started by Generic ON: brightness is selected by the user

Written by Mark Stayton (mark@thestaytons.net) | Version 1 | 26-Jun-2018

Example:

Return value: This program does not return a result

Parameters:

Name Type Description Default
LEDLevel Value Desired LED Brightness Level (0 - 4, Off / Faint / Low / Medium / High)  

Global Variable Use:

Name Description
kpd_LEDLevel