aiopioneer


Nameaiopioneer JSON
Version 0.5.0 PyPI version JSON
download
home_pagehttps://github.com/crowbarz/aiopioneer.git
SummaryAsyncio Python library for controlling a Pioneer AVR via its API
upload_time2024-03-06 11:54:54
maintainer
docs_urlNone
authorCrowbar Z
requires_python>=3.6
license
keywords pioneer avr asyncio
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!-- markdownlint-disable MD033 MD041 -->

Python library for controlling a Pioneer AVR via its built-in API.

Used by the [pioneer_async](https://github.com/crowbarz/ha-pioneer_async) integration for Home Assistant, which was inspired by the [original Pioneer Home Assistant integration](https://www.home-assistant.io/integrations/pioneer/).
Originally developed and tested on a VSX-930 (Main Zone and HDZone outputs) but has since been [tested on a larger set of models by the community](https://github.com/crowbarz/ha-pioneer_async/issues/20).

## Features

- Implemented in asyncio.
- Maintains single continuous telnet session to AVR, with automatic reconnect.
- Eliminates status polling where AVR sends keepalive responses (on port 8102).
- Auto-detects Zones 1, 2, 3 and HDZONE.
- Automatically polls AVR for source names - no longer need to manually code them in your config any more if your AVR supports their retrieval. Can also set source names manually.
- Ignore specific zones, for AVRs that report phantom zones.
- Queries device parameters: MAC address, software version, model.
- Ability to set internal parameters to change the API functionality, eg. maximum volume, volume step change delta.
- Defaults for internal parameters can be changed based on custom profiles based on AVR model.
- Includes workaround for AVRs with an initial volume set on the Main Zone (eg. VSX-930).
- Supports AVRs that do not support setting the volume level by emulating using up/down commands (eg. VSX-S510).
- Command line client for sending commands and testing
- Supports all listening mode functions
- Supports all video related functions
- Supports panel and remote locking
- Supports most AMP related functions
- Supports all tone functions
- Supports most zone power functions
- Supports all zone input functions
- Supports all zone volumne and mute functions
- Supports some basic tuner functions

## Params

A `params` object may be passed to the library that modifies its functionality.

The default parameters listed below are for AVR models that do not match any custom profile. Custom profiles apply additional default parameters based on the model identifier retrieved from the AVR, and are defined in [`aiopioneer/param.py`](https://github.com/crowbarz/aiopioneer/blob/main/aiopioneer/param.py). If you need to modify parameters for the library to work for your AVR model, then please create a PR to add a custom profile for your AVR model, or log an issue containing your model number and the parameters that were modified requesting a custom profile to be created.

> **NOTE:** YAML syntax is used in the table below. Use Python equivalents (`false` -> `False`, `true` -> `True`, `null` -> `None` etc.) when calling the Python API directly, and JSON syntax if manually specifying via the Home Assistant integration.

| Name | Type | Default | Description
| ---- | ---- | ------- | -----------
| `ignored_zones` | list | `[]` | List of zones to ignore even if they are auto-discovered. Specify Zone IDs as strings: "1", "2", "3" and "Z".
| `command_delay` | float | `0.1` | Insert a delay between sequential commands that are sent to the AVR. This appears to make the AVR behave more reliably during status polls. Increase this value if debug logging shows that your AVR times out between commands.
| `max_source_id` | int | `60` | Maximum source ID that the source discovery queries. Reduce this if your AVR returns errors.
| `max_volume` | int | `185` | Maximum volume for the Main Zone.
| `max_volume_zonex` | int | `185` | Maximum volume for zones other than the Main Zone.
| `power_on_volume_bounce` | bool | `false` | On some AVRs (eg. VSX-930) where a power-on is set, the initial volume is not reported by the AVR correctly until a volume change is made. This option enables a workaround that sends a volume up and down command to the AVR on power-on to correct the reported volume without affecting the power-on volume.
| `volume_step_only` | bool | `false` | On some AVRs (eg. VSX-S510), setting the volume level is not supported natively by the API. This option emulates setting the volume level using volume up and down commands.
| `ignore_volume_check` | bool | `false` | Don't check volume when determining whether a zone exists on the AVR. Useful for AVRs with an HDZone that passes through audio.
| `zone_1_sources` | list | `[]` | (>0.4) Customises the available sources for use with Zone 1. Defaults to all available sources.
| `zone_2_sources` | list | [see source](https://github.com/crowbarz/aiopioneer/blob/dev/aiopioneer/param.py#L61) | Customises the available sources for use with Zone 2 (some AVRs do not support all sources).
| `zone_3_sources` | list | [see source](https://github.com/crowbarz/aiopioneer/blob/dev/aiopioneer/param.py#L61) | Customises the available sources for use with Zone 3 (some AVRs do not support all sources).
| `hdzone_sources` | list | [see source](https://github.com/crowbarz/aiopioneer/blob/dev/aiopioneer/param.py#L61)` | Customises the available sources for use with HDZone (some AVRs do not support all sources).
| `hdzone_volume_requirements` | list | `["13", "15", "05", "25"]` | A list of sources that HDZone must be set to for volume control, some AVRs do not support HDZone volume at all (see `ignore_volume_check` above) and some only allow control of certain sources.
| `amp_speaker_system_modes` | dict | `....` | Customises the names of speaker system modes. Different generations of AVR will name zones slighty differently. For example, the SC-LX57 names speaker system mode `15` as `5.1ch Bi-Amp + ZONE2` however this can also be called `5.2ch Bi-Amp + HDZONE` on newer AVRs.
| `extra_amp_listening_modes` | dict | [see source](https://github.com/crowbarz/aiopioneer/blob/dev/aiopioneer/const.py#L24) | (>0.5) Additional listening modes that are added to the list of all possible listening modes for the AVR. This list is used to decode the listening mode ID returned by the AVR. See the source for the format for listening mode definition.
| `enabled_amp_listening_modes` | list | `[]` | (>0.5) A list of listening mode IDs to be made available for selection. If specified, then no listening mode IDs will be included by default. All enabled source names must be unique, and duplicated names are ignored. The additional listening modes must be actually supported by the AVR, and will return an error (usually `E02`) when an unsupported listening mode is selected. This list is predefined for some AVRs, and specifying this param manually will override the model specific default disable list.
| `disabled_amp_listening_modes` | list | `[]` | A list of listening mode IDs to be disabled. Listening mode IDs that are also specified in `enabled_amp_listening_modes` will be disabled. This list is predefined for some AVRs, and specifying this param manually will override the model specific default disable list.
| `video_resolution_modes` | list | `['0', '1', '3', '4', '5', '6', '7', '8', '9']` | Sets the available video resolutions. Not all AVRs support the same resolution settings. This defaults to all of the latest resolutions from FY16.
| `mhl_source` | string | `null` | Sets the MHL source ID. This is used for media controls. This information cannot be queried automatically
| `enabled_functions` | list | `["amp", "dsp", "tuner", "tone", "channels", "video", "system", "audio"]` | Change the functions that are enabled by the API, adding more functions will increase the amount of time it takes to complete a full init and update.
| `disable_auto_query` | bool | `false` | Setting to `true` will disable auto queries on init for all functions apart from basic functionality (power, source, volume and mute). If you only need those functions, you can set this to `true`
| `am_frequency_step` | int | `null` | Optional setting to configure the AM frequency step. If this is set to `null`, a function is queued to detect this information by stepping up and down the frequency when the tuner is first used while set to AM.
| `debug_listener` | bool | `false` | Enables additional debug logging for the listener task.
| `debug_responder` | bool | `false` | Enables additional debug logging for the responder task.
| `debug_updater` | bool | `false` | Enables additional debug logging for the updater task.
| `debug_command` | bool | `false` | Enables additional debug logging for commands sent and responses received.

## Command line interface (CLI) (>= 0.1.3, CLI arguments >= 0.3)

A very simple command line interface `aiopioneer` is available to connect to the AVR, send commands and receive responses. It can be used to test the capabilities of the library against your specific AVR.

On Home Assistant, you can run the CLI when the `pioneer_async` Home Assistant integration has been installed. On Home Assistant Supervised or Container, start the CLI from within the HA container: `docker exec -it homeassistant aiopioneer`.

Invoke the CLI with the following arguments:

| Argument | Default | Description
| --- | --- | ---
| hostname | required | hostname for AVR connection
| `-p`<br>`--port` | 8102 | port for AVR connection
| `+Q`<br>`--no-query-device-info` | None | skip AVR device info query
| `+Z`<br>`--no-query-zones` | None | skip AVR zone query

The CLI accepts all API commands, as well as the following:
| Command | Argument | Description
| --- | --- | ---
| `exit` or `quit` | | Exit the CLI.
| `zone` | _zone_ | Change current zone to _zone_.
| `log_level` | _log_level_ | Change debug level to _log_level_. Valid log levels are: `debug`, `info`, `warning`, `error`, `critical`.
| `update` | | Request update of AVR. An update is scheduled in the updater task if a scan interval is set, if it is not set then the update is performed synchronously.
| `update_full` | | Request a full update of AVR irrespective of when the previous update was performed. An update is scheduled in the updater task if a scan interval is set, if it is not set then the update is performed synchronously.
| `query_device_info` | | Query the AVR for device information.
| `query_zones` | | Query the AVR for available zones. Ignore zones specified in parameter `ignored_zones` (list).
| `build_source_dict` | | Query the sources from the AVR.
| `set_source_dict` | _sources_ (JSON) | Manually set the sources to _sources_.
| `get_source_list` | | Return the current set of available source names that can be used with the `select_source` command.
| `get_zone_listening_modes` | | (>0.5) Return the current set of available listening modes.
| `get_params` | | Return the currently active set of parameters.
| `get_user_params` | | Return the currently active set of user parameters.
| `set_user_params` | _params_ (JSON) | Set the user parameters to _params_.
| `get_tone` | | Returns the current AVR tone attributes.
| `get_amp` | | Returns the current AVR amp attributes.
| `get_tuner` | | Returns the current AVR tuner attributes.
| `get_channel_levels` | | Returns the current AVR channel levels.
| `get_dsp` | | Returns the current AVR DSP attributes.
| `get_video` | | Returns the current AVR video parameters.
| `get_audio` | | Returns the current AVR audio parameters.
| `get_system` | | Returns the AVR system attributes.
| `debug_listener` | _state_ (bool) | Enable/disable the `debug_listener` parameter.
| `debug_responder` | _state_ (bool) | Enable/disable the `debug_responder` parameter.
| `debug_updater` | _state_ (bool) | Enable/disable the `debug_updater` parameter.
| `debug_command` | _state_ (bool) | Enable/disable the `debug_command` parameter.
| `set_scan_interval` | _scan_interval_ (float) | Set the scan interval to _scan_interval_.
| `get_scan_interval` | | Return the current scan interval.
| `set_volume_level` | _volume_level_ (int) | Set the volume level for the current zone.
| `select_source` | _source_name_ | Set the input source for the current zone.
| `set_listening_mode` | _listening_mode_ | (>0.5) Set the listening mode to the specified mode.
| `set_tuner_frequency` | _band_ _frequency_ | Set the tuner band and (optionally) frequency.
| `send_raw_command` | _raw_command_ | Send the raw command _raw_command_ to the AVR.

**NOTE:** The CLI interface may change in the future, and should not be used in scripts. Use the Python API instead.

## Source list

| ID | Default Name
| -- | ---
| 25 | BD
| 04 | DVD
| 06 | SAT/CBL
| 15 | DVR/BDR
| 19 | HDMI 1
| 20 | HDMI 2
| 21 | HDMI 3
| 22 | HDMI 4
| 23 | HDMI 5
| 24 | HDMI 6
| 34 | HDMI 7
| 26 | NETWORK (cyclic)
| 38 | INTERNET RADIO
| 53 | Spotify
| 41 | PANDORA
| 44 | MEDIA SERVER
| 45 | FAVORITES
| 17 | iPod/USB
| 05 | TV
| 01 | CD
| 13 | USB-DAC
| 02 | TUNER
| 00 | PHONO
| 12 | MULTI CH IN
| 33 | BT AUDIO
| 31 | HDMI (cyclic)
| 46 | AirPlay (Information only)
| 47 | DMR (Information only)

## Known issues and future plans

- Document PioneerAVR API

## Breaking changes

- **0.5**\
  `get_sound_modes` was renamed to `get_zone_listening_modes` to reflect Pioneer AVR terminology.\
  `disable_autoquery` was renamed `disable_auto_query` to better match the underlying variable name.\
  `amplifier_speaker_system_modes` and `disabled_amplifier_listening_modes` were shortened to `amp_speaker_system_modes` and `disabled_amp_listening_modes` respectively.

- **0.4**\
  `zone_z_sources` was renamed `hdzone_sources` for even more consistency.

- **0.3**\
  `zone_h_sources` was renamed `zone_z_sources` for consistency.

- **0.2**\
  `volume_step_delta` has been removed entirely.

  By default, a number of additional queries are sent at module startup to the AVR to gather amp, tuner and channel levels attributes. If your AVR does not handle these additional queries well, they can be disabled by setting parameter `disable_autoquery` to `true`.

- **0.1**\
  `_PioneerAVR.__init__()` no longer accepts `command_delay`, `volume_workaround` and `volume_steps` arguments. Configure these parameters using the equivalent `PARAM_*` keys in the `params` dict, passed in via the constructure or set via `set_user_params()`.

## References

- Home Assistant Pioneer integration: [https://www.home-assistant.io/integrations/pioneer/](https://www.home-assistant.io/integrations/pioneer/)
- Pioneer commands references: [https://github.com/rwifall/pioneer-receiver-notes](https://github.com/rwifall/pioneer-receiver-notes)
- Another asyncio Pioneer HA component: [https://github.com/realthk/asyncpioneer](https://github.com/realthk/asyncpioneer)
- Pioneer IP and serial IO control documentation: [https://www.pioneerelectronics.com/PUSA/Support/Home-Entertainment-Custom-Install/RS-232+&+IP+Codes/A+V+Receivers](https://www.pioneerelectronics.com/PUSA/Support/Home-Entertainment-Custom-Install/RS-232+&+IP+Codes/A+V+Receivers)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/crowbarz/aiopioneer.git",
    "name": "aiopioneer",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "pioneer avr asyncio",
    "author": "Crowbar Z",
    "author_email": "crowbarz@outlook.com",
    "download_url": "https://files.pythonhosted.org/packages/cd/b3/0b713f11bea2d37648b59b126a6036d3dc3db798a3dc1842c34f796da59d/aiopioneer-0.5.0.tar.gz",
    "platform": null,
    "description": "<!-- markdownlint-disable MD033 MD041 -->\n\nPython library for controlling a Pioneer AVR via its built-in API.\n\nUsed by the [pioneer_async](https://github.com/crowbarz/ha-pioneer_async) integration for Home Assistant, which was inspired by the [original Pioneer Home Assistant integration](https://www.home-assistant.io/integrations/pioneer/).\nOriginally developed and tested on a VSX-930 (Main Zone and HDZone outputs) but has since been [tested on a larger set of models by the community](https://github.com/crowbarz/ha-pioneer_async/issues/20).\n\n## Features\n\n- Implemented in asyncio.\n- Maintains single continuous telnet session to AVR, with automatic reconnect.\n- Eliminates status polling where AVR sends keepalive responses (on port 8102).\n- Auto-detects Zones 1, 2, 3 and HDZONE.\n- Automatically polls AVR for source names - no longer need to manually code them in your config any more if your AVR supports their retrieval. Can also set source names manually.\n- Ignore specific zones, for AVRs that report phantom zones.\n- Queries device parameters: MAC address, software version, model.\n- Ability to set internal parameters to change the API functionality, eg. maximum volume, volume step change delta.\n- Defaults for internal parameters can be changed based on custom profiles based on AVR model.\n- Includes workaround for AVRs with an initial volume set on the Main Zone (eg. VSX-930).\n- Supports AVRs that do not support setting the volume level by emulating using up/down commands (eg. VSX-S510).\n- Command line client for sending commands and testing\n- Supports all listening mode functions\n- Supports all video related functions\n- Supports panel and remote locking\n- Supports most AMP related functions\n- Supports all tone functions\n- Supports most zone power functions\n- Supports all zone input functions\n- Supports all zone volumne and mute functions\n- Supports some basic tuner functions\n\n## Params\n\nA `params` object may be passed to the library that modifies its functionality.\n\nThe default parameters listed below are for AVR models that do not match any custom profile. Custom profiles apply additional default parameters based on the model identifier retrieved from the AVR, and are defined in [`aiopioneer/param.py`](https://github.com/crowbarz/aiopioneer/blob/main/aiopioneer/param.py). If you need to modify parameters for the library to work for your AVR model, then please create a PR to add a custom profile for your AVR model, or log an issue containing your model number and the parameters that were modified requesting a custom profile to be created.\n\n> **NOTE:** YAML syntax is used in the table below. Use Python equivalents (`false` -> `False`, `true` -> `True`, `null` -> `None` etc.) when calling the Python API directly, and JSON syntax if manually specifying via the Home Assistant integration.\n\n| Name | Type | Default | Description\n| ---- | ---- | ------- | -----------\n| `ignored_zones` | list | `[]` | List of zones to ignore even if they are auto-discovered. Specify Zone IDs as strings:\u00a0\"1\", \"2\", \"3\" and \"Z\".\n| `command_delay` | float | `0.1` | Insert a delay between sequential commands that are sent to the AVR. This appears to make the AVR behave more reliably during status polls. Increase this value if debug logging shows that your AVR times out between commands.\n| `max_source_id` | int | `60` | Maximum source ID that the source discovery queries. Reduce this if your AVR returns errors.\n| `max_volume` | int | `185` | Maximum volume for the Main Zone.\n| `max_volume_zonex` | int | `185` | Maximum volume for zones other than the Main Zone.\n| `power_on_volume_bounce` | bool | `false` | On some AVRs (eg. VSX-930) where a power-on is set, the initial volume is not reported by the AVR correctly until a volume change is made. This option enables a workaround that sends a volume up and down command to the AVR on power-on to correct the reported volume without affecting the power-on volume.\n| `volume_step_only` | bool | `false` | On some AVRs (eg. VSX-S510), setting the volume level is not supported natively by the API. This option emulates setting the volume level using volume up and down commands.\n| `ignore_volume_check` | bool | `false` | Don't check volume when determining whether a zone exists on the AVR. Useful for AVRs with an HDZone that passes through audio.\n| `zone_1_sources` | list | `[]` | (>0.4) Customises the available sources for use with Zone 1. Defaults to all available sources.\n| `zone_2_sources` | list | [see source](https://github.com/crowbarz/aiopioneer/blob/dev/aiopioneer/param.py#L61) | Customises the available sources for use with Zone 2 (some AVRs do not support all sources).\n| `zone_3_sources` | list | [see source](https://github.com/crowbarz/aiopioneer/blob/dev/aiopioneer/param.py#L61) | Customises the available sources for use with Zone 3 (some AVRs do not support all sources).\n| `hdzone_sources` | list | [see source](https://github.com/crowbarz/aiopioneer/blob/dev/aiopioneer/param.py#L61)` | Customises the available sources for use with HDZone (some AVRs do not support all sources).\n| `hdzone_volume_requirements` | list | `[\"13\", \"15\", \"05\", \"25\"]` | A list of sources that HDZone must be set to for volume control, some AVRs do not support HDZone volume at all (see `ignore_volume_check` above) and some only allow control of certain sources.\n| `amp_speaker_system_modes` | dict | `....` | Customises the names of speaker system modes. Different generations of AVR will name zones slighty differently. For example, the SC-LX57 names speaker system mode `15` as `5.1ch Bi-Amp + ZONE2` however this can also be called `5.2ch Bi-Amp + HDZONE` on newer AVRs.\n| `extra_amp_listening_modes` | dict | [see source](https://github.com/crowbarz/aiopioneer/blob/dev/aiopioneer/const.py#L24) | (>0.5) Additional listening modes that are added to the list of all possible listening modes for the AVR. This list is used to decode the listening mode ID returned by the AVR. See the source for the format for listening mode definition.\n| `enabled_amp_listening_modes` | list | `[]` | (>0.5) A list of listening mode IDs to be made available for selection. If specified, then no listening mode IDs will be included by default. All enabled source names must be unique, and duplicated names are ignored. The additional listening modes must be actually supported by the AVR, and will return an error (usually `E02`) when an unsupported listening mode is selected. This list is predefined for some AVRs, and specifying this param manually will override the model specific default disable list.\n| `disabled_amp_listening_modes` | list | `[]` | A list of listening mode IDs to be disabled. Listening mode IDs that are also specified in `enabled_amp_listening_modes` will be disabled. This list is predefined for some AVRs, and specifying this param manually will override the model specific default disable list.\n| `video_resolution_modes` | list | `['0', '1', '3', '4', '5', '6', '7', '8', '9']` | Sets the available video resolutions. Not all AVRs support the same resolution settings. This defaults to all of the latest resolutions from FY16.\n| `mhl_source` | string | `null` | Sets the MHL source ID. This is used for media controls. This information cannot be queried automatically\n| `enabled_functions` | list | `[\"amp\", \"dsp\", \"tuner\", \"tone\", \"channels\", \"video\", \"system\", \"audio\"]` | Change the functions that are enabled by the API, adding more functions will increase the amount of time it takes to complete a full init and update.\n| `disable_auto_query` | bool | `false` | Setting to `true` will disable auto queries on init for all functions apart from basic functionality (power, source, volume and mute). If you only need those functions, you can set this to `true`\n| `am_frequency_step` | int | `null` | Optional setting to configure the AM frequency step. If this is set to `null`, a function is queued to detect this information by stepping up and down the frequency when the tuner is first used while set to AM.\n| `debug_listener` | bool | `false` | Enables additional debug logging for the listener task.\n| `debug_responder` | bool | `false` | Enables additional debug logging for the responder task.\n| `debug_updater` | bool | `false` | Enables additional debug logging for the updater task.\n| `debug_command` | bool | `false` | Enables additional debug logging for commands sent and responses received.\n\n## Command line interface (CLI) (>= 0.1.3, CLI arguments >= 0.3)\n\nA very simple command line interface `aiopioneer` is available to connect to the AVR, send commands and receive responses. It can be used to test the capabilities of the library against your specific AVR.\n\nOn Home Assistant, you can run the CLI when the `pioneer_async` Home Assistant integration has been installed. On Home Assistant Supervised or Container, start the CLI from within the HA container: `docker exec -it homeassistant aiopioneer`.\n\nInvoke the CLI with the following arguments:\n\n| Argument | Default | Description\n| --- | --- | ---\n| hostname | required | hostname for AVR connection\n| `-p`<br>`--port` | 8102 | port for AVR connection\n| `+Q`<br>`--no-query-device-info` | None | skip AVR device info query\n| `+Z`<br>`--no-query-zones` | None | skip AVR zone query\n\nThe CLI accepts all API commands, as well as the following:\n| Command | Argument | Description\n| --- | --- | ---\n| `exit` or `quit` | | Exit the CLI.\n| `zone` | _zone_ | Change current zone to _zone_.\n| `log_level` | _log_level_ | Change debug level to _log_level_. Valid log levels are: `debug`, `info`, `warning`, `error`, `critical`.\n| `update` | | Request update of AVR. An update is scheduled in the updater task if a scan interval is set, if it is not set then the update is performed synchronously.\n| `update_full` | | Request a full update of AVR irrespective of when the previous update was performed. An update is scheduled in the updater task if a scan interval is set, if it is not set then the update is performed synchronously.\n| `query_device_info` | | Query the AVR for device information.\n| `query_zones` | | Query the AVR for available zones. Ignore zones specified in parameter `ignored_zones` (list).\n| `build_source_dict` | | Query the sources from the AVR.\n| `set_source_dict` | _sources_ (JSON) | Manually set the sources to _sources_.\n| `get_source_list` | | Return the current set of available source names that can be used with the `select_source` command.\n| `get_zone_listening_modes` | | (>0.5) Return the current set of available listening modes.\n| `get_params` | | Return the currently active set of parameters.\n| `get_user_params` | | Return the currently active set of user parameters.\n| `set_user_params` | _params_ (JSON) | Set the user parameters to _params_.\n| `get_tone` | | Returns the current AVR tone attributes.\n| `get_amp` | | Returns the current AVR amp attributes.\n| `get_tuner` | | Returns the current AVR tuner attributes.\n| `get_channel_levels` | | Returns the current AVR channel levels.\n| `get_dsp` | | Returns the current AVR DSP attributes.\n| `get_video` | | Returns the current AVR video parameters.\n| `get_audio` | | Returns the current AVR audio parameters.\n| `get_system` | | Returns the AVR system attributes.\n| `debug_listener` | _state_ (bool) | Enable/disable the `debug_listener` parameter.\n| `debug_responder` | _state_ (bool) | Enable/disable the `debug_responder` parameter.\n| `debug_updater` | _state_ (bool) | Enable/disable the `debug_updater` parameter.\n| `debug_command` | _state_ (bool) | Enable/disable the `debug_command` parameter.\n| `set_scan_interval` | _scan_interval_ (float) | Set the scan interval to _scan_interval_.\n| `get_scan_interval` | | Return the current scan interval.\n| `set_volume_level` | _volume_level_ (int) | Set the volume level for the current zone.\n| `select_source` | _source_name_ | Set the input source for the current zone.\n| `set_listening_mode` | _listening_mode_ | (>0.5) Set the listening mode to the specified mode.\n| `set_tuner_frequency` | _band_ _frequency_ | Set the tuner band and (optionally) frequency.\n| `send_raw_command` | _raw_command_ | Send the raw command _raw_command_ to the AVR.\n\n**NOTE:** The CLI interface may change in the future, and should not be used in scripts. Use the Python API instead.\n\n## Source list\n\n| ID | Default Name\n| -- | ---\n| 25 | BD\n| 04 | DVD\n| 06 | SAT/CBL\n| 15 | DVR/BDR\n| 19 | HDMI 1\n| 20 | HDMI 2\n| 21 | HDMI 3\n| 22 | HDMI 4\n| 23 | HDMI 5\n| 24 | HDMI 6\n| 34 | HDMI 7\n| 26 | NETWORK (cyclic)\n| 38 | INTERNET RADIO\n| 53 | Spotify\n| 41 | PANDORA\n| 44 | MEDIA SERVER\n| 45 | FAVORITES\n| 17 | iPod/USB\n| 05 | TV\n| 01 | CD\n| 13 | USB-DAC\n| 02 | TUNER\n| 00 | PHONO\n| 12 | MULTI CH IN\n| 33 | BT AUDIO\n| 31 | HDMI (cyclic)\n| 46 | AirPlay (Information only)\n| 47 | DMR (Information only)\n\n## Known issues and future plans\n\n- Document PioneerAVR API\n\n## Breaking changes\n\n- **0.5**\\\n  `get_sound_modes` was renamed to `get_zone_listening_modes` to reflect Pioneer AVR terminology.\\\n  `disable_autoquery` was renamed `disable_auto_query` to better match the underlying variable name.\\\n  `amplifier_speaker_system_modes` and `disabled_amplifier_listening_modes` were shortened to `amp_speaker_system_modes` and `disabled_amp_listening_modes` respectively.\n\n- **0.4**\\\n  `zone_z_sources` was renamed `hdzone_sources` for even more consistency.\n\n- **0.3**\\\n  `zone_h_sources` was renamed `zone_z_sources` for consistency.\n\n- **0.2**\\\n  `volume_step_delta` has been removed entirely.\n\n  By default, a number of additional queries are sent at module startup to the AVR to gather amp, tuner and channel levels attributes. If your AVR does not handle these additional queries well, they can be disabled by setting parameter `disable_autoquery` to `true`.\n\n- **0.1**\\\n  `_PioneerAVR.__init__()` no longer accepts `command_delay`, `volume_workaround` and `volume_steps` arguments. Configure these parameters using the equivalent `PARAM_*` keys in the `params` dict, passed in via the constructure or set via `set_user_params()`.\n\n## References\n\n- Home Assistant Pioneer integration: [https://www.home-assistant.io/integrations/pioneer/](https://www.home-assistant.io/integrations/pioneer/)\n- Pioneer commands references: [https://github.com/rwifall/pioneer-receiver-notes](https://github.com/rwifall/pioneer-receiver-notes)\n- Another asyncio Pioneer HA component: [https://github.com/realthk/asyncpioneer](https://github.com/realthk/asyncpioneer)\n- Pioneer IP and serial IO control documentation: [https://www.pioneerelectronics.com/PUSA/Support/Home-Entertainment-Custom-Install/RS-232+&+IP+Codes/A+V+Receivers](https://www.pioneerelectronics.com/PUSA/Support/Home-Entertainment-Custom-Install/RS-232+&+IP+Codes/A+V+Receivers)\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Asyncio Python library for controlling a Pioneer AVR via its API",
    "version": "0.5.0",
    "project_urls": {
        "Homepage": "https://github.com/crowbarz/aiopioneer.git"
    },
    "split_keywords": [
        "pioneer",
        "avr",
        "asyncio"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cdb30b713f11bea2d37648b59b126a6036d3dc3db798a3dc1842c34f796da59d",
                "md5": "abf361d6fc222864595ff0509f6c94b3",
                "sha256": "0bf3a81aedfa75d2f11686986f5178bf06024202e27f0c4437911b902164b44c"
            },
            "downloads": -1,
            "filename": "aiopioneer-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "abf361d6fc222864595ff0509f6c94b3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 54792,
            "upload_time": "2024-03-06T11:54:54",
            "upload_time_iso_8601": "2024-03-06T11:54:54.826139Z",
            "url": "https://files.pythonhosted.org/packages/cd/b3/0b713f11bea2d37648b59b126a6036d3dc3db798a3dc1842c34f796da59d/aiopioneer-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-06 11:54:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "crowbarz",
    "github_project": "aiopioneer",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "aiopioneer"
}
        
Elapsed time: 0.28533s