Skip to main content

Python Library for Denon AVR Serial over IP Control

PyPI GitHub issues GitHub forks GitHub stars GitHub license Twitter

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 awaited.

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

Buy Me A Coffee

Metadata

Release files for denon-avr-serial-over-ip 0.0.5

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

Source distribution (sdist)

Source distribution for denon-avr-serial-over-ip 0.0.5
File Size Uploaded
denon-avr-serial-over-ip-0.0.5.tar.gz 609.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for denon-avr-serial-over-ip 0.0.5
File Interpreter ABI Platform
denon_avr_serial_over_ip-0.0.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 623.2 kB

Release files / denon-avr-serial-over-ip-0.0.5.tar.gz

Download URL denon-avr-serial-over-ip-0.0.5.tar.gz
Size 609.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ebbe1b46c49acb29b9824fa4174ece885dc44b9d2c2994cf4a7bc0205a132ae6
BLAKE2b-256 checksum
How to use checksums
b13bacd7ff4c5b9a438f45a1aa1f25b4740c84f1cb5e77d15ac966f0f85ba73f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release files / denon_avr_serial_over_ip-0.0.5-py2.py3-none-any.whl

Download URL denon_avr_serial_over_ip-0.0.5-py2.py3-none-any.whl
Size 13.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
045f45ece0baa962aedefe8c1e37ec59af7530b51b20e2588a34351a1cdad930
BLAKE2b-256 checksum
How to use checksums
ad462fd9ce7eb9342cd83c33d2c55d391082d0f9b61e05f5fc273897fb4f9fb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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