Functions | |
| float|None | normalize_hue_brightness (float|None brightness) |
| int|None | normalize_hue_colortemp (int|None colortemp) |
| float|None | normalize_hue_transition (float|None transition) |
Helper functions for Philips Hue v2.
| float | None homeassistant.components.hue.v2.helpers.normalize_hue_brightness | ( | float | None | brightness | ) |
Return calculated brightness values.
Definition at line 6 of file helpers.py.
| int | None homeassistant.components.hue.v2.helpers.normalize_hue_colortemp | ( | int | None | colortemp | ) |
Return color temperature within Hue's ranges.
Definition at line 24 of file helpers.py.
| float | None homeassistant.components.hue.v2.helpers.normalize_hue_transition | ( | float | None | transition | ) |
Return rounded transition values.
Definition at line 15 of file helpers.py.