openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.71k forks source link

Implement Onkyo Binding for AV-Receivers #216

Closed openhab-bot closed 10 years ago

openhab-bot commented 10 years ago

From christop...@gmail.com on March 23, 2013 18:00:54

It would be great to power on/off Onkyos AV-Receivers.

Original issue: http://code.google.com/p/openhab/issues/detail?id=216

openhab-bot commented 10 years ago

From kai.openhab on March 24, 2013 13:07:58

You mean the models with an Ethernet interface? Simple functions should already be possible through the TCP-binding. I actually have a AVR with a serial port and I can control it through the serial binding.

openhab-bot commented 10 years ago

From teichsta on March 24, 2013 14:21:06

for Onkyo receivers there is also available the eISCP protocol (see https://sites.google.com/a/webarts.ca/toms-blog/Blog/new-blog-items/javaeiscp-integraserialcontrolprotocol ).

My TX-NR616 is pretty much waiting to be controlled by openHAB. So i'll volunteer as Beta-Tester :-) (at least)

Status: Accepted
Owner: teichsta

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on April 18, 2013 12:33:55

Just committed initial version of the Onkyo binding on my clone.

It's tested with Onkyo TX-NR818 model.

Usage:

openhab.cfg: onkyo:hometheater.host=192.168.1.10 onkyo:hometheater.port=60128

item config: Switch onkyoPower {onkyo="ON:hometheater:POWER_ON, OFF:hometheater:POWER_OFF"} Dimmer onkyoVolume {onkyo="INCREASE:hometheater:VOLUME_UP, DECREASE:hometheater:VOLUME_DOWN"}

openhab-bot commented 10 years ago

From teichsta on April 18, 2013 13:23:27

WAAAAH COOL :-)

Will Review after GeeCON latest - since there is much work to do!

THANKS for pushing this issue ...

Labels: -Version-later Version-1.3.0

openhab-bot commented 10 years ago

From teichsta on May 07, 2013 08:48:11

Summary: Implement Onkyo Binding fpr AV-Receivers (was: Onkyo binding fpr AV-Receivers)

openhab-bot commented 10 years ago

From honkton...@gmail.com on May 07, 2013 10:56:37

I'd like to test this tomorrow with TX-NR616. However, I could not find the compiled add-on.

Is this available somewhere? Pauli, could you attach it?

Thank you very much anyway :)

openhab-bot commented 10 years ago

From teichsta on May 07, 2013 13:25:40

Summary: Implement Onkyo Binding for AV-Receivers (was: Implement Onkyo Binding fpr AV-Receivers)

openhab-bot commented 10 years ago

From honkton...@gmail.com on May 16, 2013 06:01:58

So, is there any news on this? May someone please push/attach a compiled addon?

Thx

openhab-bot commented 10 years ago

From hlw31...@gmail.com on May 17, 2013 00:40:43

So, I finally got to compile the addon myself just to find my TX-NR616 to NOT support the eISCP protocol :-(

Maybe other users want to try their Onkyo with openhab, so I attached the compiled addon for testing.

Attachment: org.openhab.binding.onkyo_1.3.0.201305162137.jar

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on May 17, 2013 09:51:10

eISCP protocol spec v1.21 from year 2011 defines commands for TX-NR509/TX-NR609/TX-NR709/TX-NR809/... (previous models). So it's hard t believe that Onkyo has drop the eISCP support from TX-NR616 series.

openhab-bot commented 10 years ago

From honkton...@gmail.com on May 17, 2013 23:33:34

You're right-I was blinded by a portscan and the non-functioning onkyo-binding :-( The port is hidden when scanned:

sascha@wandboard:~$ nmap onkyo Starting Nmap 5.21 ( http://nmap.org ) at 2013-05-18 08:32 CEST Nmap scan report for onkyo (10.0.0.40) Host is up (0.029s latency). rDNS record for 10.0.0.40: Onkyo.fritz.box Not shown: 997 closed ports PORT STATE SERVICE 23/tcp filtered telnet 80/tcp open http 8888/tcp open sun-answerbook

Thanks for your comment :)

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on May 21, 2013 07:30:59

Non functioning onkyo binding? Do you have problems with the binding itself?

openhab-bot commented 10 years ago

From honkton...@gmail.com on May 21, 2013 13:35:36

Update: I can power ON/OFF successfully but volume is not working with "osgi> openhab send onkyoVolume 35 22:31:40.790 WARN o.o.b.o.internal. OnkyoBinding [:88] - Doesn't find matching binding provider [itemName=onkyoVolume, command=35] 22:31:40.798 INFO runtime.busevents[:42] - onkyoVolume received command 35 Command has been sent successfully."

Sending INCREASE or DECREASE commands returns successful, however nothing happens.

TR616 with Firmware 2013-04-11

openhab-bot commented 10 years ago

From teichsta on May 21, 2013 14:38:03

Status: Started

openhab-bot commented 10 years ago

From teichsta on May 21, 2013 14:57:06

Pauli, if've pushed your initial version to the default branch. Thank you very much for this contribution. As you will see i refactored the Eiscp protocol class to make it more readable. Since i am not at home at the home. Could you try with tomorrows daily build if still everything is working?

Pauli, could you also please add the Wiki-documentation for your new binding ( http://code.google.com/p/openhab/wiki/OnkyoBinding)? Thanks again for your contribution! And keep coding for openHAB ;-)

openhab-bot commented 10 years ago

From hlw31...@gmail.com on May 22, 2013 01:53:21

@15: Thanks for adding it to default. I hope more people are then testing and giving feedback :)

@Pauli: I added a hack to send plain volume to the receiver. On this way I stumbled over a bug inside eiscp's getVolumeCmdStr function which affected low volumes.

On the group, I asked for help on how to check my changes in ;-)

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on May 29, 2013 13:07:54

