Embrava Implementation¶
Blynclight series with audio capabilities
This module contains the low-level implementation details for Embrava devices, including enumerations, bit fields, and state management classes.
Available Components¶
Embrava Blynclight implementation details.
Classes¶
busylight_core.vendors.embrava.implementation.FlashSpeed
¶
Bases: IntEnum
Flash speed enumeration for Embrava Blynclight devices.
Defines the available flash speeds for the LED indicator. These values control how quickly the device cycles when in flash mode.
Attributes¶
busylight_core.vendors.embrava.implementation.FlashSpeed.slow
class-attribute
instance-attribute
¶
busylight_core.vendors.embrava.implementation.FlashSpeed.medium
class-attribute
instance-attribute
¶
busylight_core.vendors.embrava.implementation.FlashSpeed.fast
class-attribute
instance-attribute
¶
busylight_core.vendors.embrava.implementation.BlueField
¶
busylight_core.vendors.embrava.implementation.DimBit
¶
busylight_core.vendors.embrava.implementation.FlashBit
¶
busylight_core.vendors.embrava.implementation.GreenField
¶
busylight_core.vendors.embrava.implementation.MusicField
¶
busylight_core.vendors.embrava.implementation.MuteBit
¶
busylight_core.vendors.embrava.implementation.OffBit
¶
busylight_core.vendors.embrava.implementation.PlayBit
¶
busylight_core.vendors.embrava.implementation.RedField
¶
busylight_core.vendors.embrava.implementation.RepeatBit
¶
busylight_core.vendors.embrava.implementation.SpeedField
¶
busylight_core.vendors.embrava.implementation.VolumeField
¶
busylight_core.vendors.embrava.implementation.State
¶
Bases: Word
Complete device state for Embrava Blynclight commands.
The State class manages the full command structure sent to Embrava devices. It controls both LED behavior (color, brightness, flashing) and audio functionality (ringtones, volume, playback control). The state is serialized to bytes for transmission to the hardware.
Attributes¶
busylight_core.vendors.embrava.implementation.State.initial_value
instance-attribute
¶
busylight_core.vendors.embrava.implementation.State.bits
instance-attribute
¶
busylight_core.vendors.embrava.implementation.State.value
property
¶
Return the integer value of the word.
busylight_core.vendors.embrava.implementation.State.range
property
¶
Return the range of bit offsets for this word.
busylight_core.vendors.embrava.implementation.State.hex
property
¶
Return a string hexadecimal representation of the word.
busylight_core.vendors.embrava.implementation.State.bin
property
¶
Return a string binary representation of the word.
busylight_core.vendors.embrava.implementation.State.red
class-attribute
instance-attribute
¶
red = RedField()
busylight_core.vendors.embrava.implementation.State.blue
class-attribute
instance-attribute
¶
blue = BlueField()
busylight_core.vendors.embrava.implementation.State.green
class-attribute
instance-attribute
¶
green = GreenField()
busylight_core.vendors.embrava.implementation.State.off
class-attribute
instance-attribute
¶
off = OffBit()
busylight_core.vendors.embrava.implementation.State.dim
class-attribute
instance-attribute
¶
dim = DimBit()
busylight_core.vendors.embrava.implementation.State.flash
class-attribute
instance-attribute
¶
flash = FlashBit()
busylight_core.vendors.embrava.implementation.State.speed
class-attribute
instance-attribute
¶
speed = SpeedField()
busylight_core.vendors.embrava.implementation.State.repeat
class-attribute
instance-attribute
¶
repeat = RepeatBit()
busylight_core.vendors.embrava.implementation.State.play
class-attribute
instance-attribute
¶
play = PlayBit()
busylight_core.vendors.embrava.implementation.State.music
class-attribute
instance-attribute
¶
music = MusicField()
busylight_core.vendors.embrava.implementation.State.volume
class-attribute
instance-attribute
¶
volume = VolumeField()
busylight_core.vendors.embrava.implementation.State.mute
class-attribute
instance-attribute
¶
mute = MuteBit()
Functions¶
busylight_core.vendors.embrava.implementation.State.reset
¶
Reset the state to default values.
Sets the device to off state with no audio playback and default flash speed settings.