Control a serial Denon AVR interface over IP
Project description
Python Library for Denon AVR Serial over IP Control
Description
Connects to an older Denon AVR serial port using an IP to Serial convertor
Note
This is in no way affiliated with Denon.
Issues
I don't have access to a Denon AMP any more directly - so most of this is from old Protocol documentation
Logging / Debugging
This library uses logging
just set the log level and format you need.
Example
The examples below may look a little complex - because this library relies on functions like .connect()
need to be await
ed.
Connect and turn on Zone 2
import asyncio
from denon_avr_serial_over_ip import DenonAVR
api = DenonAVR(
host=10.10.10.10,
longitude=5001,
)
async def zone_change(zone):
"""Alert about a zone change"""
_LOGGER.info("Zone %s changed", zone.zone_number)
async def connect_turn_on_z2():
await API.connect()
API.zone2.subscribe(zone_change)
await asyncio.sleep(2)
await API.zone2.turn_on()
await asyncio.sleep(2)
await API.zone2.set_volume_level(0.5)
await asyncio.sleep(2)
await API.turn_off()
asyncio.get_event_loop().run_until_complete(connect_turn_on_z2())
Support
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
denon-avr-serial-over-ip-0.0.5.tar.gz
(609.3 kB
view hashes)
Built Distribution
Close
Hashes for denon-avr-serial-over-ip-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebbe1b46c49acb29b9824fa4174ece885dc44b9d2c2994cf4a7bc0205a132ae6 |
|
MD5 | 50459790d6d97b544b37b7f024dd47c4 |
|
BLAKE2b-256 | b13bacd7ff4c5b9a438f45a1aa1f25b4740c84f1cb5e77d15ac966f0f85ba73f |
Close
Hashes for denon_avr_serial_over_ip-0.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 045f45ece0baa962aedefe8c1e37ec59af7530b51b20e2588a34351a1cdad930 |
|
MD5 | b2e4c0fdc2773e098efece7576b0e100 |
|
BLAKE2b-256 | ad462fd9ce7eb9342cd83c33d2c55d391082d0f9b61e05f5fc273897fb4f9fb0 |