Wiki page added

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on May 30, 2013 09:36:13

Because not all Onkyo commands are currently supported, I tested one idea to improve the support.

1) added wildcard (*) support 2) Added advanced command support to send any kind of eISCP commands. Advanced command start with # character. Command itself is a direct eISCP command + Java String.formatted openhab command value (e.g. %02X).

example 1:

Dimmer volume { onkyo="INCREASE:hometheater:VOLUME_UP, DECREASE:hometheater:VOLUME_DOWN, *:hometheater:#MVL%02X" }

openhab send volume INCREASE -> binding send VOLUME_UP (eISCP command=MVLUP) openhab send volume DECREASE -> binding send VOLUME_DOWN (eISCP command=MVLDOWN) openhab send volume 30 -> binding send eISCP command MVL1E (set volume level to 30)

example 2: Number zone4Selector { onkyo=":hometheater:#SL4%02X" } example 3: Switch onkyoPower { onkyo=":hometheater:#PWR%02X" }

So whit this improvement, all eISCP commands should be supported.

User perceptive advanced command is not so easy to use, but least there a way to support most of the commands now and the future.

openhab-bot commented 10 years ago

From hlw31...@gmail.com on June 12, 2013 03:55:32

Is the latest change with wildcard already pulled from Pauli's repo?

I just tested with snapshot #423 and this config: Dimmer onkyoVol { onkyo="INCREASE:amp:VOLUME_UP, DECREASE:amp:VOLUME_DOWN, *:amp:#MVL%02X" }

results in: 12:54:01.724 ERROR o.o.m.i.i.GenericItemProvider[:226] - Binding information of type 'onkyo' for item ‘onkyoVol‘ could not be parsed correctly. org.openhab.model.item.binding.BindingConfigParseException: Unregonized command '#MVL%02X' at org.openhab.binding.onkyo.internal.OnkyoGenericBindingProvider.parseBindingConfig(OnkyoGenericBindingProvider.java:130) at org.openhab.binding.onkyo.internal.OnkyoGenericBindingProvider.parseBindingConfig(OnkyoGenericBindingProvider.java:135) at org.openhab.binding.onkyo.internal.OnkyoGenericBindingProvider.parseBindingConfig(OnkyoGenericBindingProvider.java:135) at org.openhab.binding.onkyo.internal.OnkyoGenericBindingProvider.processBindingConfiguration(OnkyoGenericBindingProvider.java:106) at org.openhab.model.item.internal.GenericItemProvider.dispatchBindings(GenericItemProvider.java:224) at org.openhab.model.item.internal.GenericItemProvider.getItems(GenericItemProvider.java:137) at org.openhab.core.internal.items.ItemRegistryImpl.allItemsChanged(ItemRegistryImpl.java:226) at org.openhab.model.item.internal.GenericItemProvider.modelChanged(GenericItemProvider.java:270) at org.openhab.model.core.internal.ModelRepositoryImpl.notifyListeners(ModelRepositoryImpl.java:176) at org.openhab.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:117) at org.openhab.model.core.internal.folder.FolderObserver.checkFolder(FolderObserver.java:162)

