code works for on/off/mute as said, however any method to simply add input next or input options button instead of installing smart app and virtual button?
also, thank you very very much. this is something i’ve wanted for years.
code works for on/off/mute as said, however any method to simply add input next or input options button instead of installing smart app and virtual button?
also, thank you very very much. this is something i’ve wanted for years.
Further info… looking at the XML, I don’t see Zone power, just Power. I’ve tried variations on the commands sent but no joy.
I’ve also tried using STANDBY instead of OFF as it shows STANDBY rather than OFF when not switched on and using the telnet method, it responds to PWSTANDBY rather than PWOFF.
The XML also only displays the current source and does not give a list.
So it looks like the API is a bit different on this one.
This looks fun, I just bought an x2200w that I haven’t installed yet. Definitely will be checking this out.
Sounds good, but I’m totally lost on the set up part.in using a 2015 onkyo 737…I have to do some research now.
Hi @sean_b - Can you post the XML? I’m guessing your receiver just has one zone. Should be easy to add.
Hey @isriam - Maybe I can embed a mometary tile in the device for inputNext()? Not sure if that will work with the existing on() / off() command already implemented. But I’ll check!
Eventually, I’m going to make a AVR (Connect) SmartApp, and it will install and manage the virtual tiles for each zone and inputs. I put most of the code down to do that already, just need more chair time.
Kristopher
Hi @Kristopher - see below.
I can try the commands manually from the command line using curl - it worked for mute, so can experiment with others if it helps.
<?xml version="1.0" encoding="utf-8" ?>
<item>
<FriendlyName><value>Marantz M-CR610</value></FriendlyName>
<Power><value>ON</value></Power>
<ZonePower><value></value></ZonePower>
<Filter><value></value></Filter>
<NoiseShaper><value></value></NoiseShaper>
<DCFilter><value></value></DCFilter>
<TopMenuLink><value></value></TopMenuLink>
<ModelId><value>24</value></ModelId>
<SalesArea><value>1</value></SalesArea>
<InputFuncSelect><value>TUNER</value></InputFuncSelect>
<NetFuncSelect><value>RHAPSODY</value></NetFuncSelect>
</item>
I noticed when I turned on zone 2, it said Power ON, zone power oFF, even though zone2 was on. When I turned off zone 2, zone power was again no value.
Sean, is that the full XML? It doesn’t seem to report back Mute status, nor the available inputs
Kristopher
Hey @Jerry1 - This handler won’t work for Onkyo. I am doing some research on it and I believe I can extend the code to handle that brand as well, but its going to take me more time and testing.
Kristopher
@anyabor Hey Oscar - Can you select a video input and repost the XML? I think I see what’s happening and I can fix it.
Thanks!
Kristopher
Kristopher,
I installed your device handler, added the device, and configured the IP. But I can’t get it to work. I sprinkled some debug statements in there, and I’ve that hubaction is working but parse() never gets called. Any ideas? I’m using the v2 Hub, and the receiver is an S910W.
Best, Jerry
Hey @anghus - If you open Live Logging, and then hit refresh() in the app, it should give you some kind of breadcrumb. Go ahead and paste that back in here and I’ll see what I can see!
I get nothing in the log. I out some logging in the hubaction method, and I get those. I get no logging out of the parse() handler. It appears as though parse() isn’t even been invoked by a update or a refresh.
Hmm - that may happen if the web interface is turned off, or if the IP / port combo isn’t working? Can you confirm you can hit the IP / Port via a local browser?
Kristopher
Confirmed. I tested some of the get/post strings and the all worked in the browser.
I get a good return back from HubAction. I just am getting no invocation of parse().
I should have continued testing before getting bogged down in the update/refresh.
It looks like none of the posts are working either. If I mute, nothing happens.
However, the output from HubAction looks OK:
ef6a73ec-07aa-4568-bd41-7d44324bd8c0 6:47:55 PM CST: debug POST /MainZone/index.put.asp HTTP/1.1
Accept: */*
User-Agent: Linux UPnP/1.0 SmartThings
HOST: 192.168.0.37:80
Content-Type: text/xml; charset="utf-8"
Content-Length: 23
cmd0=PutVolumeMute%2FON
And when I open the POST in a browser window, it works as expected.
So now I’m left thinking that HubAction isn’t getting the job done today. Transient issue maybe?
Wow !! Thanks for the reply/info I see you are also from here in the Chicago area
Yes it is, which is why the refresh doesn’t reflect the current status - the XML doesn’t report it. The options to mute and change volume do work though, but power and input selection don’t. So it looks like the API is similar but not identical to the Denon one
The raw telnet method does work - issuing “MU?” returns “MUON”, issuing “PWSTANDBY” turns it off and so on. From what I’ve read though, hubAction doesn’t supprt telnet.
FWIW, I updated the Marantz firmware last night but that didn’t make any difference.
Hey Sean,
ST sort of supports it… It can write but can’t read. Check out my Sharp TV integration on github. It sucks in that you can’t be sure of the state but you can at least control it. Give it a shot!
Kristopher