Page 1 of 1

The Onkyo challenge...

Posted: Wednesday 26 September 2018 20:31
by tred
Guys,

Rpi with Domoticz Version: 4.9700
Build Hash: a3a45906
Compile Date: 2018-06-23 16:24:51
dzVents Version: 2.4.6
Python Version: 3.5.3 (default, Jan 19 2017, 14:11:04) [GCC 6.3.0 20170124]

Local IP address of the receiver is 192.168.1.225, Pi is 192.168.1.218.
Webserver runs on port 8099.
AV Amp: Onkyo TX-RZ720

Have read the famous: https://www.domoticz.com/wiki/Onkyo
Created the onkyo.php script and put it in the root if the webserver:
/home/pi/domoticz/www/onkyo.php. Checked permissions. Replaced the two variables:
$hostname = '192.168.0.225’
$port = 60128;

Created the virtual script and sensor:
http://127.0.0.1:8099/onkyo.php?command=PWR&params=01 (On)
http://127.0.0.1:8099/onkyo.php?command=PWR&params=00 (Off)
And it does not work… The logfile:

Error opening url: http://127.0.0.1:8099/onkyo.php?command=PWR&params=00 (Off)

I am fairly new with Domoticz and until now I made progress. There were quite some tricky stuff but getting my Onkyo receiver to work is now costing me hours and hours of time… The problem is that there are quite a few threads on the topic but for an Newnie it’s hard to determine which are helping or making things worse. Just a small typo could lead to another hour of time…

So can someone please help me and slap me in the face for complete screwing up?

Theo.

Re: The Onkyo challenge...

Posted: Wednesday 26 September 2018 22:46
by jake
You can also give the python version a try. For me they one worked out of the box

https://www.google.nl/url?sa=t&source=w ... 9HLxouSYjE

Re: The Onkyo challenge...

Posted: Thursday 27 September 2018 0:15
by tred
Jake,

Thanks, I will give it a try... Was not sure if this was the best choice because most of the forum posts address the PHP variant.

Theo

Re: The Onkyo challenge...

Posted: Thursday 27 September 2018 7:53
by JimmyH1969
How about the build-in hardware: Onkyo AV Receiver (LAN). I just added that, supplied the IP and Port number, enabled new sensors and all devices where created automaticly

Re: The Onkyo challenge...

Posted: Thursday 27 September 2018 11:42
by tred
Wow, even better. What did you use for the port? 60128?

Thanks,

Theo.

Re: The Onkyo challenge...

Posted: Thursday 27 September 2018 12:56
by JimmyH1969
Yes, that's the port the onkyo is listening on. After enabeling new sensors start playing with the onkyo (change volume, use selector switches etc) and that creates the new devices.
It is also possible to send a command directly to the Onkyo like adding something like below to a push button script for example:
http://<DOMOTCZIP>:8080/json.htm?type=command&param=onkyoeiscpcommand&idx=379&action=NPR01

Thie above will switch the onkyo to start playing Internet Radio Preset 01. The IDX number is just on of the IDX numbers assigned to any of the onkyo controls.

Enjoy, Jimmy