Cheers

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on June 12, 2013 06:46:49

Advanced command is not yet merged to main repo.

I have improved binding since advanced command. Now binding also listening status updates from receiver and there is init command support, which can be used to query current value on startup.

Some test items:

Switch onkyoPower1 { onkyo="ON:hometheater:POWER_ON, OFF:hometheater:POWEROFF" } Switch onkyoPower2 { onkyo="INIT:hometheater:#PWRQSTN, :hometheater:#PWR%02X" } Dimmer onkyoVolume { onkyo="INCREASE:hometheater:VOLUME_UP, DECREASE:hometheater:VOLUME_DOWN, :hometheater:#MVL%02X" } Dimmer onkyoVolume2 { onkyo="INIT:hometheater:VOLUME_QUERY, INCREASE:hometheater:VOLUME_UP, DECREASE:hometheater:VOLUME_DOWN, :hometheater:SETVOLUME" } Switch onkyoMute { onkyo=":hometheater:#AMT%02X" } Switch onkyoMute2 { onkyo="ON:hometheater:MUTE, OFF:hometheater:UNMUTE" }

Code is already available on my clone ("onkyo binding mods" branch). Code is pretty much complete, but I want tested little bit more before merge changes to main clone branch.

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on June 12, 2013 11:04:25

Onkyo binding for testing purposes

Attachment: org.openhab.binding.onkyo-1.3.0-SNAPSHOT.jar

openhab-bot commented 10 years ago

From teichsta on June 12, 2013 23:41:07

thanks for this update!

openhab-bot commented 10 years ago

From teichsta on June 18, 2013 10:34:00

can anybody confirm the new functionality is working?

Could then merge changes to default branch ...

openhab-bot commented 10 years ago

From honkton...@gmail.com on June 18, 2013 12:42:30

I verifyed and it's working great with my TX-NR616. However - I'd like the status update to be configured to be scheduled like 'check power state every 5 seconds' rather than only on startup. If my wife turns the thing on with remote/power button openhab won't notice :(

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on June 18, 2013 13:12:31

Binding is listening status updates from receiver all the time, so item state should be changed immediately when state is changed on receiver (receiver will send an status update to binding). Startup query is just for synchronise current state from the receiver.

Example. If you change volume via remote control, openhab item should be updated automatically as well.

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on June 18, 2013 13:21:04

And I forgot the say, that power state should be updated as well. At least for me it working nicely. If I power on the receiver via power button or via remote, openhab item state is immediately updated to correct state.

openhab-bot commented 10 years ago

From honkton...@gmail.com on June 18, 2013 13:27:00

You're right - power state updates just fine.

But when powered on, I get this every 5 seconds: 22:24:00.716 ERROR o.o.b.o.internal.eiscp.Eiscp[:578] - Error occured during message waiting java.io.IOException: Illegal start char at org.openhab.binding.onkyo.internal.eiscp.Eiscp.waitStateMessages(Eiscp.java:485)

My items are defined like this: Switch onkyoPower { onkyo="ON:amp:POWER_ON, OFF:amp:POWER_OFF, INIT:amp:#PWRQSTN" } Switch onkyoMute { onkyo="ON:amp:MUTE, OFF:amp:UNMUTE" } Dimmer onkyoVol { onkyo="INCREASE:amp:VOLUME_UP, DECREASE:amp:VOLUME_DOWN, *:amp:#MVL%02X" }

What's the sense behind splitting power into two items?

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on June 18, 2013 13:43:51

hmmm...binding is receiving something is not recognised by the binding. Every ISCP message should start with ! character, if not "illegal start char" exceptions is thrown.

Could you run openhab with debug prints and attach a log file here?

What do you mean by splitting power into two items?

openhab-bot commented 10 years ago

From honkton...@gmail.com on June 18, 2013 20:39:51

Seems like I had a mixed-up runtime. I just restartet openhab several times and testing now shows it's working like expected. Running in debug I get this when power state is changed: 05:33:03.258 DEBUG o.o.b.o.internal.eiscp.Eiscp[:557] - Received status message: PWR01 05:33:03.259 DEBUG o.o.b.o.internal. OnkyoBinding [:346] - Received status update 'PWR01' from device 10.0.0.40

No more Illegal start char :) Maybe the distribution bundle was not completely uninstalled - I don't know.

Concerning "two power items": You demo items in #20 split commands to device and power state into two items (onkyoPower1 & onkyoPower2). I understood it this way: You need to seperate commands and status into two items. However, testing shows this is not needed.

