Skip to main content

Automation control library for Yamaha receivers that support the YNCA protocol.

Project description

YNCA

Automation Library for Yamaha receivers that support the YNCA protocol.

Supported receivers according to protocol documentation (not all tested):

RX-A700, RX-A710, RX-A800, RX-A810, RX-A1000, RX-A1010, RX-A2000, RX-A2010, RX-A3000, RX-A3010, RX-V671, RX-V867, RX-V871, RX-V1067, RX-V2067, RX-V2600, RX-V3067

Installation

pip3 install ynca

Usage

This package contains:

YncaReceiver

a class that represents YNCA capable receiver and allows you to control it

ynca_console

function that provides an interactive console for YNCA commands (debugging)

Example

# Create a receiver object. This call takes a while (multiple seconds) since
# it communicates quite a lot with the actual device.
# Note that later calls that control the receiver are are fast (they get async responses)
receiver = ynca.YncaReceiver("/dev/tty1")  # Port could also be e.g. COM3 on Windows or socket://192.168.1.12:50000 for IP connection

# Attributes that are still None after initialization are not supported by the receiver/zone
# ``receiver.zones`` is a dictionary with all available zone object for the receiver
main = receiver.zones["MAIN"]  # other possible zones are ZONE2, ZONE3 and ZONE4
print(main.name)  # Print the name of the main zone

# ``receiver.inputs`` is a dictionary of available inputs with the key being
# the unique ID and the value the friendly name if available
print(main.inputs)

# To get notifications when something changes register callbacks
def on_update_callback():
    pass
main.on_update_callback = on_update_callback

# Examples to control the zone
main.on = True
main.input = "HDMI3"
main.volume_up()

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

ynca-2.0.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

ynca-2.0.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file ynca-2.0.0.tar.gz.

File metadata

  • Download URL: ynca-2.0.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for ynca-2.0.0.tar.gz
Algorithm Hash digest
SHA256 97c0e0c7ad96aabd7412962845e1e24c91994fcaebcca8741db734bdf76f88b7
MD5 b063f70562e163655bebda60978e5852
BLAKE2b-256 9cdb2bb4f53f483b9169877ed898f8d8f25a01c26c10e64c500d4d9d030def27

See more details on using hashes here.

File details

Details for the file ynca-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: ynca-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for ynca-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72bf7df6b07984c402da57e9cd839a4e296fba80dca962750d7b2c80f18949d8
MD5 d398928394ea2b67868844dd411999c8
BLAKE2b-256 59213bbb6c34277568efcf96bdeb26654dc5d6cb38661bd9aa77d9a81f355cb4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page