A python library to control Pioneer VSX AVRs over telnet
Project description
pyoneer_vsx
This is a Python package for interfacing with Pioneer receivers, primarily the VSX series, via telnet commands as outlined in this specification.
This package was primarily created for use with Home Assistant to support receivers that do not work with the current implementation, as well as to extract all of the Pioneer-specific code out of Home Assistant, and to swtich to using a persistent connection via asyncio
.
This package is based on python-anthemav
which provides similar functionality for Anthem receivers.
Supported functionality
Currently this supports:
- Power: on/off
- Volume: 0-100%
- Mute: on/off
- Input selection
The spec outlines more functionality, including listening modes, tone control, multi-zone power/input selection, etc, however for my purposes all I needed were the basics above.
Update events
Because we keep a persistent connection to the receiver, we receive events every time a change is made to the receiver, either via a command we sent, or by a person physically interacting with the controls on the device itself.
For this reason we only, and always, update our internal state when we get these events, not when we initially send a command to the receiver.
Setup
Package installation
You can either install the package using pip
:
pip3 install pyoneer-vsx
or clone the repo and install/run it from the source.
Receiver
Connect your receiver to your network and ensure it has a static IP address either via the System Setup > Network Setup
menu on the receiver itself, or by assigning it a fixed address on your router.
Also make sure you enable the Network Standby
feature (also found in the Network Setup
menu) so we can still connect to the receiver even when it is powered off.
Testing
I have exclusively tested this with a VSX-822 and a VSX-1121, but any other Pioneer VSX series receiver (and possibly others) should work.
If download the code you can run the following command, substituting in the IP and port as needed:
python3 test_harness.py --host IP_ADDRESS --port PORT
This will attempt to connect to the receiver, turn it on, select a few different inputs, then turn it off, all with very verbose logging. At the end, your receiver should be off and when you turn it back on it should be set to the Blu-ray/BD input.
Caveats
Due to the persistent connection described above, using this package will prevent any other applications/services, such as iOS or Android control apps, from connecting to the receiver.
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
Built Distribution
Hashes for pyoneer_vsx-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 989a5d15e7b2701c0d3bde090a1f632012e6043b76c80da28be8a610163b4b08 |
|
MD5 | 326d9ede7ca9e02620c39a264f0270bb |
|
BLAKE2b-256 | e9598657597318752c1f777afe302b349a343156b7db1cf97528e1cc6f4a118d |