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:
parent
ade4fcaebd
commit
c0cf9d8729
11 changed files with 385 additions and 8 deletions
|
@ -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__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue