Skip to content

Emotiva Binding ​

This binding integrates Emotiva AV processors by using the Emotiva Network Remote Control protocol.

Supported Things ​

This binding supports Emotiva processors with Emotiva Network Remote Control protocol support. The thing type for all of them is processor.

Tested models: Emotiva XMC-2

Discovery ​

The binding can discover devices on your network as long as port 7001 is opened on the openHAB machine.

Network Openings ​

The following ports are required to be opened in the firewall of you openHAB machine to have a fully working binding:

  • 7001/udp - Used for device discovery, cannot be changed.
  • 7003/udp - Used for regular notifications from the Emotiva device, can be changed via the notifyPort configuration.
  • 7005/udp - Used for menu notifications from the Emotiva device, can be changed via the menuNotifyPort configuration.

Thing Configuration ​

The Emotiva Processor thing requires the ipAddress it can connect to. There are more parameters which all have defaults set.

ParameterValuesDefault
ipAddressIP address of the processor-
controlPortport number, e.g. 70027002
notifyPortport number, e.g. 70037003
infoPortport number, e.g. 70047004
setupPortTCPport number, e.g. 71007100
menuNotifyPortport number, e.g. 70057005
activateFrontBarActivates Front Bar channelsfalse
activateOSDMenuActivates OSD menu channelsfalse
activateZone2Activates Zone 2 channelsfalse
protocolVersionEmotiva Network Protocol version, 2.0 or 3.0 supported3.0
keepAliveTime between notification update from device, in milliseconds7500
retryConnectInMinutesTime between connection retry, in minutes2

Dynamic channels and extended functionality ​

Emotiva processors have limited processing power, so if the binding subscribes to all channels simultaneously the device might grind to a halt after a while, requiring a manual reboot of the device. The binding is designed to dynamically enable and disabled channels based on the selected source. Furthermore, the configuration values activateFrontBar, activateOSDMenu and activateZone2 controls extra functionality this is default off to reduce the overall load on the device.

Protocol Version ​

Protocol version is usually reported by the device to the binding during discovery, but if a device is added manually, version 3.0 is set by default. Most modern Emotiva devices supports Emotiva Network Protocol version 3.0, but some devices with older firmware versions might require version 2.0.

Keep Alive ​

A job to monitor the availability of the device is started whenever a successful connection is made. This monitors the regular a notification message received via the Control Protocol, and whenever a keep alive message is not received, the device is set OFFLINE. This might be an indication the device either has been disconnected or has been turned off manually. The binding will retry connecting to the device every 2 minutes, so if a device is turned back on it will automatically be discovered by the binding. If the devices goes away within minutes after an initial connection, this might be an indication that the notifyPort has not been opened in the firewall.

Channels ​

The Emotiva Processor supports the following channels (some channels are model specific):

