Skip to main content

Status

Tests

pyblackbird

Python3 interface implementation for Monoprice Blackbird HDMI matrix switches

Notes

This is for use with Home-Assistant

Tested with models 21819 (4K 8x8 HDBaseT) and 24180.

Models without IR routing, such as the 24180, use a different command to select a source and report a shorter zone status. Pass ir_control=False for those; the default suits the 21819.

Usage

from pyblackbird import get_blackbird

# Connect via serial port
blackbird = get_blackbird('/dev/ttyUSB0')

# Connect via IP
blackbird = get_blackbird('192.168.1.50', use_serial=False)

# Connect to a model without IR control, i.e. the 24180
blackbird = get_blackbird('/dev/ttyUSB0', ir_control=False)
blackbird = get_blackbird('192.168.1.50', use_serial=False, ir_control=False)

# Print system lock status
print('System Lock is {}'.format('On' if blackbird.lock_status() else 'Off'))

# Valid zones are 1-8
zone_status = blackbird.zone_status(1)

# Print zone status
print('Zone Number = {}'.format(zone_status.zone))
print('Zone Power is {}'.format('On' if zone_status.power else 'Off'))
print('AV Source = {}'.format(zone_status.av))
print('IR Source = {}'.format(zone_status.ir))  # None without IR control

# Turn off zone #1
blackbird.set_power(1, False)

# Set source 5 for zone #1
blackbird.set_zone_source(1, 5)

# Set all zones to source 2
blackbird.set_all_zone_source(2)

# Lock system buttons
blackbird.lock_front_buttons()

# Unlock system buttons
blackbird.unlock_front_buttons()

Metadata

Release files for pyblackbird 0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyblackbird 0.9
File Size Uploaded
pyblackbird-0.9.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyblackbird 0.9
File Interpreter ABI Platform
pyblackbird-0.9-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / pyblackbird-0.9.tar.gz

Download URL pyblackbird-0.9.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fcfa54ae573cfc5e113265571830678ff0fd8b07009f1fff82c367d860aabbf9
BLAKE2b-256 checksum
How to use checksums
99569eaf406df9537080bbcc6b85fe72080fff6e557b738d13e3a41fdecaaacd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / pyblackbird-0.9-py3-none-any.whl

Download URL pyblackbird-0.9-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a3cb87eebc6a7364a23fe50591f602c8ef77af8136fc74aa87a4667a7fcf0b4
BLAKE2b-256 checksum
How to use checksums
b6328d8da8fab8fbd1e5dd6779653458b50c832e3f853d371203819e0cc6f6c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

0.10

2 release files

This release

0.9 This release

2 release files

0.6

2 release files

0.5

1 release file

0.4

1 release file

0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page