{"id":15486057,"url":"https://github.com/ol-iver/denonavr","last_synced_at":"2025-05-14T07:10:54.618Z","repository":{"id":41052050,"uuid":"74424657","full_name":"ol-iver/denonavr","owner":"ol-iver","description":"Automation Library for Denon AVR receivers.","archived":false,"fork":false,"pushed_at":"2025-05-01T16:22:11.000Z","size":691,"stargazers_count":181,"open_issues_count":6,"forks_count":68,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-05-01T16:40:07.589Z","etag":null,"topics":["api","denon","home-assistant","home-automation","marantz","python","rest"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ol-iver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-11-22T02:09:51.000Z","updated_at":"2025-05-01T16:22:15.000Z","dependencies_parsed_at":"2023-02-12T18:31:24.141Z","dependency_job_id":"dbeacf21-369a-4fa3-b6ff-bc67630ac7df","html_url":"https://github.com/ol-iver/denonavr","commit_stats":{"total_commits":364,"total_committers":44,"mean_commits":8.272727272727273,"dds":0.5027472527472527,"last_synced_commit":"8368c7ba31d687848140df4a2cb21f8e5047f70b"},"previous_names":[],"tags_count":63,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ol-iver%2Fdenonavr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ol-iver%2Fdenonavr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ol-iver%2Fdenonavr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ol-iver%2Fdenonavr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ol-iver","download_url":"https://codeload.github.com/ol-iver/denonavr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254092798,"owners_count":22013292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","denon","home-assistant","home-automation","marantz","python","rest"],"created_at":"2024-10-02T06:06:00.916Z","updated_at":"2025-05-14T07:10:49.602Z","avatar_url":"https://github.com/ol-iver.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# denonavr\n[![Release](https://img.shields.io/github/v/release/ol-iver/denonavr?sort=semver)](https://github.com/ol-iver/denonavr/releases/latest)\n[![Build Status](https://github.com/ol-iver/denonavr/actions/workflows/python-tests.yml/badge.svg)](https://github.com/ol-iver/denonavr/actions/workflows/python-tests.yml)\n[![PyPi](https://img.shields.io/pypi/v/denonavr.svg)](https://pypi.org/project/denonavr)\n[![License](https://img.shields.io/github/license/ol-iver/denonavr.svg)](LICENSE)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nAutomation Library for Denon AVR receivers\n\n## Installation\n\nUse pip:\n\n```$ pip install denonavr```\n\nor \n\n```$ pip install --use-wheel denonavr```\n  \n## Usage with `async`\n\nWriting `async` and `await` methods are outside the scope of the documentation.  You can test `async` usage from the Python REPL.  In a terminal run:\n\n`python3 -m asyncio`\n\nThe `asyncio` library should automatically be imported in the REPL.  Import the `denonavr` library and set up your receiver.  If you know the  IP address, enter it below replacing `192.168.1.119`.\n\n```\n\u003e\u003e\u003e import asyncio\n\u003e\u003e\u003e import denonavr\n\u003e\u003e\u003e d = denonavr.DenonAVR(\"192.168.1.119\")\n\u003e\u003e\u003e await d.async_setup()\n\u003e\u003e\u003e await d.async_update()\n\u003e\u003e\u003e print(d.volume)\n-36.5\n```\n\n### Monitoring with telnet\nIn addition to retrieving the current device status via HTTP calls, `denonavr` library also has the ability to setup a task that will connect to the receiver via telnet on TCP port 23 and listen for real-time events to notify of status changes.\nThis provides instant updates via a callback when the device status changes. Receivers support only one active telnet connection.\n\n```\n\u003e\u003e\u003e import asyncio\n\u003e\u003e\u003e import denonavr\n\u003e\u003e\u003e d = denonavr.DenonAVR(\"192.168.1.119\")\n\u003e\u003e\u003e await d.async_setup()\n\u003e\u003e\u003e await d.async_telnet_connect()\n\u003e\u003e\u003e await d.async_update()\n\u003e\u003e\u003e async def update_callback(zone, event, parameter):\n\u003e\u003e\u003e\u003e\u003e\u003e print(\"Zone: \" + zone + \" Event: \" + event + \" Parameter: \" + parameter)\n\u003e\u003e\u003e d.register_callback(\"ALL\", update_callback)\n```\n\n### Power \u0026 Input\n```\n\u003e\u003e\u003e await d.async_power_on()\n\u003e\u003e\u003e await d.async_update()\n\u003e\u003e\u003e d.power\n'ON'\n\n\u003e\u003e\u003e await d.async_power_off()\n\u003e\u003e\u003e await d.async_update()\n\u003e\u003e\u003e d.power\n'OFF'\n\n\u003e\u003e\u003e d.input_func\n'Tuner'\n\u003e\u003e\u003e await d.async_set_input_func(\"Phono\")\n\u003e\u003e\u003e d.input_func\n'Phono'\n```\n### Sound\n```\n\u003e\u003e\u003e await d.async_mute(True)\n\u003e\u003e\u003e await d.async_mute(False)\n```\n\n### Other methods\n\nOther `async` methods available include:\n\n* `d.async_bass_down`\n* `d.async_bass_up`\n* `d.async_treble_down`\n* `d.async_treble_up`\n* `d.async_volume_down`\n* `d.async_volume_up`\n* `d.async_set_volume(50)`\n\n## Collection of HTTP calls\nFor a collection of HTTP calls for Denon receivers please have a look at the `doc` folder.\n\n## License\nMIT\n\n## Author\n@ol-iver: https://github.com/ol-iver\n\n## Contributors\n@soldag: https://github.com/soldag  \n@shapiromatron: https://github.com/shapiromatron  \n@glance-: https://github.com/glance-  \n@p3dda: https://github.com/p3dda  \n@russel: https://github.com/russell  \n@starkillerOG: https://github.com/starkillerOG  \n@andrewsayre: https://github.com/andrewsayre  \n@JPHutchins: https://github.com/JPHutchins  \n@MarBra: https://github.com/MarBra  \n@dcmeglio: https://github.com/dcmeglio  \n@bdraco: https://github.com/bdraco  \n\n## Users\nHome Assistant: https://github.com/home-assistant/home-assistant/  \ndenonavr-cli: https://pypi.org/project/denonavr-cli/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fol-iver%2Fdenonavr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fol-iver%2Fdenonavr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fol-iver%2Fdenonavr/lists"}