[RELEASED] Python plugin to control Onkyo receivers

Python and python framework

Moderator: leecollings

User avatar
jorgh
Posts: 124
Joined: Friday 27 June 2014 23:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8224
Location: Netherlands
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by jorgh »

@Xavier82,

From the information at https://github.com/miracle2k/onkyo-eiscp I conclude that NRI support started for receivers produced in 2013. So that would be the TX-NR-x2x and newer.

Regards,

Jorg
andi216
Posts: 46
Joined: Tuesday 14 March 2017 13:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by andi216 »

Hello
Onkyo HT-S9700THX goes controlled with this plugin?
Xavier82
Posts: 178
Joined: Tuesday 07 June 2016 22:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Netherlands
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by Xavier82 »

@Jorgh,

Thanks!

So I will now wait on your version to support devices without NRI :).
Any idea about a planning of this feature?

Regards,
Xavier
User avatar
jorgh
Posts: 124
Joined: Friday 27 June 2014 23:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8224
Location: Netherlands
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by jorgh »

andi216 wrote:Hello
Onkyo HT-S9700THX goes controlled with this plugin?
As this is a recent receiver, I would expect it to work.

Regards,

Jorg
jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by jake »

@Jorgh, do you have an open ticket somewhere to fix the problem with your plugin crashing with a normal installation (no self compile)?
I am a bit hesitant to compile myself, since I have absolutely no experience with it.
User avatar
mongoose
Posts: 42
Joined: Friday 22 November 2013 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by mongoose »

Thank you for all the hard work! One thing I would like to see is zone 3 support if at all possible. I have an NR 929 where I have Main for the lounge, zone 2 kitchen and zone 3 for outside.
User avatar
jorgh
Posts: 124
Joined: Friday 27 June 2014 23:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8224
Location: Netherlands
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by jorgh »

@Jake,
jake wrote:@Jorgh, do you have an open ticket somewhere to fix the problem with your plugin crashing with a normal installation (no self compile)?
I am a bit hesitant to compile myself, since I have absolutely no experience with it.
I don't have a ticket for my plugin, it is a generic issue. @elgringo is able to reproduce the crash on a compiled version with debug target. So this is the most promising forum topic for now: viewtopic.php?f=6&t=17905#p137813

Regards,

Jorg
User avatar
jorgh
Posts: 124
Joined: Friday 27 June 2014 23:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8224
Location: Netherlands
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by jorgh »

@mongoose,
mongoose wrote:Thank you for all the hard work! One thing I would like to see is zone 3 support if at all possible. I have an NR 929 where I have Main for the lounge, zone 2 kitchen and zone 3 for outside.
The protocol has support for 4 zones. I'll add them to a version in the development branch in the near future. However, I am not able to test beyond zone 2, as my receiver only supports 2 zones. I keep you posted.

Regards,

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

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by JimmyH1969 »

I am moving domoticz to another machine (Windows 10) and installed your plugin again, now i'm getting this:

2017-08-01 21:34:31.306 (Receiver) Calling message handler 'onHeartbeat'.
2017-08-01 21:34:31.306 (Receiver) onHeartbeat called
2017-08-01 21:34:31.306 (Receiver) Loading XML from file
2017-08-01 21:34:31.306 (Receiver) XML file does not yet exist
2017-08-01 21:34:31.306 (Receiver) Sending 4 bytes of data:.
2017-08-01 21:34:31.306 (Receiver) 49 53 43 50 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ISCP

The devices/switches are not created.
This is on a Windows 10 operating system.

I tried it on a Windows 7 machine and it creates the switches in a few seconds and do not get the above messages.

I do see this message on both operating systems:
2017-08-01 21:33:24.018 Error: (test1) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.
User avatar
jorgh
Posts: 124
Joined: Friday 27 June 2014 23:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8224
Location: Netherlands
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by jorgh »

@JimmyH1969,

That is due to a bug in the latest Domoticz version. See https://www.domoticz.com/forum/viewtopi ... 65&t=18588

Furthermore the latest domoticz version has changes to the framework that need an updated plugin, also discussed in that topic. I've already updated the code, but am not able to test yet.
The bug will be resolved soon, after which I will publish a new version of the plugin.

Regards,

Jorg
User avatar
mongoose
Posts: 42
Joined: Friday 22 November 2013 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by mongoose »

@Jorg thank you for that, yes I see zone 2, so that additio n for zone 3 will be great for when we hit summer again :)
User avatar
jorgh
Posts: 124
Joined: Friday 27 June 2014 23:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8224
Location: Netherlands
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by jorgh »

@JimmyH1969, the bug introduced in the latest python framework change has been resolved in Domoticz version 3.8224. So If you update to this version, the Onkyo plugin on the development branch https://github.com/jorgh6/domoticz-onky ... evelopment should work.

