Alpha4 is not the latest version please have a look at the pull request on github, the latest version is provided as a jar in the comments. The port issue and several other issues have been fixed.
Cheers David
Alpha4 is not the latest version please have a look at the pull request on github, the latest version is provided as a jar in the comments. The port issue and several other issues have been fixed.
Cheers David
Hah! Just downloaded the latest version I think (beta 4) and will begin testing later today. Iāll let you know how it goes.
-m
Ok, on the Beta4 version. The binding creates a parent device and once I accept the parent, I get 2 child devices, one for my main zone and the second for zone 2. Iām assuming thatās normal behavior. I am still having a problem when specifying the receiver input.
I can change the input and the receiver will change to the correct input, but when I check the log I see the following error. I think this error is also causing the input not to be displayed in the UI.
2017-02-20 08:43:40.940 [ERROR] [eiver.handler.YamahaZoneThingHandler] - Expected inputID. Failed to read Input/Input_Sel_Item_Info/Src_Name
2017-02-20 08:43:40.941 [ERROR] [receiver.handler.YamahaBridgeHandler] - Channel input not supported!
Also, the first line of the above error is repeated in the the log every minute.
If I reload openhab2 by issuing the āservice openhab2 restartā from the OS the parent Thing never gets beyond
Status: INITIALIZING
and the two children Things (Main and Zone2) show
Status: UNINITIALIZED - HANDLER_MISSING_ERROR
and I have no communication with my receiver.
Iāve deleted all three things and re-added them, and I get the exact same behavior.
Any thought on what could be going wrong (hopefully I have the latest version )
-m
Are there errors in the log while the root device is stuck in the initializing? That shouldnāt happen. You may need to adjust the log level to debug to see all messages.
The inputid thing is known and going to be fixed in a next release. It puts the zones offline but control still worked for other testers.
Thanks for your testing.
Cheers David
I set the log level to DEBUG and restarted openhab, no additional error messages
I removed the parent and child Things and re-add three things I get the following errors
2017-02-20 13:51:40.353 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'yamahareceiver:yamahaAV:5f9ec1b3_ed59_1900_4530_00a0de94aa1a' to inbox.
2017-02-20 13:51:54.339 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'yamahareceiver:zone:5f9ec1b3_ed59_1900_4530_00a0de94aa1a:Main_Zone' to inbox.
2017-02-20 13:51:54.345 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'yamahareceiver:zone:5f9ec1b3_ed59_1900_4530_00a0de94aa1a:Zone_2' to inbox.
2017-02-20 13:52:34.270 [ERROR] [eiver.handler.YamahaZoneThingHandler] - Expected inputID. Failed to read Input/Input_Sel_Item_Info/Src_Name
2017-02-20 13:52:34.282 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occured while informing handler:null
java.lang.NullPointerException
at org.openhab.binding.yamahareceiver.handler.YamahaZoneThingHandler.refreshFromState(YamahaZoneThingHandler.java:353)[208:org.openhab.binding.yamahareceiver:2.1.0.ref-beta4]
at org.openhab.binding.yamahareceiver.handler.YamahaZoneThingHandler.handleCommand(YamahaZoneThingHandler.java:158)[208:org.openhab.binding.yamahareceiver:2.1.0.ref-beta4]
at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:207)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.informHandlerAboutLinkedChannel(ThingLinkManager.java:264)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.receiveTypedEvent(ThingLinkManager.java:304)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.receiveTypedEvent(ThingLinkManager.java:1)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.events.AbstractTypedEventSubscriber.receive(AbstractTypedEventSubscriber.java:50)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:192)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:1)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:181)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
2017-02-20 13:52:34.297 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occured while informing handler:null
java.lang.NullPointerException
at org.openhab.binding.yamahareceiver.handler.YamahaZoneThingHandler.refreshFromState(YamahaZoneThingHandler.java:356)[208:org.openhab.binding.yamahareceiver:2.1.0.ref-beta4]
at org.openhab.binding.yamahareceiver.handler.YamahaZoneThingHandler.handleCommand(YamahaZoneThingHandler.java:158)[208:org.openhab.binding.yamahareceiver:2.1.0.ref-beta4]
at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:207)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.informHandlerAboutLinkedChannel(ThingLinkManager.java:264)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.receiveTypedEvent(ThingLinkManager.java:304)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.receiveTypedEvent(ThingLinkManager.java:1)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.events.AbstractTypedEventSubscriber.receive(AbstractTypedEventSubscriber.java:50)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:192)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:1)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:181)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
2017-02-20 13:52:34.313 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occured while informing handler:null
java.lang.NullPointerException
at org.openhab.binding.yamahareceiver.handler.YamahaZoneThingHandler.refreshFromState(YamahaZoneThingHandler.java:359)[208:org.openhab.binding.yamahareceiver:2.1.0.ref-beta4]
at org.openhab.binding.yamahareceiver.handler.YamahaZoneThingHandler.handleCommand(YamahaZoneThingHandler.java:158)[208:org.openhab.binding.yamahareceiver:2.1.0.ref-beta4]
at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:207)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.informHandlerAboutLinkedChannel(ThingLinkManager.java:264)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.receiveTypedEvent(ThingLinkManager.java:304)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.receiveTypedEvent(ThingLinkManager.java:1)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.events.AbstractTypedEventSubscriber.receive(AbstractTypedEventSubscriber.java:50)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:192)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:1)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:181)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
2017-02-20 13:52:34.329 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occured while informing handler:null
java.lang.NullPointerException
at org.openhab.binding.yamahareceiver.handler.YamahaZoneThingHandler.refreshFromState(YamahaZoneThingHandler.java:362)[208:org.openhab.binding.yamahareceiver:2.1.0.ref-beta4]
at org.openhab.binding.yamahareceiver.handler.YamahaZoneThingHandler.handleCommand(YamahaZoneThingHandler.java:158)[208:org.openhab.binding.yamahareceiver:2.1.0.ref-beta4]
at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:207)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.informHandlerAboutLinkedChannel(ThingLinkManager.java:264)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.receiveTypedEvent(ThingLinkManager.java:304)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.receiveTypedEvent(ThingLinkManager.java:1)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.events.AbstractTypedEventSubscriber.receive(AbstractTypedEventSubscriber.java:50)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:192)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:1)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:181)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
2017-02-20 13:52:36.487 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate command 'OFF' for item 'AV_GF_Yamaha_Pzone2' to handler for channel 'yamahareceiver:zone:5f9ec1b3_ed59_1900_4530_00a0de94aa1a:Zone_2:zone_channels#power', because no thing with the UID 'yamahareceiver:zone:5f9ec1b3_ed59_1900_4530_00a0de94aa1a:Zone_2' could be found.
2017-02-20 13:52:36.491 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update 'OFF' for item 'AV_GF_Yamaha_Pzone2' to handler for channel 'yamahareceiver:zone:5f9ec1b3_ed59_1900_4530_00a0de94aa1a:Zone_2:zone_channels#power', because no thing with the UID 'yamahareceiver:zone:5f9ec1b3_ed59_1900_4530_00a0de94aa1a:Zone_2' could be found.
2017-02-20 13:52:53.867 [ERROR] [eiver.handler.YamahaZoneThingHandler] - Expected inputID. Failed to read Input/Input_Sel_Item_Info/Src_Name
2017-02-20 13:53:35.808 [ERROR] [eiver.handler.YamahaZoneThingHandler] - Expected inputID. Failed to read Input/Input_Sel_Item_Info/Src_Name
at this point I can control the receiver. If I restart openhab again the parent Thing is stuck initializing and I can no longer control the receiver.
Thanks for looking into this.
-m
Please test a fixed version, I appended a jar to the pull request.
Hopefully the exception you encountered is gone which made your Yamaha thing unusable for the OH framework.
Do you configure your items in text files or via PaperUI? Because the āinputā channel cannot be bound to the Yamaha thing. Instead bind it to a Zone thing, because each zone can be on a different input (like main on HDMI and zone2 on RADIO).
Cheers, David
Thank you for the update. My first couple of attempts were unsuccessful in that I the parent device was stuck in the initializing state. On my third try (delete things from PaperUI and restart openHab) I added the Parent thing and it immediately came online.
I loaded the Main zone (again through PaperUI) and recieved the following error
2017-02-21 21:09:00.742 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occured while informing handler:null
java.lang.NullPointerException
at org.openhab.binding.yamahareceiver.handler.YamahaZoneThingHandler.refreshFromState(YamahaZoneThingHandler.java:372)[210:org.openhab.binding.yamahareceiver:2.1.0.ref-rc1]
at org.openhab.binding.yamahareceiver.handler.YamahaZoneThingHandler.handleCommand(YamahaZoneThingHandler.java:174)[210:org.openhab.binding.yamahareceiver:2.1.0.ref-rc1]
at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:207)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.informHandlerAboutLinkedChannel(ThingLinkManager.java:264)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.receiveTypedEvent(ThingLinkManager.java:304)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.thing.link.ThingLinkManager.receiveTypedEvent(ThingLinkManager.java:1)[110:org.eclipse.smarthome.core.thing:0.9.0.201702171712]
at org.eclipse.smarthome.core.events.AbstractTypedEventSubscriber.receive(AbstractTypedEventSubscriber.java:50)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:192)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:1)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:181)[103:org.eclipse.smarthome.core:0.9.0.201702171712]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
The Main_Zone thing is online. I added the Zone2 thing and it also appears online. At this point the items that Iāve configured (through text file) are working. Those items do refer to the Zone Thing.
I do see the following error in my log file
2017-02-21 21:15:33.977 [ERROR] [receiver.handler.YamahaBridgeHandler] - Channel volume not supported!
2017-02-21 21:15:43.744 [ERROR] [receiver.handler.YamahaBridgeHandler] - Channel input not supported!
but the volume and input seems to change as expected.
As a last test I decided to restart openhab and see if the binding continues to work. Unfortunately it does not. The parent Thing is stuck initializing. When it worked it worked beautifullyā¦
Let me know if you have any suggestions. Also Iām running snapshot #804 in case that matters.
Thanks!
-m
I have provided a new rc2 build. Everyone please test with this one, especially the bridge/zone offline problem should be fixed now.
Cheers, David
Great! I can connect to the binding and the zone control functions all work. All things remain present after openHab restarts.
I do see the following error in the log but it doesnāt seem to impact function.
2017-02-26 21:42:25.299 [ERROR] [receiver.handler.YamahaBridgeHandler] - Channel volume not supported on the yamaha device directly! Try with the zone things instead.
2017-02-26 21:44:40.208 [ERROR] [receiver.handler.YamahaBridgeHandler] - Channel input not supported on the yamaha device directly! Try with the zone things instead.
All my items are bound to the Zone things.
Iāve only just started to experiment with the remaining channels in the binding and I can report that the āAlbum, Title, and Artistā channels work for USB input, but not for AirPlay. Iāll spend some more time testing the remaining channels this week.
Thanks!
First. Thanks for all the work.
Iām running the 2.1 snapshot with the org.openhab.binding.yamahareceiver_2.1.0.ref-rc4.jar file. Iām able to control both zones but Iām having issues some of the input sources. Iām not able to change either zone
to any of the HDMI sources. I will continue to test and see if I can provide more details.
Thanks
Sean
Hi Sean,
Can you tell me exactly how you got to that point? I donāt have as much luck on my 2.1 snapshot + manually installing 2.1.0.ref.-rc4.jar. Can you explain the steps you took? If I manage to get any further, Iāll try the HDMI connections myself.
This is what I currently see after discovering and adding the thing:
I need to try the latest binding. 2.1.0 gave me the Zone2 issues everyone was having with my RX10** series. Whatās the version number and direct link to the binding? Already purged the stock via Paper and ready to wget the new one into the addons folder.
It will be released with OH 2.2 or the snapshot version
Iām using the Yamahareceiver binding for my RX-V675 for quite a long time, Iām using is to control 2 zones independently from each other and is works perfectly.
A few weeks ago I bought a HTR-4096, I want to use this receiver also with 2-zones. I can control 2 zones using the Yamaha-app on my phone. Controlling the āMain Zoneā in OH2 works without any problem, but I cannot let āZone 2ā do anything.
Iām running the 2.2.0.SNAPSHOT yamahareceiver-binding.
Iād like to configure OH outside PaperUI, so I use yamahareceiver.things:
Bridge yamahareceiver:yamahaAV:ReceiverID "Yamaha Receiver Bridge Name" [HOST="10.0.1.22"] {
Thing zone ZoneID1 "Main Zone Thing Name" @ "location" [ZONE="Main_Zone"]
Thing zone ZoneID2 "Zone 2 Thing Name" @ "location" [ZONE="Zone_2"]
}
default.items:
Switch AU_Firstfloor_MainZone_Power "Power MainZone[%s]" <switch> { channel="yamahareceiver:zone:ReceiverID:ZoneID1:zone_channels#power" }
Switch AU_Firstfloor_Zone2_Power "Power Zone2 [%s]" <switch> { channel="yamahareceiver:zone:ReceiverID:ZoneID2:zone_channels#power" }
When I try to control AU_Firstfloor_Zone2_Power, Iām getting the next errors:
16:59:30.960 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'AU_Firstfloor_Zone2_Power' received command OFF
16:59:30.981 [INFO ] [smarthome.event.ItemStateChangedEvent] - AU_Firstfloor_Zone2_Power changed from ON to OFF
16:59:31.088 [DEBUG] [ceiver.handler.YamahaZoneThingHandler] - Parse error!
org.openhab.binding.yamahareceiver.internal.protocol.ReceivedMessageParseException: Expected inputID. Failed to read Input/Input_Sel_Item_Info/Src_Name
at org.openhab.binding.yamahareceiver.internal.protocol.xml.ZoneControlXML.update(ZoneControlXML.java:179) [210:org.openhab.binding.yamahareceiver:2.2.0.201712121107]
at org.openhab.binding.yamahareceiver.internal.protocol.xml.ZoneControlXML.setPower(ZoneControlXML.java:69) [210:org.openhab.binding.yamahareceiver:2.2.0.201712121107]
at org.openhab.binding.yamahareceiver.handler.YamahaZoneThingHandler.handleCommand(YamahaZoneThingHandler.java:236) [210:org.openhab.binding.yamahareceiver:2.2.0.201712121107]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [109:org.eclipse.smarthome.core:0.10.0.201712111157]
at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [109:org.eclipse.smarthome.core:0.10.0.201712111157]
at com.sun.proxy.$Proxy140.handleCommand(Unknown Source) [210:org.openhab.binding.yamahareceiver:2.2.0.201712121107]
at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:72) [116:org.eclipse.smarthome.core.thing:0.10.0.201712111157]
at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:49) [116:org.eclipse.smarthome.core.thing:0.10.0.201712111157]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [109:org.eclipse.smarthome.core:0.10.0.201712111157]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [109:org.eclipse.smarthome.core:0.10.0.201712111157]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Does anybody have an idea how I can get the second zone to work?
Looks like your new model might be returning an unsupported response. This may require a change in the binding.
I could look into this, but you need to help me diagnose the situation. Are you able to perform a simple HTTP POST to your new AVR using a tool like Fiddler or Postman? I would need to look at the response.
POST to this URL:
http://<Your_Yamaha_IP>/YamahaRemoteControl/ctrl
The payload/body:
<?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Zone_2><Basic_Status>GetParam</Basic_Status></Zone_2></YAMAHA_AV>
The response is relevant here and especially the part <Input_Sel>AV3</Input_Sel>
(for my model):
<YAMAHA_AV rsp="GET" RC="0">
<Zone_2>
<Basic_Status>
<Power_Control>
<Power>Standby</Power>
<Sleep>Off</Sleep>
</Power_Control>
<Volume>
<Lvl>
<Val>-400</Val>
<Exp>1</Exp>
<Unit>dB</Unit>
</Lvl>
<Mute>Off</Mute>
<Output_Info>Fixed</Output_Info>
</Volume>
<Input>
<Input_Sel>AV3</Input_Sel>
<Input_Sel_Item_Info>
<Param>AV3</Param>
<RW>RW</RW>
<Title>AV3</Title>
<Icon>
<On>/YamahaRemoteControl/Icons/icon003.png</On>
<Off></Off>
</Icon>
<Src_Name></Src_Name>
<Src_Number>1</Src_Number>
</Input_Sel_Item_Info>
</Input>
<Party_Info>Off</Party_Info>
</Basic_Status>
</Zone_2>
</YAMAHA_AV>
Hi @zarusz,
First of all; thank you for your response.
I executed the HTTP-POST using Postman as you requested.
This is what I got back from my HTR-4069:
<YAMAHA_AV rsp="GET" RC="2">
<Zone_2>
<Basic_Status></Basic_Status>
</Zone_2>
</YAMAHA_AV>
To be sure I dit the right thing, I posted this body for my main-zone to my receiver:
<?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV>
This is what I got back:
<YAMAHA_AV rsp="GET" RC="0">
<Main_Zone>
<Basic_Status>
<Power_Control>
<Power>On</Power>
<Zone_B_Power_Info>On</Zone_B_Power_Info>
<Sleep>Off</Sleep>
</Power_Control>
<Volume>
<Lvl>
<Val>-805</Val>
<Exp>1</Exp>
<Unit>dB</Unit>
</Lvl>
<Mute>Off</Mute>
<Subwoofer_Trim>
<Val>0</Val>
<Exp>1</Exp>
<Unit>dB</Unit>
</Subwoofer_Trim>
<Scale>dB</Scale>
<Zone_B>
<Feature_Availability>Ready</Feature_Availability>
<Interlock>Off</Interlock>
<Lvl>
<Val>-805</Val>
<Exp>1</Exp>
<Unit>dB</Unit>
</Lvl>
<Mute>Off</Mute>
</Zone_B>
</Volume>
<Input>
<Input_Sel>TUNER</Input_Sel>
<Input_Sel_Item_Info>
<Param>TUNER</Param>
<RW>RW</RW>
<Title>TUNER</Title>
<Icon>
<On>/YamahaRemoteControl/Icons/icon008.png</On>
<Off></Off>
</Icon>
<Src_Name>Tuner</Src_Name>
<Src_Number>1</Src_Number>
</Input_Sel_Item_Info>
</Input>
<Surround>
<Program_Sel>
<Current>
<Straight>Off</Straight>
<Enhancer>On</Enhancer>
<Sound_Program>5ch Stereo</Sound_Program>
</Current>
</Program_Sel>
<_3D_Cinema_DSP>Auto</_3D_Cinema_DSP>
</Surround>
<Sound_Video>
<Tone>
<Bass>
<Val>0</Val>
<Exp>1</Exp>
<Unit>dB</Unit>
</Bass>
<Treble>
<Val>0</Val>
<Exp>1</Exp>
<Unit>dB</Unit>
</Treble>
</Tone>
<Direct>
<Mode>Off</Mode>
</Direct>
<HDMI>
<Standby_Through_Info>Off</Standby_Through_Info>
<Output>
<OUT_1>On</OUT_1>
</Output>
</HDMI>
<Extra_Bass>Auto</Extra_Bass>
<Adaptive_DRC>Off</Adaptive_DRC>
<Dialogue_Adjust>
<Dialogue_Lvl>0</Dialogue_Lvl>
</Dialogue_Adjust>
</Sound_Video>
<Speaker_Preout>
<Speaker_AB>
<Speaker_A>On</Speaker_A>
<Speaker_B>On</Speaker_B>
</Speaker_AB>
</Speaker_Preout>
</Basic_Status>
</Main_Zone>
</YAMAHA_AV>
I hope this gives you some more information.
Well it looks like the HTR-xxxx models might be handling Zone_2
differently from the other models - the response is rather empty. Could you please also download this XML and send it to me?
http://<Your_Yamaha_IP>/YamahaRemoteControl/desc.xml
Maybe, it will give us a clue as to how should the Zone_2
be queried for your model.
This file looks malformed - I was expecting a proper XML. Can you please try to save the response in a different way?
Maybe open the URL via Chrome and do file save asā¦
Iām not sure if this helps you, but after some Googling, I can control the power of Zone_B Ising the following URL:
To turn it on:
http://10.0.1.22/YamahaRemoteControl/ctrl:<YAMAHA_AV cmd=\"PUT\"><Main_Zone><Power_Control><Zone_B_Power>On</Zone_B_Power></Power_Control></Main_Zone></YAMAHA_AV>
To turn it off/standby:
http://10.0.1.22/YamahaRemoteControl/ctrl:<YAMAHA_AV cmd=\"PUT\"><Main_Zone><Power_Control><Zone_B_Power>Standby</Zone_B_Power></Power_Control></Main_Zone></YAMAHA_AV>