Skip to main content

Python API for talking to Monoprice Blackbird 4k 8x8 HDBaseT Matrix

Project description

Status

Build StatusCoverage Status

pyblackbird

Python3 interface implementation for Monoprice Blackbird 4k 8x8 HDBaseT Matrix

Notes

This is for use with Home-Assistant

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)

# 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))

# 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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyblackbird-0.6.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyblackbird-0.6-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pyblackbird-0.6.tar.gz.

File metadata

  • Download URL: pyblackbird-0.6.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pyblackbird-0.6.tar.gz
Algorithm Hash digest
SHA256 22aefafec2cba93bbe43d60c2b8c065dc6876638eb38723dd4c6439a4d57da86
MD5 457fe58d4726d93d135b140b757999f6
BLAKE2b-256 4c3a349daada8567df1ad1200ab823e931cd4886427d8e4a19c5a6609c5f2719

See more details on using hashes here.

File details

Details for the file pyblackbird-0.6-py3-none-any.whl.

File metadata

  • Download URL: pyblackbird-0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pyblackbird-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7bef3b0ebf4042a29f63ac5f4bd3bfb1be735698e6274f2064fd52b19e5c3250
MD5 201ded92e8c693f014c0e7d17afab9f3
BLAKE2b-256 14fc3c418ab71c09ac6751374e5c39ed14439816a60eed55818bcc9ae77d1627

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page