@mongoose, the new version in the development branch now has support for 4 zones. Can't test myself, so hope it works.

Regards,

Jorg
User avatar
mongoose
Posts: 42
Joined: Friday 22 November 2013 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by mongoose »

Thank you Zone 3 working just like zone 2 and main! all great thank you!
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by JimmyH1969 »

Hi Jorg,

Tnx for the update, but i still get this message:

2017-08-06 15:03:18.274 (Receiver Woonkamer) Started.
2017-08-06 15:03:18.321 (Receiver Woonkamer) Initialized version 0.2.2, author 'jorgh'
2017-08-06 15:03:18.321 (Receiver Woonkamer) Entering work loop.
2017-08-06 15:03:30.364 (Receiver Woonkamer) Receiver found:
2017-08-06 15:03:30.364 (Receiver Woonkamer) Type: AV Receiver or Stereo Receiver
2017-08-06 15:03:30.364 (Receiver Woonkamer) Type: TX-NR646
2017-08-06 15:03:30.364 (Receiver Woonkamer) Region: European or Asian model
2017-08-06 15:03:30.364 (Receiver Woonkamer) IP adress: 192.168.1.5
2017-08-06 15:03:30.364 (Receiver Woonkamer) eISCP port: 60128
2017-08-06 15:03:30.364 (Receiver Woonkamer) MAC: 0009B0DABEF0

2017-08-06 15:04:22.740 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.
2017-08-06 15:04:22.740 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.
2017-08-06 15:04:22.740 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.

No devices are being created...
This is on a windows 7 system. Something tell's me it is a problem on my machine, but i don't know what it is..

I see this message as wel: (Receiver Woonkamer) Requesting XML configuration
Does it want to create a file somewhere maybe?
User avatar
jorgh
Posts: 124
Joined: Friday 27 June 2014 23:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8224
Location: Netherlands
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by jorgh »

JimmyH1969 wrote:Hi Jorg,

Tnx for the update, but i still get this message:

2017-08-06 15:03:18.274 (Receiver Woonkamer) Started.
2017-08-06 15:03:18.321 (Receiver Woonkamer) Initialized version 0.2.2, author 'jorgh'
2017-08-06 15:03:18.321 (Receiver Woonkamer) Entering work loop.
2017-08-06 15:03:30.364 (Receiver Woonkamer) Receiver found:
2017-08-06 15:03:30.364 (Receiver Woonkamer) Type: AV Receiver or Stereo Receiver
2017-08-06 15:03:30.364 (Receiver Woonkamer) Type: TX-NR646
2017-08-06 15:03:30.364 (Receiver Woonkamer) Region: European or Asian model
2017-08-06 15:03:30.364 (Receiver Woonkamer) IP adress: 192.168.1.5
2017-08-06 15:03:30.364 (Receiver Woonkamer) eISCP port: 60128
2017-08-06 15:03:30.364 (Receiver Woonkamer) MAC: 0009B0DABEF0

2017-08-06 15:04:22.740 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.
2017-08-06 15:04:22.740 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.
2017-08-06 15:04:22.740 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.

No devices are being created...
This is on a windows 7 system. Something tell's me it is a problem on my machine, but i don't know what it is..

I see this message as wel: (Receiver Woonkamer) Requesting XML configuration
Does it want to create a file somewhere maybe?
You should update to the latest Domoticz version, beta that is.

Verstuurd vanaf mijn HTC 10 met Tapatalk
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by JimmyH1969 »

So, it's like this:

2017-08-06 15:18:05.460 (Receiver Woonkamer) Requesting XML configuration
2017-08-06 15:18:05.616 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.
2017-08-06 15:18:05.616 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.
2017-08-06 15:18:05.616 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.
2017-08-06 15:18:07.520 (Receiver Woonkamer) Requesting XML configuration
2017-08-06 15:18:07.754 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.
2017-08-06 15:18:07.754 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.
2017-08-06 15:18:07.754 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.
2017-08-06 15:18:09.657 (Receiver Woonkamer) Requesting XML configuration
2017-08-06 15:18:09.860 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.
2017-08-06 15:18:09.860 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.
2017-08-06 15:18:09.860 Error: (Receiver Woonkamer) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by JimmyH1969 »

I am running Domoticz 3.8235. That is the latest beta as far as i can see :D
User avatar
jorgh
Posts: 124
Joined: Friday 27 June 2014 23:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8224
Location: Netherlands
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by jorgh »

Did you take the plugin from the Github development branch?

Verstuurd vanaf mijn HTC 10 met Tapatalk
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by JimmyH1969 »

I did. It says it's version 0.2.2

Initialized version 0.2.2, author 'jorgh'
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: [RELEASED] Python plugin to control Onkyo receivers

Post by JimmyH1969 »

Could it be a python for windows thing?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests