Page 8 of 14
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Thursday 27 July 2017 8:13
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-x
2x and newer.
Regards,
Jorg
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Thursday 27 July 2017 9:40
by andi216
Hello
Onkyo HT-S9700THX goes controlled with this plugin?
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Thursday 27 July 2017 9:44
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
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Thursday 27 July 2017 10:29
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
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Saturday 29 July 2017 13:17
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.
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Sunday 30 July 2017 13:32
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.
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Monday 31 July 2017 11:04
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
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Monday 31 July 2017 11:07
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
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Tuesday 01 August 2017 21:41
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''.
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Tuesday 01 August 2017 22:18
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
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Thursday 03 August 2017 0:57
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
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Saturday 05 August 2017 19:41
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
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Saturday 05 August 2017 22:43
by mongoose
Thank you Zone 3 working just like zone 2 and main! all great thank you!
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Sunday 06 August 2017 15:05
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?
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Sunday 06 August 2017 15:18
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
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Sunday 06 August 2017 15:19
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''.
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Sunday 06 August 2017 15:20
by JimmyH1969
I am running Domoticz 3.8235. That is the latest beta as far as i can see
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Sunday 06 August 2017 15:33
by jorgh
Did you take the plugin from the Github development branch?
Verstuurd vanaf mijn HTC 10 met Tapatalk
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Sunday 06 August 2017 15:46
by JimmyH1969
I did. It says it's version 0.2.2
Initialized version 0.2.2, author 'jorgh'
Re: [RELEASED] Python plugin to control Onkyo receivers
Posted: Sunday 06 August 2017 16:32
by JimmyH1969
Could it be a python for windows thing?