# Rotel Binding Function

**URL:** <https://community.openhab.org/t/rotel-binding-function/100792>\
**Category:** Bindings\
**Created:** [June 16, 2020, 8:41am UTC](https://community.openhab.org/t/rotel-binding-function/100792 "2020-06-16T08:41:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Houston](https://community.openhab.org/user_avatar/community.openhab.org/scott_houston/32/55121_2.png) [@Scott\_Houston](https://community.openhab.org/u/Scott_Houston)\
**Post date:** [June 16, 2020, 8:41am UTC](https://community.openhab.org/t/rotel-binding-function/100792/1 "2020-06-16T08:41:45Z")

</div>

Continuing the discussion from [Control of Rotel equipments](https://community.openhab.org/t/control-of-rotel-equipments/71634):

@Lolodomo

Hi There,

I am very new to openhab, so it’s possible my question comes from a lack of understanding,. If so, apologies.

I have some Rotel gear, including an RC-1590. I’ve installed the binding, punched in the IP, and set it up as a “thing” using the paperUI.

I can see the device as showing on line, but beyond that, it doesn’t appear to respond to any button commands or updating status.

I know that the unit is online and talking to the network, as I’ve used a volume add in for Roon that talks over IP.

The Rotel unit is on FW v. 1.41. I mention this because it broke the Roon volume control add in, which had to be updated for the new FW – in case that has some bearing here (don’t know any particulars beyond that, sorry).

Thanks in advance for any help.

---

<div class="post-metadata">

**Author:** ![Lolodomo](https://community.openhab.org/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@Lolodomo](https://community.openhab.org/u/Lolodomo)\
**Post date:** [June 17, 2020, 6:40am UTC](https://community.openhab.org/t/rotel-binding-function/100792/3 "2020-06-17T06:40:44Z")

</div>

Note that I found a new version of the protocol version for the model RC-1590.

> As of software V1.40, the RS232 and IP protocol was updated with changes to some commands as well as all feedback strings. This change will impactexisting control systems so any connected control systems should be updated to utilize the new protocol before updating the software in the RC-1590.

So a change is necessary in the binding to support your model with your firmware.

---

<div class="post-metadata">

**Author:** ![Lolodomo](https://community.openhab.org/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@Lolodomo](https://community.openhab.org/u/Lolodomo)\
**Post date:** [June 19, 2020, 6:45am UTC](https://community.openhab.org/t/rotel-binding-function/100792/4 "2020-06-19T06:45:48Z")

</div>

Of course I will propose a fix in the coming days.  
The change may be even easy but I need first to analyze the new documentation. I guess this is the same change of protocol that occurred with few other models and which is already supported by the binding.

The fix is in the review process. If we have chance, it could be included in next version 2.5.6.

> <https://github.com/openhab/openhab-addons/pull/7946>
>
> Signed-off-by: Laurent Garnier \<lg.hc@free.fr\>

Fix is now merged and will be included in 2.5.6.

---

<div class="post-metadata">

**Author:** ![Lolodomo](https://community.openhab.org/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@Lolodomo](https://community.openhab.org/u/Lolodomo)\
**Post date:** [June 24, 2020, 7:15am UTC](https://community.openhab.org/t/rotel-binding-function/100792/5 "2020-06-24T07:15:03Z")

</div>

No feedback??

---

<div class="post-metadata">

**Author:** ![Scott\_Houston](https://community.openhab.org/user_avatar/community.openhab.org/scott_houston/32/55121_2.png) [@Scott\_Houston](https://community.openhab.org/u/Scott_Houston)\
**Post date:** [February 14, 2021, 8:50am UTC](https://community.openhab.org/t/rotel-binding-function/100792/6 "2021-02-14T08:50:04Z")

</div>

Hi Lolodomo,

Apologies for no reply – I tinkered then got distracted.

However – I am back, and have seen your reply. Firstly, thank you for your effort and help. This binding works quite well with the RC-1590 model. I very much appreciate that this is available – I am using it in my house to hide gear away and control from an ipad.

I am having only one issue – I can’t seem to select the PC USB source. I can select CD, optical1, etc, but not PC USB (which is of course, the one I use most of the time).

In my sitemap file, I am using upper case source names in the mappings e.g. “OPTICAL1”=Optical1, “OPTICAL2”=Optical2, etc. I haven’t been able to crack the right combo for PCUSB. In another app (a Roon extension) I have successfully used pc\_usb (lower case). The namings in the Rotel manual ([https://rotel.com/sites/default/files/product/rs232/RC1590%20Protocol.pdf](https://rotel.com/sites/default/files/product/rs232/RC1590%20Protocol.pdf)) have not been helpful.

I am using firmware v 1.1, so am using ASCII.

Many thanks for any help you can offer – again, this is a very useful binding – just one small bug that I can see.

---

<div class="post-metadata">

**Author:** ![Scott\_Houston](https://community.openhab.org/user_avatar/community.openhab.org/scott_houston/32/55121_2.png) [@Scott\_Houston](https://community.openhab.org/u/Scott_Houston)\
**Post date:** [February 14, 2021, 9:15am UTC](https://community.openhab.org/t/rotel-binding-function/100792/7 "2021-02-14T09:15:30Z")

</div>

p.s. one more, if this helps – when I physically press the button on the unit to select the PCUSB source, I see:  
2021-02-14 10:11:44.475 [INFO] [openhab.event.ItemStateChangedEvent] - Item ‘MasterBedroomRC1590StereoPreamplifier\_SourceInput’ changed from OPTICAL1 to PCUSB

But if use PCUSB as the selection source in the sitemap file, it doesn’t work.

Thanks again.

---

<div class="post-metadata">

**Author:** ![Lolodomo](https://community.openhab.org/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@Lolodomo](https://community.openhab.org/u/Lolodomo)\
**Post date:** [February 14, 2021, 3:43pm UTC](https://community.openhab.org/t/rotel-binding-function/100792/8 "2021-02-14T15:43:19Z")

</div>

I hope you know that you can let the binding build the list of options for your channel.  
Hardcoding a mapping has only an interest if you want to restrict to a subset of input sources.  
Looking at the code, I can confirm that the value to be used in OH is PCUSB. The binding will then use value pc\_usb in the message sent to the device.  
If it does not work, that would mean the Rotel doc is wrong. I will check it again.

---

<div class="post-metadata">

**Author:** ![Lolodomo](https://community.openhab.org/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@Lolodomo](https://community.openhab.org/u/Lolodomo)\
**Post date:** [February 14, 2021, 3:51pm UTC](https://community.openhab.org/t/rotel-binding-function/100792/9 "2021-02-14T15:51:49Z")

</div>

Checking Rotel doc you linked, the expected command should be pcusb. So there is a bug in the binding!  
I will have to check if this command value is specific to this model or not.  
I will prepare a fix in the next days.  
I hope this is not something that changed with a new firmware,

---

<div class="post-metadata">

**Author:** ![Lolodomo](https://community.openhab.org/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@Lolodomo](https://community.openhab.org/u/Lolodomo)\
**Post date:** [February 14, 2021, 6:18pm UTC](https://community.openhab.org/t/rotel-binding-function/100792/10 "2021-02-14T18:18:54Z")

</div>

After re-re-reading the spec, with a firmware priori to 1.4, the command that must send the binding is “pc\_usb!”. For firmware 1.4 and newer, it shoud be “pcusb!”.  
So if your firmware is 1.1, the binding should work if you send “PCUSB” to the channel.  
Did you select ASCII v1 or ASCII v2 ?

By the way, my feeling is that the value is wrong for ASCII v2 mode in the binding. To be investigated.

---

<div class="post-metadata">

**Author:** ![Scott\_Houston](https://community.openhab.org/user_avatar/community.openhab.org/scott_houston/32/55121_2.png) [@Scott\_Houston](https://community.openhab.org/u/Scott_Houston)\
**Post date:** [February 14, 2021, 10:26pm UTC](https://community.openhab.org/t/rotel-binding-function/100792/11 "2021-02-14T22:26:31Z")

</div>

Hi, sorry, I am using version **1.41** of the firmware – typo by me. I’m using the ASCII protocol.

Attached is a screengrab of the naming I’m using for the roon volume control, where pc\_usb works successfully (also v 1.41 firmware on this device).

As to using a server provided list – I have tried using that via habpanel (I do not know how to make that work for a handwritten sitemap yet ;)), and it still does not work.

I also have another model of Rotel device – an RA-1592; it should be very similar to the RC-1590. I’ll try to conenct to that this evening and see how it behaves.

Thank you again.

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/7/1/716325e0bb3d1c541006c627ec1e581ccc29beaa.png)

---

<div class="post-metadata">

**Author:** ![Lolodomo](https://community.openhab.org/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@Lolodomo](https://community.openhab.org/u/Lolodomo)\
**Post date:** [February 14, 2021, 11:46pm UTC](https://community.openhab.org/t/rotel-binding-function/100792/12 "2021-02-14T23:46:11Z")

</div>

Ok so you should have setup ASCII v2 and the binding has to be fixed to send the right command for PC USB source.  
I must be sure that the fix has to be applied to all models using ASCII v2 protocol and having a PC USB source. If not, it will make the fix more difficult.

---

<div class="post-metadata">

**Author:** ![Scott\_Houston](https://community.openhab.org/user_avatar/community.openhab.org/scott_houston/32/55121_2.png) [@Scott\_Houston](https://community.openhab.org/u/Scott_Houston)\
**Post date:** [February 15, 2021, 4:17am UTC](https://community.openhab.org/t/rotel-binding-function/100792/13 "2021-02-15T04:17:32Z")

</div>

Hi, yes, am running ASCII. Just tested my RA-1592 – it has same behaviour as the RC-1590.

Thanks!

---

<div class="post-metadata">

**Author:** ![Scott\_Houston](https://community.openhab.org/user_avatar/community.openhab.org/scott_houston/32/55121_2.png) [@Scott\_Houston](https://community.openhab.org/u/Scott_Houston)\
**Post date:** [February 15, 2021, 4:42am UTC](https://community.openhab.org/t/rotel-binding-function/100792/14 "2021-02-15T04:42:49Z")

</div>

ASCII v2, to clarify.

---

<div class="post-metadata">

**Author:** ![Lolodomo](https://community.openhab.org/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@Lolodomo](https://community.openhab.org/u/Lolodomo)\
**Post date:** [February 15, 2021, 8:37am UTC](https://community.openhab.org/t/rotel-binding-function/100792/15 "2021-02-15T08:37:30Z")

</div>

Good news, the command is the same for all models using the most recent ASCII mode.  
I will propose a fix later today.

---

<div class="post-metadata">

**Author:** ![Scott\_Houston](https://community.openhab.org/user_avatar/community.openhab.org/scott_houston/32/55121_2.png) [@Scott\_Houston](https://community.openhab.org/u/Scott_Houston)\
**Post date:** [February 15, 2021, 10:09am UTC](https://community.openhab.org/t/rotel-binding-function/100792/16 "2021-02-15T10:09:02Z")

</div>

That’s great! Look forward to testing it out. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Lolodomo](https://community.openhab.org/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@Lolodomo](https://community.openhab.org/u/Lolodomo)\
**Post date:** [February 15, 2021, 11:39am UTC](https://community.openhab.org/t/rotel-binding-function/100792/17 "2021-02-15T11:39:56Z")

</div>

Fix proposed:

> <https://github.com/openhab/openhab-addons/pull/10165>
>
> Signed-off-by: Laurent Garnier \<lg.hc@free.fr\>

---

<div class="post-metadata">

**Author:** ![Scott\_Houston](https://community.openhab.org/user_avatar/community.openhab.org/scott_houston/32/55121_2.png) [@Scott\_Houston](https://community.openhab.org/u/Scott_Houston)\
**Post date:** [February 15, 2021, 9:28pm UTC](https://community.openhab.org/t/rotel-binding-function/100792/18 "2021-02-15T21:28:00Z")

</div>

Thanks very much Lolodomo. Very much appreciate you doing this so quickly.

Just to ask a very noob question – what is the process from here? Do I wait for an update to openhab versions to sweep up this fix?

Cheers.

---

<div class="post-metadata">

**Author:** ![Lolodomo](https://community.openhab.org/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@Lolodomo](https://community.openhab.org/u/Lolodomo)\
**Post date:** [February 15, 2021, 10:00pm UTC](https://community.openhab.org/t/rotel-binding-function/100792/19 "2021-02-15T22:00:32Z")

</div>

The review & merge should be fast (the change is very small), Then the next day you will get the fix in the nightly build.

---

<div class="post-metadata">

**Author:** ![Scott\_Houston](https://community.openhab.org/user_avatar/community.openhab.org/scott_houston/32/55121_2.png) [@Scott\_Houston](https://community.openhab.org/u/Scott_Houston)\
**Post date:** [February 16, 2021, 12:44am UTC](https://community.openhab.org/t/rotel-binding-function/100792/20 "2021-02-16T00:44:08Z")

</div>

Perfect, thanks.

---

<div class="post-metadata">

**Author:** ![Lolodomo](https://community.openhab.org/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@Lolodomo](https://community.openhab.org/u/Lolodomo)\
**Post date:** [February 17, 2021, 11:05am UTC](https://community.openhab.org/t/rotel-binding-function/100792/21 "2021-02-17T11:05:32Z")

</div>

Fix has now been merged. You should find it in next snapshot tomorrow morning (if the build succeeds).  
Take me informed, not in one year if possible.

[Next page](https://community.openhab.org/t/rotel-binding-function/100792.md?page=2)
