Automation library for AV Access devices
Project description
pyavaccess
Python libary for interfacing with AV Access devices over serial. Designed for use with Home Assistant.
Supported Devices
Although this library was created for and tested with the 4kmx42-h2a, it was written so that it could be easily expanded for use with any AV Access device.
Have a different device?
If you're a developer - please consider contributing to this project :)
If you're not a developer - open an issue with the model and features of your device and I'll see what I can do
Usage
from pyavaccess import HDMIMatrixSerial
# Interface with a "4kmx42-h2a" device over serial at "/dev/ttyUSB0"
av = HDMIMatrixSerial("/dev/ttyUSB0", "4KMX42-H2A")
# Print current version
print(av.getVer())
# Get a map of active input for each output {out: in, ...}
outputMap = av.getMappings()
# For each output, print the input mapped to it
for output, input in outputMap.items():
print("Output {} is mapped to input {}".format(output, input))
# Set the input for output 1 to input 4
av.mapOutput(1, 4)
# Check that the mapping was successful
assert av.getMapping(1)[1] == 4
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyavaccess-0.0.1.tar.gz
(30.8 kB
view hashes)
Built Distribution
pyavaccess-0.0.1-py3-none-any.whl
(31.5 kB
view hashes)
Close
Hashes for pyavaccess-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e75b81cedacbd7d277090a519b54b619f1e379ba28ef9723b0650c24820e48fa |
|
MD5 | c6be8c609b93eeb08867ab9b26a8dcc5 |
|
BLAKE2b-256 | 26fa2e1d422201f75e7f6ef1cb0d6feca19b07f24832fee129aace12820ab7a4 |