The Onkyo challenge...

Moderator: leecollings

Post Reply
tred
Posts: 14
Joined: Wednesday 26 September 2018 19:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

The Onkyo challenge...

Post 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.
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: The Onkyo challenge...

Post 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
tred
Posts: 14
Joined: Wednesday 26 September 2018 19:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: The Onkyo challenge...

Post 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
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: The Onkyo challenge...

Post 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
tred
Posts: 14
Joined: Wednesday 26 September 2018 19:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: The Onkyo challenge...

Post by tred »

Wow, even better. What did you use for the port? 60128?

Thanks,

Theo.
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: The Onkyo challenge...

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest