Functions | |
| int | _effect_brightness (int brightness) |
| ColorMode | _flux_color_mode_to_hass (str|None flux_color_mode, set[str] flux_color_modes) |
| set[str] | _hass_color_modes (AIOWifiLedBulb device) |
| str | _human_readable_option (str const_option) |
| bool | _is_zero_rgb_brightness (tuple[int, int, int] rgb) |
| tuple[int, int, int] | _min_rgb_brightness (tuple[int, int, int] rgb) |
| tuple[int, int, int, int] | _min_rgbw_brightness (tuple[int, int, int, int] rgbw, tuple[int, int, int, int] current_rgbw) |
| tuple[int, int, int, int, int] | _min_rgbwc_brightness (tuple[int, int, int, int, int] rgbwc, tuple[int, int, int, int, int] current_rgbwc) |
| tuple[int, int, int] | _min_scaled_rgb_brightness (tuple[int, int, int] rgb) |
| MultiColorEffects | _str_to_multi_color_effect (str effect_str) |
| str|None | format_as_flux_mac (str|None mac) |
| bool | mac_matches_by_one (str formatted_mac_1, str formatted_mac_2) |
Utils for Magic Home.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Ensure the RGBW value will not turn off the device from a turn on command. For RGBW, we also need to ensure that there is at least one value in the RGB fields or the device will switch to CCT mode unexpectedly. If the new value being set is all zeros, scale the current color to brightness of 1 so we do not unexpected switch to white
|
private |
Ensure the RGBWC value will not turn off the device from a turn on command. For RGBWC, we also need to ensure that there is at least one value in the RGB fields or the device will switch to CCT mode unexpectedly If the new value being set is all zeros, scale the current color to brightness of 1 so we do not unexpected switch to white
|
private |
|
private |
| str | None homeassistant.components.flux_led.util.format_as_flux_mac | ( | str | None | mac | ) |
| bool homeassistant.components.flux_led.util.mac_matches_by_one | ( | str | formatted_mac_1, |
| str | formatted_mac_2 | ||
| ) |