Thanks for this great bundle! Btw, is there a way to specify "play this streaming url" like some internet radio url? Would be great to hear my favorite radio when coming home and my wife gets hers ;)

openhab-bot commented 10 years ago

From honkton...@gmail.com on June 19, 2013 10:41:46

Well, seems to be having a bug after some time: Today, I powered on the AVR and openhab did not get it. I checked the console and found 19:40:10.506 ERROR o.o.b.o.internal.eiscp.Eiscp[:578] - Error occured during message waiting java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:134)

openhab-bot commented 10 years ago

From honkton...@gmail.com on June 19, 2013 12:33:54

Appendix for #30: My AVR had network problems. Connecting to it via Onkyo-App for Android was also not possible. So no chance for the binding either.

However, recovering did not cause the binding to recover. Even stopping it on the console did not stop the Eiscp failures to disappear. Restarting openhab restored a stable state. Maybe the binding needs to correctly stop the eiscp depency?

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on June 20, 2013 07:14:53

I was able to reproduce the problem by unplugging the the receiver power plug.

Now connection is reopened when any error occurs. eiscp listener thread is also stopped correctly during binding shutdown.

Attachment: org.openhab.binding.onkyo-1.3.0-SNAPSHOT.jar

openhab-bot commented 10 years ago

From honkton...@gmail.com on June 20, 2013 11:51:16

This may be the source of the problem: I turn off power to the AVR when absent. Tested your attachment but got error: Situation: AVR turned on, OH freshly started: 20:35:53.128 ERROR o.o.b.o.internal.eiscp.Eiscp[:595] - Error occured during message waiting java.io.IOException: Illegal start char N at org.openhab.binding.onkyo.internal.eiscp.Eiscp.waitStateMessages(Eiscp.java:498)

also sending command does not work in this state. Restarting the onkyo-binding fixed it.

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on June 20, 2013 12:12:26

Please run OH with debug level enabled, reproduce the problem and send log file to me.

openhab-bot commented 10 years ago

From honkton...@gmail.com on June 20, 2013 13:07:43

I could reproduce the (appearently same) error by fast power on and off. Please see the attached logfile. AVR had power when OH was started.

Attachment: debug.log.gz

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on June 21, 2013 03:34:09

It seems that binding is receiving junk from the receiver. Binding tries to reopen connection, but still some junk is received. After a while, receiver rejects the connection (Verbindungsaufbau abgelehnt). I improved tracing of the binding, so could you rerun ones again?

You need to change onkyo binding log level to trace.

Add line

to openhab-folder/Configuration/logback_debug.xml

Attachment: org.openhab.binding.onkyo-1.3.0-SNAPSHOT.jar

openhab-bot commented 10 years ago

From honkton...@gmail.com on June 21, 2013 11:49:52

Here's the right trace. Got mixed up but now its correct. Thanks for pointin out, Pauli :)

Attachment: debug.log.gz

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on June 23, 2013 02:58:12

Hopefully the problem is now fixed. Your receiver didn't send junk, but album cover picture.

Attachment: org.openhab.binding.onkyo-1.3.0-SNAPSHOT.jar

openhab-bot commented 10 years ago

From honkton...@gmail.com on June 23, 2013 10:36:05

So far I only got this error: 19:32:55.214 ERROR o.o.b.o.internal.eiscp.Eiscp[:487] - Error occured during message waiting java.io.IOException: Unexpedted data size at org.openhab.binding.onkyo.internal.eiscp.Eiscp.waitStateMessages(Eiscp.java:372)

I tried to reconstruct when the error occured, but I was unable to do so.

But it seems to recover fine when power is restored and overall very stable :)

openhab-bot commented 10 years ago

From honkton...@gmail.com on June 29, 2013 05:01:09

Well, too soon to say it's all good. If the AVR is disconnected for too long (>5Minutes), the bundle doesn't recover even when new commands (power on) are sent to the items.

Maybe a reconnect on error may solve this. I also tried to send command on reconnect with networkhealth binding to recover but it won't :(

So current workaround is to restart when avr is back on.

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on June 30, 2013 00:39:12

It's pretty difficult to fix/change anything without reproducing the problem. You should send debug logs to give more information about the problem.

Have you enabled avr network standby mode? Your problem seems to be related to unreliable connection between openhab and avr (broken TCP connection) rather than binding itself.

Anyhow...I added command resend functionality which close and reopen the connection when problem occurs during command send and also added connection supervisor, which query arv power state ones per 5 minutes to detect broken tcp connection.

