Classes | |
| class | FluxSwitch |
Functions | |
| def | async_set_lights_rgb (hass, lights, rgb, transition) |
| def | async_set_lights_temp (hass, lights, mired, brightness, transition) |
| def | async_set_lights_xy (hass, lights, x_val, y_val, brightness, transition) |
| None | async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| string | ATTR_UNIQUE_ID = "unique_id" |
| string | CONF_DISABLE_BRIGHTNESS_ADJUST = "disable_brightness_adjust" |
| string | CONF_INTERVAL = "interval" |
| string | CONF_START_CT = "start_colortemp" |
| string | CONF_START_TIME = "start_time" |
| string | CONF_STOP_CT = "stop_colortemp" |
| string | CONF_STOP_TIME = "stop_time" |
| string | CONF_SUNSET_CT = "sunset_colortemp" |
| string | DEFAULT_MODE = MODE_XY |
| string | MODE_MIRED = "mired" |
| string | MODE_RGB = "rgb" |
| string | MODE_XY = "xy" |
| PLATFORM_SCHEMA | |
Flux for Home-Assistant. The idea was taken from https://github.com/KpaBap/hue-flux/
| def homeassistant.components.flux.switch.async_set_lights_rgb | ( | hass, | |
| lights, | |||
| rgb, | |||
| transition | |||
| ) |
| def homeassistant.components.flux.switch.async_set_lights_temp | ( | hass, | |
| lights, | |||
| mired, | |||
| brightness, | |||
| transition | |||
| ) |
| def homeassistant.components.flux.switch.async_set_lights_xy | ( | hass, | |
| lights, | |||
| x_val, | |||
| y_val, | |||
| brightness, | |||
| transition | |||
| ) |
| None homeassistant.components.flux.switch.async_setup_platform | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| AddEntitiesCallback | async_add_entities, | ||
| DiscoveryInfoType | None | discovery_info = None |
||
| ) |
|
private |
| string homeassistant.components.flux.switch.ATTR_UNIQUE_ID = "unique_id" |
| string homeassistant.components.flux.switch.CONF_DISABLE_BRIGHTNESS_ADJUST = "disable_brightness_adjust" |
| string homeassistant.components.flux.switch.CONF_INTERVAL = "interval" |
| string homeassistant.components.flux.switch.CONF_START_CT = "start_colortemp" |
| string homeassistant.components.flux.switch.CONF_START_TIME = "start_time" |
| string homeassistant.components.flux.switch.CONF_STOP_CT = "stop_colortemp" |
| string homeassistant.components.flux.switch.CONF_STOP_TIME = "stop_time" |
| string homeassistant.components.flux.switch.CONF_SUNSET_CT = "sunset_colortemp" |
| string homeassistant.components.flux.switch.DEFAULT_MODE = MODE_XY |
| string homeassistant.components.flux.switch.MODE_MIRED = "mired" |
| string homeassistant.components.flux.switch.MODE_RGB = "rgb" |
| homeassistant.components.flux.switch.PLATFORM_SCHEMA |