Channel Type IDItem TypeDescription
Main zone
main-zone#powerSwitch (RW)Main zone power on/off
main-zone#volumeDimmer (RW)Main zone volume in percentage (0 to 100)
main-zone#volume-dbNumber (RW)Main zone volume in dB (-96 to 15)
main-zone#muteSwitch (RW)Main zone mute
main-zone#sourceString (RW)Main zone input (HDMI1, TUNER, ARC, ...)
Zone 2
zone2#powerSwitch (RW)Zone 2 power on/off
zone2#volumeDimmer (RW)Zone 2 volume in percentage (0 to 100)
zone2#volume-dbNumber (RW)Zone 2 volume in dB (-80 offset)
zone2#muteSwitch (RW)Zone 2 mute
zone2#inputString (RW)Zone 2 input
General
general#powerSwitch (RW)Power on/off
general#standbyString (W)Set in standby mode
general#menuString (RW)Enter or exit menu
general#menu-controlString (W)Control menu via string commands
general#upString (W)Menu up
general#downString (W)Menu down
general#leftString (W)Menu left
general#rightString (W)Menu right
general#enterString (W)Menu enter
general#dimSwitch (RW)Cycle through FP dimness settings
general#modeString (RW)Select audio mode (auto, dts, ...)
general#infoString (W)Show info screen
general#speaker-presetString (RW)Select speaker presets (preset1, preset2)
general#centerNumber (RW)Center Volume increment up/down (0.5 step)
general#subwooferNumber (RW)Subwoofer Volume increment up/down (0.5 step)
general#surroundNumber (RW)Surround Volume increment up/down (0.5 step)
general#backNumber (RW)Back Volume increment up/down (0.5 step)
general#loudnessSwitch (RW)Loudness on/off
general#trebleNumber (RW)Treble Volume increment up/down (0.5 step)
general#bassNumber (RW)Bass Volume increment up/down (0.5 step)
general#frequenncyRollershutter (W)Frequency up/down, (100 kHz step)
general#seekRollershutter (W)Seek signal up/down
general#channelRollershutter (W)Channel up/down
general#tuner-bandString (R)Tuner band, (AM, FM)
general#tuner-channelString (RW)User–assigned station name
general#tuner-signalString (R)Tuner signal quality
general#tuner-programString (R)Tuner program: "Country", "Rock", ...
general#tuner-RDSString (R)Tuner RDS string
general#audio-inputString (R)Audio input source
general#audio-bitstreamString (R)Audio input bitstream type: "PCM 2.0", "ATMOS", etc.
general#audio-bitsString (R)Audio input bits: "32kHZ 24bits", etc.
general#video-inputString (R)Video input source
general#video-formatString (R)Video input format: "1920x1080i/60", "3840x2160p/60", etc.
general#video-spaceString (R)Video input space: "YcbCr 8bits", etc.
general#input-[1-8]String (R)User assigned input names
general#selected-modeString (R)User selected mode for the main zone
general#selected-movie-musicString (R)User selected movie or music mode for main zone
general#mode-ref-stereoString (R)Label for mode: Reference Stereo
general#mode-stereoString (R)Label for mode: Stereo
general#mode-musicString (R)Label for mode: Music
general#mode-movieString (R)Label for mode: Movie
general#mode-directString (R)Label for mode: Direct
general#mode-dolbyString (R)Label for mode: Dolby
general#mode-dtsString (R)Label for mode: DTS
general#mode-all-stereoString (R)Label for mode: All Stereo
general#mode-autoString (R)Label for mode: Auto
general#mode-surroundString (RW)Select audio mode (Auto, Stereo, Dolby, ...)
general#widthNumber (RW)Width Volume increment up/down (0.5 step)
general#heightNumber (RW)Height Volume increment up/down (0.5 step)
general#barString (R)Text displayed on front panel bar of device
general#menu-display-highlightString (R)Menu Panel Display: Value in focus
general#menu-display-top-startString (R)Menu Panel Display: Top bar, start cell
general#menu-display-top-centerString (R)Menu Panel Display: Top bar, center cell
general#menu-display-top-endString (R)Menu Panel Display: Top bar, end cell
general#menu-display-middle-startString (R)Menu Panel Display: Middle bar, start cell
general#menu-display-middle-centerString (R)Menu Panel Display: Middle bar, center cell
general#menu-display-middle-endString (R)Menu Panel Display: Middle bar, end cell
general#menu-display-bottom-startString (R)Menu Panel Display: Bottom bar, start cell
general#menu-display-bottom-centerString (R)Menu Panel Display: Bottom bar, center cell
general#menu-display-bottom-endString (R)Menu Panel Display: Bottom bar, end cell

(R) = read-only (no updates possible) (W) = write-only (RW) = read-write

Full Example ​

.things file ​

dsl
Thing emotiva:processor:1 "XMC-2" @ "Living room" [ipAddress="10.0.0.100", protocolVersion="3.0"]

.items file ​