Attachment: org.openhab.binding.onkyo-1.3.0-SNAPSHOT.jar

openhab-bot commented 10 years ago

From honkton...@gmail.com on July 01, 2013 20:41:23

Thanks for your patience, Pauli. Your version from #42 works just right THUMBS UP

openhab-bot commented 10 years ago

From dongy...@gmail.com on July 05, 2013 11:39:48

Hi Pauli,

I tried today your attached version from #42. Before I used the official version from the 1.3 snapshot build. Now I see the following error in my logfile. Any idea what this could be?

19:25:22.675 DEBUG o.o.b.o.internal.eiscp.Eiscp[:145]- Connected to 192.168.0.7 on port 60128 19:25:22.684 DEBUG o.o.b.o.internal.eiscp.Eiscp[:557]- Start connection tester, interval 300 seconds 19:25:22.685 DEBUG o.o.b.o.internal.eiscp.Eiscp[:493]- Data listener started 19:25:22.717 TRACE o.o.b.o.internal.eiscp.Eiscp[:347]- Waiting status messages

19:30:22.715 DEBUG o.o.b.o.internal.eiscp.Eiscp[:570]- Test connection to 192.168.0.7:60128 19:30:22.716 DEBUG o.o.b.o.internal.eiscp.Eiscp[:281]- Send command: PWRQSTN 19:30:22.735 TRACE o.o.b.o.internal.eiscp.Eiscp[:310]- Sending 26 bytes: 49534350000000100000001A0100000021315057525153544E0D 19:30:22.781 TRACE o.o.b.o.internal.eiscp.Eiscp[:367]- Received 25 bytes: 49534350000000100000000901000000213150575230301A0D 19:30:22.782 TRACE o.o.b.o.internal.eiscp.Eiscp[:378]- Packet [0]: 19:30:22.783 TRACE o.o.b.o.internal.eiscp.Eiscp[:396]- Header size: 16 19:30:22.785 TRACE o.o.b.o.internal.eiscp.Eiscp[:409]- Data size: 9 19:30:22.837 ERROR o.o.b.o.internal.eiscp.Eiscp[:527]- Error occured during message waiting java.io.IOException: Illegal end of message at org.openhab.binding.onkyo.internal.eiscp.Eiscp.waitStateMessages(Eiscp.java:452) at org.openhab.binding.onkyo.internal.eiscp.Eiscp.access$1(Eiscp.java:340) at org.openhab.binding.onkyo.internal.eiscp.Eiscp$DataListener.run(Eiscp.java:498) 19:30:22.839 DEBUG o.o.b.o.internal.eiscp.Eiscp[:530]- Reconnecting... 19:30:22.843 DEBUG o.o.b.o.internal.eiscp.Eiscp[:145]- Connected to 192.168.0.7 on port 60128 19:30:23.845 TRACE o.o.b.o.internal.eiscp.Eiscp[:347]- Waiting status messages

And this Is how my Items file looks like:

Switch onkyoPower "Zone 1 Power" <'grey/control_on_off'>{onkyo="ON:hometheater:POWER_ON, OFF:hometheater:POWER_OFF"} Dimmer onkyoVolume2 "Vol 1 [%.1f]" <'grey/audio_volume_high'> { onkyo="INIT:hometheater:VOLUME_QUERY, INCREASE:hometheater:VOLUME_UP, DECREASE:hometheater:VOLUME_DOWN, *:hometheater:SET_VOLUME" } Dimmer onkyoVolume "Vol 2 [%.1f]" <'grey/audio_volume_high'> {onkyo="INIT:hometheater:#MVLQSTN, INCREASE:hometheater:VOLUME_UP, DECREASE:hometheater:VOLUME_DOWN"}

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on July 05, 2013 12:18:38

eISCP spec specify that every data should be end to "[EOF]" or "[EOF][CR]" or "[EOF][CR][LF]" characters depend on model. I have tried to implemented binding so that all 3 different variations should be supported, but it seems that I have not succeeded :(

Which AVR model are you using? My model always response data which end with "[EOF][CR][LF]"

21:46:42.755 TRACE o.o.b.o.internal.eiscp.Eiscp[:367] - Received 26 bytes: 49534350000000100000000A01000000213150575230301A0D0A

I try to fixit it near future, but feel free to provide a batch :) Bug is probably between lines 437 - 462 on the file http://code.google.com/r/paulianttila-ihc-binding/source/browse/bundles/binding/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/eiscp/Eiscp.java

