Updating max and min brightness to adaptive lighting from app
What's Changed
This is a continuation of the release to use Adaptive Lighting custom component to control brightness and color temp with support to set the 'max_brightness' and 'min_brightness' from automation, motion and modes.
If max_brightness is not defined with state adaptive the app will set values back to initial startup values as you configured in Adaptive Lighting. In addition to max_brightness you can define min_brightness. The app will not react to min_brightness if not max_brightness is also configured. Typical use case is to differentiate light when motion is detected, and also keep a dimmed down light in rooms that are not occupied, or dim further down with modes activated when TV/media player is turned on.
There is no need to configure Adaptive Lighting with 'detect_non_ha_changes' or 'take_over_control' when you set it up, if you only use Lightwand and Adaptive Lighting as automations for light. Lightwand will set manual control with the provided "Adaptive Lighting" switch that you'll need to define in your room with if a state or mode does not use Adaptive lighting.
adaptive_switch: switch.adaptive_lighting_yourNameThe normal 'automations' is a list. To include max and min brightness it looks like this:
automations:
- state: adaptive
max_brightness: 60
min_brightness: 10To use when motion configure with:
motionlights:
state: adaptive
max_brightness: 80
min_brightness: 30To use in mode configure with:
light_modes:
- mode: your_mode
state: adaptive
max_brightness: 100
min_brightness: 1Automatic setting of Adaptive Lighting's "Sleep Mode" is now also implemented. All you need to do is define the switch in room with:
adaptive_sleep_mode: switch.adaptive_lighting_sleep_mode_yourNameThe switch will then be activated when night mode is called and keep light at a minimum as configured in Adaptive light, instead of turning it off. This applies to both 'night' and 'night_' + appName.
I do not use Adaptive Lighting actively so please report any unwanted behaviour.