DiffuserLightMixin
- class meross_iot.controller.mixins.diffuser_light.DiffuserLightMixin(device_uuid: str, manager, **kwargs)
- async async_set_light_mode(channel: int = 0, onoff: bool | None = None, mode: DiffuserLightMode | None = None, brightness: int | None = None, rgb: Tuple[int, int, int] | None = None, timeout: float | None = None, *args, **kwargs) None
Sets the light mode for this device. :param channel: channel to configure :param onoff: when True, sets the light ON, otherwise OFF. :param mode: defines the operation mode for this light :param brightness: brightness value (from 0 to 100) :param rgb: tuple of three integers (each from 0 to 255) for red, green, blue :param timeout: command timeout :return:
- get_light_brightness(channel: int = 0, *args, **kwargs) int | None
Returns the current configured led brightness :param channel: channel index to fetch info from :return:
- get_light_is_on(channel: int = 0, *args, **kwargs) bool | None
Returns True if the light is ON, False otherwise.
- Parameters:
channel – channel to control, defaults to 0 (bulbs generally have only one channel)
- Returns:
current onoff state
- get_light_mode(channel: int = 0, *args, **kwargs) DiffuserLightMode | None
Returns the operating mode for this device :param channel: channel to fetch info from :return:
- get_light_rgb_color(channel=0, *args, **kwargs) Tuple[int, int, int] | None
Returns the current RGB configuration of the device.
- Parameters:
channel – channel to control, defaults to 0.
- Returns:
a Tuple containing three integer 8bits values (red, green, blue)