RollerShutterMixin

class meross_iot.controller.mixins.roller_shutter.RollerShutterTimerMixin(device_uuid: str, manager, **kwargs)
async async_close(channel: int = 0, *args, **kwargs) None

Operates the roller shutter: sends the close command.

Parameters:

channel – channel to operate: defaults to 0

Returns:

None

async async_open(channel: int = 0, *args, **kwargs) None

Operates the roller shutter: sends the open command.

Parameters:

channel – channel to operate: defaults to 0

Returns:

None

async async_set_config(open_timer_seconds: int, close_timer_seconds: int, channel: int = 0, timeout: float | None = None, *args, **kwargs) None

Sets the configuration parameters for the roller shutter on the given channel. :param open_timer_seconds: open timer, min 10, max 120. :param close_timer_seconds: close timer, min 10, max 120. :param channel: channel to configure :param timeout: :return:

async async_stop(channel: int = 0, *args, **kwargs) None

Operates the roller shutter: sends the stop command.

Parameters:

channel – channel to operate: defaults to 0

Returns:

None

get_position(channel: int = 0, *args, **kwargs) int | None

The current roller shutter position. Returns 100 if the given roller shutter is open, 0 if it is close, -1 if it is stop.

Parameters:

channel – channel of which status is needed

Returns:

100 if the given roller shutter is opened, 0 if it is closed, -1 if it is stopped.

get_status(channel: int = 0, *args, **kwargs) RollerShutterState

The current roller shutter status. Returns 1 if the given roller shutter is open, 2 if it is close, 0 if it is stop.

Parameters:

channel – channel of which status is needed

Returns:

1 if the given roller shutter is opened, 2 if it is closed, 0 if it is stopped.