ToggleXMixin

class meross_iot.controller.mixins.toggle.ToggleXMixin(device_uuid: str, manager, **kwargs)

This mixin is implemented by devices that support ToggleX operation, such as smart switches and smart bulbs.

async async_toggle(channel=0, *args, **kwargs) None

Toggles the switch status of the specified channel

Parameters:

channel – channel index to toggle. Defaults to 0.

Returns:

None

async async_turn_off(channel=0, timeout: float | None = None, *args, **kwargs) None

Turns off the specified channel of the device

Parameters:

channel – channel index to turn off. Defaults to 0.

Returns:

None

async async_turn_on(channel=0, timeout: float | None = None, *args, **kwargs) None

Turns on the specified channel of the device

Parameters:
  • channel – channel index to turn on. Defaults to 0.

  • channel

Returns:

None

is_on(channel=0, *args, **kwargs) bool | None

Returns the ON/OFF state of the switch channel.

Parameters:

channel – channel index of interested. Defaults to 0

Returns:

True is the stat is ON, False when it’s OFF

ToggleMixin

class meross_iot.controller.mixins.toggle.ToggleMixin(device_uuid: str, manager, **kwargs)