Add infrared brightness select entity for LIFX Night Vision bulbs (#77943)

* Add infrared brightness select entity for LIFX Night Vision bulbs

Signed-off-by: Avi Miller <me@dje.li>

* Code refactored from review comments

Signed-off-by: Avi Miller <me@dje.li>

* Update and refactor from code review feedback

Signed-off-by: Avi Miller <me@dje.li>

Signed-off-by: Avi Miller <me@dje.li>
This commit is contained in:
Avi Miller 2022-09-15 16:53:58 +10:00 committed by GitHub
parent ade4fcaebd
commit c0cf9d8729
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 385 additions and 8 deletions

View file

@ -37,7 +37,13 @@ ATTR_REMAINING = "remaining"
ATTR_ZONES = "zones"
HEV_CYCLE_STATE = "hev_cycle_state"
INFRARED_BRIGHTNESS = "infrared_brightness"
INFRARED_BRIGHTNESS_VALUES_MAP = {
0: "Disabled",
16383: "25%",
32767: "50%",
65535: "100%",
}
DATA_LIFX_MANAGER = "lifx_manager"
_LOGGER = logging.getLogger(__package__)