139 lines
4.2 KiB
Markdown
139 lines
4.2 KiB
Markdown
---
|
|
id: pioneeravr
|
|
label: Pioneer AVR
|
|
title: Pioneer AVR - Bindings
|
|
type: binding
|
|
description: "The binding can auto-discover the Pioneer AVRs present on your local network."
|
|
since: 2x
|
|
logo: images/addons/pioneeravr.png
|
|
install: auto
|
|
---
|
|
|
|
<!-- Attention authors: Do not edit directly. Please add your changes to the appropriate source repository -->
|
|
|
|
{% include base.html %}
|
|
|
|
# Pioneer AVR Binding
|
|
|
|
## Binding configuration
|
|
|
|
The binding can auto-discover the Pioneer AVRs present on your local network.
|
|
The auto-discovery is enabled by default.
|
|
To disable it, you can create a file in the services directory called pioneeravr.cfg with the following content:
|
|
|
|
```
|
|
#Put your configuration here
|
|
org.openhab.pioneeravr:enableAutoDiscovery=false
|
|
```
|
|
|
|
This configuration parameter only control the PioneerAVR auto-discovery process, not the openHAB auto-discovery.
|
|
Moreover, if the openHAB auto-discovery is disabled, the PioneerAVR auto-discovery is disabled too.
|
|
|
|
## Thing configuration
|
|
|
|
In the things folder, create a file called pioneeravr.things (or any other name) and configure your AVRs inside.
|
|
|
|
The binding can control AVRs through the local network (ipAvr/ipAvrUnsupported thing type) or through a Serial connection (serialAvr) if the AVR is directly connected to your computer.
|
|
|
|
|
|
Configuration of ipAvr/ipAvrUnsupported:
|
|
|
|
* address: the hostname/ipAddress of the AVR on the local network. (mandatory)
|
|
* tcpPort: the port number to use to connect to the AVR. (optional, default to 23)
|
|
|
|
|
|
Configuration of serialAvr:
|
|
|
|
* serialPort: the name of the serial port on your computer. (mandatory)
|
|
|
|
Example:
|
|
|
|
```
|
|
pioneeravr:ipAvr:vsx921IP [ address="192.168.1.25", tcpPort="23" ]
|
|
pioneeravr:serialAvr:vsx921Serial [ serialPort="COM9" ]
|
|
```
|
|
|
|
## Channels
|
|
|
|
* power: power On/Off the AVR. Receive power events.
|
|
* volumeDimmer: Increase/Decrease the volume on the AVR or set the volume as %. Receive volume change events (in %).
|
|
* volumeDb: Set the volume of the AVR in dB (from -80.0 to 12 with 0.5 dB steps). Receive volume change events (in dB).
|
|
* mute: Mute/Unmute the AVR. Receive mute events.
|
|
* setInputSource: Set the input source of the AVR. See input source mapping for more details. Receive source input change events with the input source ID.
|
|
* displayInformation: Receive display events. Reflect the display on the AVR front panel.
|
|
|
|
## Input Source Mapping
|
|
|
|
Here after are the ID values of the input sources (depending on you AVR input sources might not be available):
|
|
|
|
* 04: DVD
|
|
* 25: BD
|
|
* 05: TV/SAT
|
|
* 06: SAT/CBL
|
|
* 15: DVR/BDR
|
|
* 10: VIDEO 1(VIDEO)
|
|
* 14: VIDEO 2
|
|
* 19: HDMI 1
|
|
* 20: HDMI 2
|
|
* 21: HDMI 3
|
|
* 22: HDMI 4
|
|
* 23: HDMI 5
|
|
* 24: HDMI 6
|
|
* 34: HDMI 7
|
|
* 35: HDMI 8
|
|
* 26: HOME MEDIA GALLERY(Internet Radio)
|
|
* 44: Media Server
|
|
* 38: Internet Radio
|
|
* 17: iPod/USB
|
|
* 48: MHL
|
|
* 01: CD
|
|
* 03: CD-R/TAPE
|
|
* 02: TUNER
|
|
* 00: PHONO
|
|
* 13: USB-DAC
|
|
* 12: MULTI CH IN
|
|
* 33: ADAPTER PORT (BT)
|
|
* 18: XM RADIO
|
|
* 27: SIRIUS
|
|
* 40: SiriusXM
|
|
* 41: PANDORA
|
|
* 45: Favourites
|
|
* 57: Spotify
|
|
* 31: HDMI (cyclic)
|
|
|
|
## Example
|
|
|
|
*demo.Things:
|
|
|
|
```
|
|
pioneeravr:ipAvr:vsx921 [ address="192.168.188.89" ]
|
|
```
|
|
|
|
*demo.items:
|
|
|
|
```
|
|
/* Pioneer AVR Items */
|
|
Switch vsx921PowerSwitch "Power" (All) { channel="pioneeravr:ipAvr:vsx921:power" }
|
|
Switch vsx921MuteSwitch "Mute" <none> (All) { channel="pioneeravr:ipAvr:vsx921:mute" }
|
|
Dimmer vsx921VolumeDimmer "Volume [%.1f] %" <none> (All) { channel="pioneeravr:ipAvr:vsx921:volumeDimmer" }
|
|
Number vsx921VolumeNumber "Volume [%.1f] dB" <none> (All) { channel="pioneeravr:ipAvr:vsx921:volumeDb" }
|
|
String vsx921InputSourceSet "Input" <none> (All) { channel="pioneeravr:ipAvr:vsx921:setInputSource" }
|
|
String vsx921InformationDisplay "Information [%s]" <none> (All) { channel="pioneeravr:ipAvr:vsx921:displayInformation" }
|
|
```
|
|
|
|
*demo.sitemap:
|
|
|
|
```
|
|
sitemap demo label="Main Menu"
|
|
{
|
|
Frame label="Pioneer AVR" {
|
|
Switch item=vsx921PowerSwitch
|
|
Switch item=vsx921MuteSwitch mappings=[ON="Mute", OFF="Un-Mute"]
|
|
Slider item=vsx921VolumeDimmer
|
|
Setpoint item=vsx921VolumeNumber minValue="-80" maxValue="12" step="0.5"
|
|
Switch item=vsx921InputSourceSet mappings=[04="DVD", 15="DVR/BDR", 25="BD"]
|
|
Text item=vsx921InformationDisplay
|
|
}
|
|
}
|
|
```
|