dsl
Switch                  emotiva-power               "Processor"                     {channel="emotiva:processor:1:general#power"}
Dimmer                  emotiva-volume              "Volume [%d %%]"                {channel="emotiva:processor:1:main-zone#volume"}
Number:Dimensionless    emotiva-volume-db           "Volume [%d dB]"                {channel="emotiva:processor:1:main-zone#volume-db"}
Switch                  emotiva-mute                "Mute"                          {channel="emotiva:processor:1:main-zone#mute"}
String                  emotiva-source              "Source [%s]"                   {channel="emotiva:processor:1:main-zone#input"}
String                  emotiva-mode-surround       "Surround Mode: [%s]"           {channel="emotiva:processor:1:general#mode-surround"}
Number:Dimensionless    emotiva-speakers-center     "Center Trim [%.1f dB]"         {channel="emotiva:processor:1:general#center"}
Switch                  emotiva-zone2power          "Zone 2"                        {channel="emotiva:processor:1:zone2#power"}
String                  emotiva-front-panel-bar     "Bar Text"                      {channel="emotiva:processor:1:general#bar"}
String                  emotiva-menu-control        "Menu Control"                  {channel="emotiva:processor:1:general#menu-control"}
String                  emotiva-menu-hightlight     "Menu field focus"              {channel="emotiva:processor:1:general#menu-display-highlight"}
String                  emotiva-menu-top-start      ""                      <none>  {channel="emotiva:processor:1:general#menu-display-top-start"}
String                  emotiva-menu-top-center     ""                      <none>  {channel="emotiva:processor:1:general#menu-display-top-center"}
String                  emotiva-menu-top-end        ""                      <none>  {channel="emotiva:processor:1:general#menu-display-top-end"}
String                  emotiva-menu-middle-start   ""                      <none>  {channel="emotiva:processor:1:general#menu-display-middle-start"}
String                  emotiva-menu-middle-center  ""                      <none>  {channel="emotiva:processor:1:general#menu-display-middle-center"}
String                  emotiva-menu-middle-end     ""                      <none>  {channel="emotiva:processor:1:general#menu-display-middle-end"}
String                  emotiva-menu-tottom-start   ""                      <none>  {channel="emotiva:processor:1:general#menu-display-bottom-start"}
String                  emotiva-menu-tottom-center  ""                      <none>  {channel="emotiva:processor:1:general#menu-display-bottom-center"}
String                  emotiva-menu-tottom-end     ""                      <none>  {channel="emotiva:processor:1:general#menu-display-bottom-end"}

.sitemap file ​

dsl
Group item=emotiva-input label="Processor" icon="receiver" {
    Default   item=emotiva-power
    Default   item=emotiva-mute
    Setpoint  item=emotiva-volume
    Default   item=emotiva-volume-db        step=2 minValue=-96.0 maxValue=15.0
    Selection item=emotiva-source
    Text      item=emotiva-mode-surround
    Setpoint  item=emotiva-speakers-center  step=0.5 minValue=-12.0 maxValue=12.0
    Default   item=emotiva-zone2power
}
Frame label="Front Panel" {
    Text item=emotiva-front-panel-bar
    Text item=emotiva-menu-highlight
    Frame label="" {
        Text item=emotiva-menu-top-start
        Text item=emotiva-menu-top-center
        Text item=emotiva-menu-top-end
    }
    Frame label="" {
        Text item=emotiva-menu-middle-start
        Text item=emotiva-menu-middle-center
        Text item=emotiva-menu-middle-end
    }
    Frame label="" {
        Text item=emotiva-menu-bottom-start
        Text item=emotiva-menu-bottom-center
        Text item=emotiva-menu-bottom-end
    }
    Buttongrid label="Menu Control" staticIcon=material:control-camera item=emotiva-menu_control buttons=[1:1:POWER="Power"=switch-off , 1:2:MENU="Menu", 1:3:INFO="Info" , 2:2:UP="Up"=f7:arrowtriangle_up , 4:2:DOWN="Down"=f7:arrowtriangle_down , 3:1:LEFT="Left"=f7:arrowtriangle_left , 3:3:RIGHT="Right"=f7:arrowtriangle_right , 3:2:ENTER="Select" ]
}

Network Remote Control Protocol Reference ​

These resources can be useful to learn what to send using the command channel: