[RELEASED] Python plugin to control Onkyo receivers
Moderator: leecollings
- 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
@swevm,
Good to hear it works.
Just an idea, on the issue you have.
If the receiver stops responding, does it only not send a response, or is the receiver also not executing the command?
I think that if network stand-by is disabled, the controller is actually turned off when you power off the reciever (thus, only cycling the controller inside the receiver). Just for the sake of it, next time, try to disable network standby, power-off the receiver and then power it on. Try if it responds again in that case. If this also works to get the receiver to respond, the following might work:
Create a script that checks if the receiver still responds.
If not, disable network stand-by and power off the receiver (or wait for the user to do this, whatever is more convenient).
If you power on the receiver again (using IR or the power button) the internal controller will boot up.
The script will then enable network standby again.
Although this will not completely get rid of the issue, it might be easier as pulling the plug. If there are a lot of receivers that have this issue, I could try to create such a script (stand-alone, independent of the plugin). But first we need to figure out, if this procedure will work.
On your observations:
* All devices are created as type: Light/Switch
Well, there are only the following device types as far as I know: light, weather, temp, utility. Where light is for controlling things, the others are for measurements only.
* Master volume is in % (mine say MasterVolume is set to 56% while receiver show a value of 45 in its display
I calculate the percentage from the maxvolume the receiver returns in its configuration. The absolute max volume differs per receiver, hence I calculate the percentage based on the max volume. This obviously leads to a difference between the percentage number and the number on the receiver display. As far as I know, all sliders in Domoticz are in percentages, but correct me if I'm wrong.
* MasterVolume in Domoticz UI showed 56% but slider was at far left indicating 0%. Adjusting volume work and if manually adjusted using UI slider it stay at defined level and receiver MasterVolume is changed too. Not sure if this is a bug in the plugin or Domoticz UI.
I Noticed this too, but am not sure why this happens, In my case this only happens once, after it is synchronized I've not seen any issues yet.
Regards,
Jorg
Good to hear it works.
Just an idea, on the issue you have.
If the receiver stops responding, does it only not send a response, or is the receiver also not executing the command?
I think that if network stand-by is disabled, the controller is actually turned off when you power off the reciever (thus, only cycling the controller inside the receiver). Just for the sake of it, next time, try to disable network standby, power-off the receiver and then power it on. Try if it responds again in that case. If this also works to get the receiver to respond, the following might work:
Create a script that checks if the receiver still responds.
If not, disable network stand-by and power off the receiver (or wait for the user to do this, whatever is more convenient).
If you power on the receiver again (using IR or the power button) the internal controller will boot up.
The script will then enable network standby again.
Although this will not completely get rid of the issue, it might be easier as pulling the plug. If there are a lot of receivers that have this issue, I could try to create such a script (stand-alone, independent of the plugin). But first we need to figure out, if this procedure will work.
On your observations:
* All devices are created as type: Light/Switch
Well, there are only the following device types as far as I know: light, weather, temp, utility. Where light is for controlling things, the others are for measurements only.
* Master volume is in % (mine say MasterVolume is set to 56% while receiver show a value of 45 in its display
I calculate the percentage from the maxvolume the receiver returns in its configuration. The absolute max volume differs per receiver, hence I calculate the percentage based on the max volume. This obviously leads to a difference between the percentage number and the number on the receiver display. As far as I know, all sliders in Domoticz are in percentages, but correct me if I'm wrong.
* MasterVolume in Domoticz UI showed 56% but slider was at far left indicating 0%. Adjusting volume work and if manually adjusted using UI slider it stay at defined level and receiver MasterVolume is changed too. Not sure if this is a bug in the plugin or Domoticz UI.
I Noticed this too, but am not sure why this happens, In my case this only happens once, after it is synchronized I've not seen any issues yet.
Regards,
Jorg
-
- 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
@jorgh
Thanks, thanks, thanks! Now for the 1st time I have direct feedback from the receiver, so automatic 'pull' instead of manual 'pull'
Devices for my Onkyo TX-NR535 were created immediately and I added all 'Main' devices.
- Switch On/Off works very, very direct both ways, not comparable at all with the Onkyo commandline action response
- Input source switch works both ways, although response in Domoticz seems to depend on the source: switching to 'PC' took longer then to FM or BD/DVD. I than switched to 'Net' by the local remote, but Domoticz hasn't changed for minutes and remains on 'PC'. The input list seems complete, but also has a lot of empty spaces in between the source names. Can I delete the empty lines, by editing the selector switch?
- Volume responds both ways, although percentage is not matching with receiver. I checked at one setting (PC, I think) where the receiver display shows 'PC --' instead of 'PC 29', seemed like the volume was not shown, only when I increased/decreased the volume.
- Tuner window remains empty and switch in 'off' state, even while 'Source' is FM
- Mode: I find hard to find out what it does. I usually use 5-channel stereo for audio and 'digital theater' for video, but that is not on the selector option list
All in all, this plugin first trial exeeds my expectations by miles, well done! and keep up the good work!
Thanks, thanks, thanks! Now for the 1st time I have direct feedback from the receiver, so automatic 'pull' instead of manual 'pull'
Devices for my Onkyo TX-NR535 were created immediately and I added all 'Main' devices.
- Switch On/Off works very, very direct both ways, not comparable at all with the Onkyo commandline action response
- Input source switch works both ways, although response in Domoticz seems to depend on the source: switching to 'PC' took longer then to FM or BD/DVD. I than switched to 'Net' by the local remote, but Domoticz hasn't changed for minutes and remains on 'PC'. The input list seems complete, but also has a lot of empty spaces in between the source names. Can I delete the empty lines, by editing the selector switch?
- Volume responds both ways, although percentage is not matching with receiver. I checked at one setting (PC, I think) where the receiver display shows 'PC --' instead of 'PC 29', seemed like the volume was not shown, only when I increased/decreased the volume.
- Tuner window remains empty and switch in 'off' state, even while 'Source' is FM
- Mode: I find hard to find out what it does. I usually use 5-channel stereo for audio and 'digital theater' for video, but that is not on the selector option list
All in all, this plugin first trial exeeds my expectations by miles, well done! and keep up the good work!
- 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
@jake,
Thanks for the compliment
If not, could you enable debug in the plugin and send me (or post) the log entries that appear when switching to NET?
The receiver has more inputs that you don't use, maybe you can disable them on the receiver. They should not appear in that case. If you use inputs without a name, give them a name in the receiver, they now should appear correctly in the plugin (requires you to delete the device and restart the plugin).
The receiver has a different response from the one I use, indicating a input does not exist by delivering an empty name. In that case I could change the code to skip inputs without a name.
Regards,
Jorg
Thanks for the compliment
The switching to PC taking longer, is probably something specific to your receiver. There is no difference in how the inputs are switched depending on the selected input.- Input source switch works both ways, although response in Domoticz seems to depend on the source: switching to 'PC' took longer then to FM or BD/DVD.
If you change the input with the remote to NET, does Domotics display the correct input if you refresh the browser (F5)? If so, it's probably an Domoticz issue.I than switched to 'Net' by the local remote, but Domoticz hasn't changed for minutes and remains on 'PC'.
If not, could you enable debug in the plugin and send me (or post) the log entries that appear when switching to NET?
I create the input list, from what the receiver states it has. Multiple things could play a role here:The input list seems complete, but also has a lot of empty spaces in between the source names.
The receiver has more inputs that you don't use, maybe you can disable them on the receiver. They should not appear in that case. If you use inputs without a name, give them a name in the receiver, they now should appear correctly in the plugin (requires you to delete the device and restart the plugin).
The receiver has a different response from the one I use, indicating a input does not exist by delivering an empty name. In that case I could change the code to skip inputs without a name.
Yes you can. You can also reorder the list. As long as the name in Domoticz matches the name on the receiver, it should work.Can I delete the empty lines, by editing the selector switch?
The plugin does not do anything with the receiver display, so this is probably something specific to your receiver. The Domoticz plugin displays the volume as a percentage, calculated by the maxvolume supported by the receiver. So, unless the max volume of your receiver is 100, the number displayed within Domoticz (percentage), does not match the absolute volume displayed by the receiver.Volume responds both ways, although percentage is not matching with receiver. I checked at one setting (PC, I think) where the receiver display shows 'PC --' instead of 'PC 29', seemed like the volume was not shown, only when I increased/decreased the volume.
Are the preset names in the list? The presets requested from the receiver, if the list is empty, the plugin did not receive the Tuner presets. Maybe your receiver delivers the presets in another fashion, or does not deliver them. I could create a script that dumps the Receiver configuration to analyse this.Tuner window remains empty and switch in 'off' state, even while 'Source' is FM
I must admit, I wasn't to happy about how the receiver delivers the supported input modes. This list is not complete and some of them switch between different modes, if you press them multiple times. I already started thinking of another solution. Which will probably boil down to adding additional modes if they are first detected by the plugin. (So you have to switch to them once, before they appear).Mode: I find hard to find out what it does. I usually use 5-channel stereo for audio and 'digital theater' for video, but that is not on the selector option list
Regards,
Jorg
-
- 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
The 'PC --' probably was shown because the PC wasn't on at that time. The PC is on now and the display shows the correct volumejorgh wrote:@jake,The plugin does not do anything with the receiver display, so this is probably something specific to your receiver.Volume responds both ways, although percentage is not matching with receiver. I checked at one setting (PC, I think) where the receiver display shows 'PC --' instead of 'PC 29', seemed like the volume was not shown, only when I increased/decreased the volume.
Thanks, I understand. However, would it not be nicer and easier for calculation on your side, to store the maximum receiver volume also as maximum percentage in the slider switch, meaning that the percentage is identical to the receiver volume? Anything above that max. percentage could in the code be capped to that same max. level. I have no feeling what 50% does to the actual volume, but I know pretty wel what '30' means for loudness, because I am used to it.The Domoticz plugin displays the volume as a percentage, calculated by the max volume supported by the receiver. So, unless the max volume of your receiver is 100, the number displayed within Domoticz (percentage), does not match the absolute volume displayed by the receiver.
Eheh, I discovered that I never put any radio stations in the preset list. After doing that, deleting the switch, re-adding it again, the presets were there. Cool!Are the preset names in the list? The presets requested from the receiver, if the list is empty, the plugin did not receive the Tuner presets. Maybe your receiver delivers the presets in another fashion, or does not deliver them. I could create a script that dumps the Receiver configuration to analyse this.Tuner window remains empty and switch in 'off' state, even while 'Source' is FM
Yes, there are so many audio modes (that I never use), adding those that are used, would be more convenientI must admit, I wasn't to happy about how the receiver delivers the supported input modes. This list is not complete and some of them switch between different modes, if you press them multiple times. I already started thinking of another solution. Which will probably boil down to adding additional modes if they are first detected by the plugin. (So you have to switch to them once, before they appear).Mode: I find hard to find out what it does. I usually use 5-channel stereo for audio and 'digital theater' for video, but that is not on the selector option list
Hmm, I switched to 'Net' with the Domoticz switch. Some minutes later I check the log and find the following (multiple times, but shown here only twice):
Code: Select all
2017-03-24 22:35:42.242 (Onkyo AV Receiver TX-NR535) onMessage called
2017-03-24 22:35:42.242 (Onkyo AV Receiver TX-NR535) We received 46 bytes of data
2017-03-24 22:35:42.243 (Onkyo AV Receiver TX-NR535) Found ISCP frame
2017-03-24 22:35:42.243 (Onkyo AV Receiver TX-NR535) HeaderSize: 16
2017-03-24 22:35:42.244 (Onkyo AV Receiver TX-NR535) DataSize: 11
2017-03-24 22:35:42.244 (Onkyo AV Receiver TX-NR535) Have 2291 bytes in inputbuffer
2017-03-24 22:35:42.244 (Onkyo AV Receiver TX-NR535) We have a eISCP frame to process
2017-03-24 22:35:42.245 (Onkyo AV Receiver TX-NR535) Found ISCP frame
2017-03-24 22:35:42.245 (Onkyo AV Receiver TX-NR535) HeaderSize: 16
2017-03-24 22:35:42.246 (Onkyo AV Receiver TX-NR535) DataSize: 11
2017-03-24 22:35:42.246 (Onkyo AV Receiver TX-NR535) Version: 1
2017-03-24 22:35:42.247 (Onkyo AV Receiver TX-NR535) Reserved: [0x0][0x0][0x0]
2017-03-24 22:35:42.247 (Onkyo AV Receiver TX-NR535) eISCP Data : !1NLS
2017-03-24 22:35:42.248 Error: (Onkyo AV Receiver TX-NR535) 'onMessage' failed 'UnicodeDecodeError'.
2017-03-24 22:35:42.248 Error: (Onkyo AV Receiver TX-NR535) ----> Line 617 in /home/pi/domoticz/plugins/Onkyo/plugin.py, function onMessage
2017-03-24 22:35:42.248 Error: (Onkyo AV Receiver TX-NR535) ----> Line 98 in /home/pi/domoticz/plugins/Onkyo/plugin.py, function onMessage
2017-03-24 22:35:42.249 Error: (Onkyo AV Receiver TX-NR535) ----> Line 491 in /home/pi/domoticz/plugins/Onkyo/plugin.py, function processeISCPFrame
2017-03-24 22:35:42.249 (Onkyo AV Receiver TX-NR535) onMessage called
2017-03-24 22:35:42.250 (Onkyo AV Receiver TX-NR535) We received 53 bytes of data
2017-03-24 22:35:42.250 (Onkyo AV Receiver TX-NR535) Found ISCP frame
2017-03-24 22:35:42.251 (Onkyo AV Receiver TX-NR535) HeaderSize: 16
2017-03-24 22:35:42.251 (Onkyo AV Receiver TX-NR535) DataSize: 11
2017-03-24 22:35:42.252 (Onkyo AV Receiver TX-NR535) Have 2344 bytes in inputbuffer
2017-03-24 22:35:42.252 (Onkyo AV Receiver TX-NR535) We have a eISCP frame to process
2017-03-24 22:35:42.252 (Onkyo AV Receiver TX-NR535) Found ISCP frame
2017-03-24 22:35:42.253 (Onkyo AV Receiver TX-NR535) HeaderSize: 16
2017-03-24 22:35:42.253 (Onkyo AV Receiver TX-NR535) DataSize: 11
2017-03-24 22:35:42.254 (Onkyo AV Receiver TX-NR535) Version: 1
2017-03-24 22:35:42.254 (Onkyo AV Receiver TX-NR535) Reserved: [0x0][0x0][0x0]
2017-03-24 22:35:42.254 (Onkyo AV Receiver TX-NR535) eISCP Data : !1NLS
2017-03-24 22:35:42.255 Error: (Onkyo AV Receiver TX-NR535) 'onMessage' failed 'UnicodeDecodeError'.
2017-03-24 22:35:42.255 Error: (Onkyo AV Receiver TX-NR535) ----> Line 617 in /home/pi/domoticz/plugins/Onkyo/plugin.py, function onMessage
2017-03-24 22:35:42.256 Error: (Onkyo AV Receiver TX-NR535) ----> Line 98 in /home/pi/domoticz/plugins/Onkyo/plugin.py, function onMessage
2017-03-24 22:35:42.256 Error: (Onkyo AV Receiver TX-NR535) ----> Line 491 in /home/pi/domoticz/plugins/Onkyo/plugin.py, function processeISCPFrame
- mrefex
- Posts: 26
- Joined: Tuesday 14 March 2017 14:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.7041
- Contact:
Re: [RELEASED] Python plugin to control Onkyo receivers
@jorgh
Great job !! i decided to connect my radio antenna and listen to FM . Because i still have an issue to automatically start my internet radio presets.
But this will work fine!
As you mentioned before to use :NPR01 - doesn't work. I saw in the YAML list that some features only can be received by more expensive Onkyo models.
Great job !! i decided to connect my radio antenna and listen to FM . Because i still have an issue to automatically start my internet radio presets.
But this will work fine!
As you mentioned before to use :NPR01 - doesn't work. I saw in the YAML list that some features only can be received by more expensive Onkyo models.
- 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
@jake,
On the NET issue you've seen:
Apparently the receiver sends non-ascii data in a field I expect only ascii data. I will change the code to correctly handle this and not cause the plugin to crash. The plugin does (at this time) nothing with NET data, so that should be an easy fix.
As the plugin system is still in Beta, I can live with the current behaviour, but think it needs adjustments before we'll mark it as stable.
Kind regards,
Jorg
I can add a config option to configure the behavior, as this is a matter of taste. Some receivers only go to 50, making half of the slider 'dis-functional'.Thanks, I understand. However, would it not be nicer and easier for calculation on your side, to store the maximum receiver volume also as maximum percentage in the slider switch, meaning that the percentage is identical to the receiver volume? Anything above that max. percentage could in the code be capped to that same max. level. I have no feeling what 50% does to the actual volume, but I know pretty wel what '30' means for loudness, because I am used to it.
On the NET issue you've seen:
Apparently the receiver sends non-ascii data in a field I expect only ascii data. I will change the code to correctly handle this and not cause the plugin to crash. The plugin does (at this time) nothing with NET data, so that should be an easy fix.
I also noticed that Domoticz completely locks-up if a plugin throws an exception. Of course this means there is a bug in the plugin, that should be corrected. But in my humble opinion, Domoticz should handle these exceptions more gracefully, and that means it sould at least not lockup.After I tried to disable the Onkyo hardware in Domoticz, Domoticz was completely locked up and needed a restart of the service.
As the plugin system is still in Beta, I can live with the current behaviour, but think it needs adjustments before we'll mark it as stable.
Kind regards,
Jorg
- 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
@mrefex,
Kind regards,
Jorg
Ok, thats clear. If your receiver does not support NET presets through the control protocol. It might be an option to try if it supports the remote key commands (NTC). If that works, you could send it the keystrokes to automate the preset selection. Although this is not ideal, it might solve your issue.As you mentioned before to use :NPR01 - doesn't work. I saw in the YAML list that some features only can be received by more expensive Onkyo models.
Kind regards,
Jorg
-
- Posts: 23
- Joined: Friday 16 September 2016 20:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 8718
- Location: Sweden
- Contact:
Re: [RELEASED] Python plugin to control Onkyo receivers
@jorgh,
I noticed this error related to set volume level today. Eror can be reproduced from time to time if I hold mouse button down and move volume level slider. Sometime volume is changed but in some case it only changes when I release mouse button.
Do you have any plans to push this plugin to Github?
Over time more valuable to track changes and issues some place outside of a forum thread. Don´t you agree?
/Magnus
I noticed this error related to set volume level today. Eror can be reproduced from time to time if I hold mouse button down and move volume level slider. Sometime volume is changed but in some case it only changes when I release mouse button.
Do you have any plans to push this plugin to Github?
Over time more valuable to track changes and issues some place outside of a forum thread. Don´t you agree?
Code: Select all
2017-03-25 14:32:42.003 User: Admin initiated a switch command (190/Onkyo AV - TX-NR828 Main Volume/Set Level)
2017-03-25 14:32:42.193 Error: (Onkyo AV) 'onMessage' failed 'ValueError':'invalid literal for int() with base 16: '0xN/A''.
2017-03-25 14:32:42.193 Error: (Onkyo AV) ----> Line 617 in /home/pi/domoticz/plugins/Onkyo/plugin.py, function onMessage
2017-03-25 14:32:42.193 Error: (Onkyo AV) ----> Line 98 in /home/pi/domoticz/plugins/Onkyo/plugin.py, function onMessage
2017-03-25 14:32:42.193 Error: (Onkyo AV) ----> Line 511 in /home/pi/domoticz/plugins/Onkyo/plugin.py, function processeISCPFrame
/Magnus
Domoticz on RPi3 with Razberry: 10xZME WALLC-S, 14x Fib Switch, 6x Fib Wallplug, 1x Fib Motion Sensor, 2x Fib Smoke Sensor, 1x Fib Universal sensor (with 1-wire), 3x SwiidInter cordsw, ESPEasy [1-wire and relay], Kodi, Node-Red [Onkyo NR-828, UI etc]
-
- 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
Sounds like a good plan. A second alternative could be to let people decide the maximum level (that they prefer) and have the slider go between 0 and 100% (in my case I never go above a level of 35 and don't want to touch the maximum volume of the receiver anyway.jorgh wrote:@jake,
I can add a config option to configure the behavior (of the slider), as this is a matter of taste. Some receivers only go to 50, making half of the slider 'dis-functional'.
ThanksOn the NET issue you've seen:
Apparently the receiver sends non-ascii data in a field I expect only ascii data. I will change the code to correctly handle this and not cause the plugin to crash. The plugin does (at this time) nothing with NET data, so that should be an easy fix.
Agreed, this is on the Domoticz side of things.I also noticed that Domoticz completely locks-up if a plugin throws an exception. Of course this means there is a bug in the plugin, that should be corrected. But in my humble opinion, Domoticz should handle these exceptions more gracefully, and that means it sould at least not lockup.After I tried to disable the Onkyo hardware in Domoticz, Domoticz was completely locked up and needed a restart of the service.
As the plugin system is still in Beta, I can live with the current behaviour, but think it needs adjustments before we'll mark it as stable.
I have put your devices in parts of my code already and like it so far!
- 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
@swevm,
https://github.com/jorgh6/domoticz-onkyo-plugin
Regards,
Jorg
I've uploaded to code to GitHub and registered the current bugs en feature requests. I'll start with the bug fixing this week, that's the 1st prio.swevm wrote:@jorgh,
Do you have any plans to push this plugin to Github?
Over time more valuable to track changes and issues some place outside of a forum thread. Don´t you agree?
https://github.com/jorgh6/domoticz-onkyo-plugin
Regards,
Jorg
- 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
All,
The bugfix branch (https://github.com/jorgh6/domoticz-onky ... ree/bugfix) on GitHub contains a new version that should resolve the crashes on some volume changes and selecting the NET device.
I'm not able to reproduce these on my receiver.
If someone confirms the issues are resolved I'll commit them to the main branch.
Regards,
Jorg
The bugfix branch (https://github.com/jorgh6/domoticz-onky ... ree/bugfix) on GitHub contains a new version that should resolve the crashes on some volume changes and selecting the NET device.
I'm not able to reproduce these on my receiver.
If someone confirms the issues are resolved I'll commit them to the main branch.
Regards,
Jorg
-
- 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
I did the following: copy paste the file overtop de previous one.jorgh wrote:All,
The bugfix branch (https://github.com/jorgh6/domoticz-onky ... ree/bugfix) on GitHub contains a new version that should resolve the crashes on some volume changes and selecting the NET device.
I'm not able to reproduce these on my receiver.
If someone confirms the issues are resolved I'll commit them to the main branch.
Disable / enable the Onkyo hardware
Is this procedure correct? I saw during initialisation that the version (still) is 0.1.0.
I can confirm that I now can switch to NET and back without issues. Problem solved.
- 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
@Jake,
Regards,
Jorg
Yes, this will work.jake wrote:I did the following: copy paste the file overtop de previous one.
Disable / enable the Onkyo hardware
Is this procedure correct?
I bumped the verion number to 0.1.1, but the version number is within the XML. This information is only read if you restart Domoticz. There where no changes in the XML apart from the version number, so it doesn't realy matter.I saw during initialisation that the version (still) is 0.1.0.
Good to hear, now if someone can confirm the volume bug is also resolved, I'll update the main branch.I can confirm that I now can switch to NET and back without issues. Problem solved.
Regards,
Jorg
-
- Posts: 23
- Joined: Friday 16 September 2016 20:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 8718
- Location: Sweden
- Contact:
Re: [RELEASED] Python plugin to control Onkyo receivers
Jorgh,
I'm travelling and am back home on Tuesday next week. Will verify your fix for the Volume issue then.
/Magnus
I'm travelling and am back home on Tuesday next week. Will verify your fix for the Volume issue then.
/Magnus
Domoticz on RPi3 with Razberry: 10xZME WALLC-S, 14x Fib Switch, 6x Fib Wallplug, 1x Fib Motion Sensor, 2x Fib Smoke Sensor, 1x Fib Universal sensor (with 1-wire), 3x SwiidInter cordsw, ESPEasy [1-wire and relay], Kodi, Node-Red [Onkyo NR-828, UI etc]
-
- 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
Mhhh... Added the plugin..
This is all i get:
2017-03-29 20:10:25.326 (Onkyo-AV) onHeartbeat called
2017-03-29 20:10:25.326 (Onkyo-AV) Checking if discovery data has been received
Not getting any devices....
Running Domoticz 3.7197 on Windows
This is all i get:
2017-03-29 20:10:25.326 (Onkyo-AV) onHeartbeat called
2017-03-29 20:10:25.326 (Onkyo-AV) Checking if discovery data has been received
Not getting any devices....
Running Domoticz 3.7197 on Windows
- 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
@Jimmy,
Have you enabled network standby? Otherwise the receiver will not respond unless it's powered on (you even have to wait a bit for the network stack in the receiver to fully start).
Are you able to control the receiver using the Onkyo app on your phone or tablet?
Regards,
Jorg
There should be more logging information before this. However, if the receiver does not respond, it will loop until the device responds.JimmyH1969 wrote:Mhhh... Added the plugin..
This is all i get:
2017-03-29 20:10:25.326 (Onkyo-AV) onHeartbeat called
2017-03-29 20:10:25.326 (Onkyo-AV) Checking if discovery data has been received
Not getting any devices....
Running Domoticz 3.7197 on Windows
Have you enabled network standby? Otherwise the receiver will not respond unless it's powered on (you even have to wait a bit for the network stack in the receiver to fully start).
Are you able to control the receiver using the Onkyo app on your phone or tablet?
Regards,
Jorg
-
- 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
Hi Jorgh,
Yes, i'm using O remote on the iphone and the app detects the TX-NR646 in a second. even on stand-by. I powered up the receiver but that does not make a difference.
Before this i was using a python script and was unable to use the --discover option, i had to specify the ip adres of the receiver to make it work.
Tnx, Jimmy
Yes, i'm using O remote on the iphone and the app detects the TX-NR646 in a second. even on stand-by. I powered up the receiver but that does not make a difference.
Before this i was using a python script and was unable to use the --discover option, i had to specify the ip adres of the receiver to make it work.
Tnx, Jimmy
- 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
@Jimmy,
The discovery process uses a network broadcast, this requires Domoticz to be on the same IP subnet as the Receiver. Might this be an issue? (Different subnet between WLAN and LAN for example?)
The plugin does currently not have the ability to configure an IP address manually, but this could of course be added, but from what I've seen in the protocol specification, autodiscovery should work for all receivers.
It might also be an issue with your Domoticz server, where sending broadcasts is not possible. I've only used the plugin and script I've created earlier on Linux, so this might be a specific Windows issue.
Can someone confirm that they are using the plugin on Windows where it works?
Regards,
Jorg
So apparently the discovery does not work. Does discovery work with the O remote app?JimmyH1969 wrote: Before this i was using a python script and was unable to use the --discover option, i had to specify the ip adres of the receiver to make it work.
Tnx, Jimmy
The discovery process uses a network broadcast, this requires Domoticz to be on the same IP subnet as the Receiver. Might this be an issue? (Different subnet between WLAN and LAN for example?)
The plugin does currently not have the ability to configure an IP address manually, but this could of course be added, but from what I've seen in the protocol specification, autodiscovery should work for all receivers.
It might also be an issue with your Domoticz server, where sending broadcasts is not possible. I've only used the plugin and script I've created earlier on Linux, so this might be a specific Windows issue.
Can someone confirm that they are using the plugin on Windows where it works?
Regards,
Jorg
-
- 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
Hi,
Yes, the O remote app discovers the receiver. Just tried the onkyo-script.py --discover again, but that command returns with no results.
I also thougt this might be a windows thing, the receiver and domoticz are on the same subnet, just like the iphone.
Lets just wait and see if there are more windows users out there..
Thank you so far!
Yes, the O remote app discovers the receiver. Just tried the onkyo-script.py --discover again, but that command returns with no results.
I also thougt this might be a windows thing, the receiver and domoticz are on the same subnet, just like the iphone.
Lets just wait and see if there are more windows users out there..
Thank you so far!
- jorgh
- Posts: 124
- Joined: Friday 27 June 2014 23:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8224
- Location: Netherlands
- Contact:
Re: RE: Re: [RELEASED] Python plugin to control Onkyo receivers
Might also be a firewall issue. Have read that services are blocked by default from sending broadcasts. That might also be the cause.JimmyH1969 wrote:Hi,
Yes, the O remote app discovers the receiver. Just tried the onkyo-script.py --discover again, but that command returns with no results.
I also thougt this might be a windows thing, the receiver and domoticz are on the same subnet, just like the iphone.
Lets just wait and see if there are more windows users out there..
Thank you so far!
As other scripts are also not working with discovery, my guess is that it has something to do with windows (firewall?) blocking broadcasts.
Verstuurd vanaf mijn HTC 10 met Tapatalk
Who is online
Users browsing this forum: No registered users and 0 guests