Muteme mini
busylight_core.vendors.muteme.muteme_mini
¶
MuteMe Mini Support
Classes¶
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini
¶
Bases: MuteMe
MuteMe Mini status light and button controller.
A smaller version of the MuteMe device with the same button and LED functionality as the original MuteMe.
Initialize a Light with the given hardware information.
:param: reset - bool - reset the hardware to a known state :param: exclusive - bool - acquire exclusive access to the hardware
- HardwareUnsupportedError: if the given Hardware is not supported by this class.
Source code in src/busylight_core/light.py
Attributes¶
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.supported_device_ids
class-attribute
¶
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.event_loop
cached
property
¶
The default event loop.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.tasks
cached
property
¶
Active tasks that are associated with this class.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.green
property
writable
¶
Green color value.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.blue
property
writable
¶
Blue color value.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.color
property
writable
¶
A tuple of red, green, and blue color values.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.is_lit
property
¶
True if any color value is greater than 0.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.hardware
instance-attribute
¶
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.path
cached
property
¶
The path to the hardware device.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.platform
cached
property
¶
The discovered operating system platform name.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.exclusive
property
¶
Return True if the light has exclusive access to the hardware.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.sort_key
cached
property
¶
Return a tuple used for sorting lights.
The tuple consists of: - vendor name in lowercase - device name in lowercase - hardware path
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.name
cached
property
¶
Return the marketing name of this light.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.hex
property
¶
Return the hexadecimal representation of the light's state.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.read_strategy
property
¶
Return the read method used by this light.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.write_strategy
property
¶
Return the write method used by this light.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.state
cached
property
¶
Get the device state manager for controlling light behavior.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.struct
cached
property
¶
Get the binary struct formatter for device communication.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.is_pluggedin
property
¶
Check if the device is plugged in and responsive.
RETURNS | DESCRIPTION |
---|---|
bool
|
True if device responds to feature report, False otherwise |
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.is_button
property
¶
Check if this device has button functionality.
RETURNS | DESCRIPTION |
---|---|
bool
|
True, as the MuteMe device has a button |
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.button_on
property
¶
Check if the mute button is currently pressed.
RETURNS | DESCRIPTION |
---|---|
bool
|
True if the button is pressed, False otherwise |
RAISES | DESCRIPTION |
---|---|
NotImplementedError
|
Button state reading not implemented |
Functions¶
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.add_task
¶
Create a new task using coroutine as the body and stash it in the tasks dict.
Using name as a key for the tasks dictionary.
:name: str :coroutine: Awaitable :return: asyncio.Task
Source code in src/busylight_core/mixins/taskable.py
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.cancel_task
¶
Cancel a task associated with name if it exists.
If the task exists the cancelled task is returned, otherwise None.
:name: str :return: None | asyncio.Task
Source code in src/busylight_core/mixins/taskable.py
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.cancel_tasks
¶
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.vendor
staticmethod
¶
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.unique_device_names
cached
classmethod
¶
Return a list of unique device names.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.claims
classmethod
¶
Return True if the hardware is claimed by this class.
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.subclasses
cached
classmethod
¶
Return a list of all subclasses of this class.
Source code in src/busylight_core/light.py
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.supported_lights
cached
classmethod
¶
Return a dictionary of supported lights by vendor.
Keys are vendor names, values are a list of product names.
Source code in src/busylight_core/light.py
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.available_lights
classmethod
¶
Return a dictionary of available hardware by type.
Keys are Light subclasses, values are a list of Hardware instances.
Source code in src/busylight_core/light.py
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.all_lights
classmethod
¶
Return a list of all lights ready for use.
Source code in src/busylight_core/light.py
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.first_light
classmethod
¶
Return the first unused light ready for use.
Raises: - NoLightsFoundError: if no lights are available.
Source code in src/busylight_core/light.py
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.reset
¶
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.exclusive_access
¶
Manage exclusive access to the light.
If the device is not acquired in exclusive mode, it will be acquired and released automatically.
Source code in src/busylight_core/light.py
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.update
¶
Obtain the current state of the light and writes it to the device.
Raises: - LightUnavailableError
Source code in src/busylight_core/light.py
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.batch_update
¶
busylight_core.vendors.muteme.muteme_mini.MuteMe_Mini.on
¶
Turn on the MuteMe with the specified color.
PARAMETER | DESCRIPTION |
---|---|
color
|
RGB color tuple (red, green, blue) with values 0-255
TYPE:
|
led
|
LED index (unused for MuteMe)
TYPE:
|