Discovery¶
discovery ¶
Stream Deck device discovery via HID enumeration.
Enumerates connected Elgato HID devices filtered by a PID allowlist,
returning :class:~deux.runtime.hid.device.HidDevice instances.
enumerate_devices ¶
Enumerate all connected and supported Stream Deck devices.
Scans for HID devices with Elgato's vendor ID (0x0FD9) and
filters to the supported PID allowlist.
Returns:
| Type | Description |
|---|---|
list[HidDevice]
|
List of :class: |
Raises:
| Type | Description |
|---|---|
HidApiError
|
If |
Source code in src/deux/runtime/hid/discovery.py
find_device_by_serial ¶
Find a specific device by serial number.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
serial
|
str
|
The device serial number to match. |
required |
Returns:
| Type | Description |
|---|---|
HidDevice or None
|
The matching device (not yet opened), or |
Source code in src/deux/runtime/hid/discovery.py
find_device_by_path ¶
Find a specific device by OS device path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
bytes
|
The OS-specific HID device path. |
required |
Returns:
| Type | Description |
|---|---|
HidDevice or None
|
The matching device (not yet opened), or |