Skip to content

Fields

busylight_core.vendors.embrava.implementation.fields

Embrava Blynclight bit field definitions.

This module defines BitField classes used to construct device commands. Each field represents a specific portion of the 48-bit command structure that controls various aspects of Embrava Blynclight device behavior.

Classes

busylight_core.vendors.embrava.implementation.fields.RedField

RedField()

Bases: BitField

8-bit red color component.

Source code in src/busylight_core/vendors/embrava/implementation/fields.py
def __init__(self) -> None:
    super().__init__(40, 8)
Attributes
busylight_core.vendors.embrava.implementation.fields.RedField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.embrava.implementation.fields.RedField.offset instance-attribute
offset = offset
busylight_core.vendors.embrava.implementation.fields.RedField.width instance-attribute
width = width

busylight_core.vendors.embrava.implementation.fields.BlueField

BlueField()

Bases: BitField

8-bit blue color component.

Source code in src/busylight_core/vendors/embrava/implementation/fields.py
def __init__(self) -> None:
    super().__init__(32, 8)
Attributes
busylight_core.vendors.embrava.implementation.fields.BlueField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.embrava.implementation.fields.BlueField.offset instance-attribute
offset = offset
busylight_core.vendors.embrava.implementation.fields.BlueField.width instance-attribute
width = width

busylight_core.vendors.embrava.implementation.fields.GreenField

GreenField()

Bases: BitField

8-bit green color component.

Source code in src/busylight_core/vendors/embrava/implementation/fields.py
def __init__(self) -> None:
    super().__init__(24, 8)
Attributes
busylight_core.vendors.embrava.implementation.fields.GreenField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.embrava.implementation.fields.GreenField.offset instance-attribute
offset = offset
busylight_core.vendors.embrava.implementation.fields.GreenField.width instance-attribute
width = width

busylight_core.vendors.embrava.implementation.fields.OffBit

OffBit()

Bases: BitField

1-bit field to turn light off, clear to turn light on.

Source code in src/busylight_core/vendors/embrava/implementation/fields.py
def __init__(self) -> None:
    super().__init__(17, 1)
Attributes
busylight_core.vendors.embrava.implementation.fields.OffBit.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.embrava.implementation.fields.OffBit.offset instance-attribute
offset = offset
busylight_core.vendors.embrava.implementation.fields.OffBit.width instance-attribute
width = width

busylight_core.vendors.embrava.implementation.fields.DimBit

DimBit()

Bases: BitField

1-bit field to dim light, clear to brighten light.

Source code in src/busylight_core/vendors/embrava/implementation/fields.py
def __init__(self) -> None:
    super().__init__(18, 1)
Attributes
busylight_core.vendors.embrava.implementation.fields.DimBit.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.embrava.implementation.fields.DimBit.offset instance-attribute
offset = offset
busylight_core.vendors.embrava.implementation.fields.DimBit.width instance-attribute
width = width

busylight_core.vendors.embrava.implementation.fields.FlashBit

FlashBit()

Bases: BitField

1-bit field to flash light, clear to stop flashing.

Source code in src/busylight_core/vendors/embrava/implementation/fields.py
def __init__(self) -> None:
    super().__init__(19, 1)
Attributes
busylight_core.vendors.embrava.implementation.fields.FlashBit.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.embrava.implementation.fields.FlashBit.offset instance-attribute
offset = offset
busylight_core.vendors.embrava.implementation.fields.FlashBit.width instance-attribute
width = width

busylight_core.vendors.embrava.implementation.fields.SpeedField

SpeedField()

Bases: BitField

3-bit field to set flash speed: 1=slow, 2=medium, 4=fast.

Source code in src/busylight_core/vendors/embrava/implementation/fields.py
def __init__(self) -> None:
    super().__init__(20, 3)
Attributes
busylight_core.vendors.embrava.implementation.fields.SpeedField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.embrava.implementation.fields.SpeedField.offset instance-attribute
offset = offset
busylight_core.vendors.embrava.implementation.fields.SpeedField.width instance-attribute
width = width

busylight_core.vendors.embrava.implementation.fields.RepeatBit

RepeatBit()

Bases: BitField

1-bit field to repeat sound, clear to play sound once.

Source code in src/busylight_core/vendors/embrava/implementation/fields.py
def __init__(self) -> None:
    super().__init__(13, 1)
Attributes
busylight_core.vendors.embrava.implementation.fields.RepeatBit.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.embrava.implementation.fields.RepeatBit.offset instance-attribute
offset = offset
busylight_core.vendors.embrava.implementation.fields.RepeatBit.width instance-attribute
width = width

busylight_core.vendors.embrava.implementation.fields.PlayBit

PlayBit()

Bases: BitField

1-bit field to play sound, clear to stop sound.

Source code in src/busylight_core/vendors/embrava/implementation/fields.py
def __init__(self) -> None:
    super().__init__(12, 1)
Attributes
busylight_core.vendors.embrava.implementation.fields.PlayBit.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.embrava.implementation.fields.PlayBit.offset instance-attribute
offset = offset
busylight_core.vendors.embrava.implementation.fields.PlayBit.width instance-attribute
width = width

busylight_core.vendors.embrava.implementation.fields.MusicField

MusicField()

Bases: BitField

4-bit field to select music to play, ranges from 0 to 15.

Source code in src/busylight_core/vendors/embrava/implementation/fields.py
def __init__(self) -> None:
    super().__init__(8, 4)
Attributes
busylight_core.vendors.embrava.implementation.fields.MusicField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.embrava.implementation.fields.MusicField.offset instance-attribute
offset = offset
busylight_core.vendors.embrava.implementation.fields.MusicField.width instance-attribute
width = width

busylight_core.vendors.embrava.implementation.fields.VolumeField

VolumeField()

Bases: BitField

4-bit field to set volume level, ranges from 0 to 15.

Source code in src/busylight_core/vendors/embrava/implementation/fields.py
def __init__(self) -> None:
    super().__init__(0, 4)
Attributes
busylight_core.vendors.embrava.implementation.fields.VolumeField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.embrava.implementation.fields.VolumeField.offset instance-attribute
offset = offset
busylight_core.vendors.embrava.implementation.fields.VolumeField.width instance-attribute
width = width

busylight_core.vendors.embrava.implementation.fields.MuteBit

MuteBit()

Bases: BitField

1-bit field to mute sound, clear to enable sound.

Source code in src/busylight_core/vendors/embrava/implementation/fields.py
def __init__(self) -> None:
    super().__init__(4, 1)
Attributes
busylight_core.vendors.embrava.implementation.fields.MuteBit.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.embrava.implementation.fields.MuteBit.offset instance-attribute
offset = offset
busylight_core.vendors.embrava.implementation.fields.MuteBit.width instance-attribute
width = width