openhab-bot commented 10 years ago

From dongy...@gmail.com on July 05, 2013 12:32:14

I'm using the Onkyo TX-NR 905 (as you see this is not one of the latest models :-)). Will check the class and see if I can fix it.

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on July 06, 2013 01:25:12

New binding for testing purposes.

Changes:

End character fix was bigger than I expected, so I kindly ask all of you to test the latest version and report any problems.

Attachment: org.openhab.binding.onkyo-1.3.0-SNAPSHOT.jar

openhab-bot commented 10 years ago

From christop...@gmail.com on July 06, 2013 09:45:09

I got an error while playing with the binding. My MasterZone was turned of for about 1-2h. Zone2 played webradio during that time. I turned on the MasterZone and received many information via eiscp:

[..] 18:32:32.144 DEBUG o.o.b.o.internal.eiscp.Eiscp[:521] - Received 1 messages 18:32:32.144 DEBUG o.o.b.o.internal.eiscp.Eiscp[:525] - Received status message: NLSU1-Last.fm Internet Radio 18:32:32.145 DEBUG o.o.b.o.internal. OnkyoBinding [:349] - Received status update 'NLSU1-Last.fm Internet Radio' from device 192.168.1.18 [..] 18:32:34.655 DEBUG o.o.b.o.internal.eiscp.Eiscp[:525] - Received status message: NJA01F5F5F5F5F5F5F5F5F5F5F5F5F5F5[ --snip --] F5F5F5F5F5F5F5F5AFF5 18:32:34.655 DEBUG o.o.b.o.internal. OnkyoBinding [:349] - Received status update 'NJA01F5F5F5F5F5F5F5F5F5F5F5F5F5F5[ --snip --] F5F5F5F5F5F5F5F5AFF5' from device 192.168.1.18 [many more of this long kind of messages]

Error occures: 18:32:34.710 ERROR o.o.b.o.internal.eiscp.Eiscp[:548] - Error occured during message waiting java.lang.ArrayIndexOutOfBoundsException: 812 at org.openhab.binding.onkyo.internal.eiscp.Eiscp.waitStateMessages(Eiscp.java:461) at org.openhab.binding.onkyo.internal.eiscp.Eiscp.access$1(Eiscp.java:340) at org.openhab.binding.onkyo.internal.eiscp.Eiscp$DataListener.run(Eiscp.java:519) 18:32:34.711 DEBUG o.o.b.o.internal.eiscp.Eiscp[:551] - Reconnecting... 18:32:34.714 DEBUG o.o.b.o.internal.eiscp.Eiscp[:145] - Connected to 192.168.1.18 on port 60128

I tried some commands: 18:32:38.917 INFO runtime.busevents[:42] - onkyoMute received command ON 18:32:38.917 DEBUG o.o.b.o.internal. OnkyoBinding [:129] - Received command (item='onkyoMute', state='ON', class='class org.openhab.core.library.types.OnOffType') 18:32:38.918 DEBUG o.o.b.o.internal.eiscp.Eiscp[:281] - Send command: AMT01 18:32:52.341 INFO runtime.busevents[:42] - onkyoMute received command OFF 18:32:52.341 DEBUG o.o.b.o.internal. OnkyoBinding [:129] - Received command (item='onkyoMute', state='OFF', class='class org.openhab.core.library.types.OnOffType') but nothing happens.

I don't get any updates from the avr anymore.

After restarting openhab, everything works again.

openhab-bot commented 10 years ago

From dongy...@gmail.com on July 06, 2013 12:25:30

Thanks for the fast update Pauli. I already merged yesterday the version from your clone with my workspace version in order to try to fix the end character problem. Good that I checked my mails to see that you already provided the bug fix :-) First tests looks promising. Will do some more detailed test and report back to you.

openhab-bot commented 10 years ago

From pauli.an...@gmail.com on July 11, 2013 00:09:04

Updated binding for nightly builds after Jul 8 (fixed issue 141 ).

Christoph: Enable trace logs to Onkyo binding and try to reproduce the problem and send full log to me.

Attachment: org.openhab.binding.onkyo-1.3.0-SNAPSHOT.jar

openhab-bot commented 10 years ago

From christop...@gmail.com on July 11, 2013 10:41:18

I am not sure if it is the same problem, but I got some errors and lost the connection to my avr while I tried to recreate the situation. :)

I just opened "My Favorites" within the Onkyo-Android-App. http://pastebin.com/Rt39NMLj