Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
OnkyoISCP plugin
Re: OnkyoISCP plugin
Yes it also fires the answers received via ISCP as events thanks to the work of Sem;colon.
Please see my answer for https://github.com/abraxxa/EventGhost-O ... n/issues/1.
Please see my answer for https://github.com/abraxxa/EventGhost-O ... n/issues/1.
Re: OnkyoISCP plugin
Yup... I started seeing the commands being received yesterday.
I commented on the thread there... and uploaded here the command sets. Hopefully you can put them into EG as Actions?
I commented on the thread there... and uploaded here the command sets. Hopefully you can put them into EG as Actions?
- Attachments
-
- Onkyo_eiscp_XLS_v1.21.zip
- Onkyo control commands XLS v1.21
- (297.82 KiB) Downloaded 334 times
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
Re: OnkyoISCP plugin
Hi abraxxa.
First, Thanks for this great Plugin. Very handy, i love it, perfect for my Onkyo 808.
But i have 2 Issues:
1) I want to use EG to turn on/off my Onkyo. But when I send pwr00 to shutdown the Onkyo the Plugin will lose its connection, and EG crashes like blaher has described here. if I then manually turn on the Onkyo and restart EG everything works fine until the next pwr00. Is there a solution for this behavior?
2) How can i use payloads with your plugin? I have events for the Volume in EG. I want to use this events to set die Volume to a explicit value. E.g. I have an event Volume['u40'] and now I want to send the following command MVL40. Or I have the event Volume['u3A'] I want to send MVL3A. I've tried MVL{eg.event.payload} but that doesn't work. Any Suggestions?
Greets
Owel
First, Thanks for this great Plugin. Very handy, i love it, perfect for my Onkyo 808.
But i have 2 Issues:
1) I want to use EG to turn on/off my Onkyo. But when I send pwr00 to shutdown the Onkyo the Plugin will lose its connection, and EG crashes like blaher has described here. if I then manually turn on the Onkyo and restart EG everything works fine until the next pwr00. Is there a solution for this behavior?
2) How can i use payloads with your plugin? I have events for the Volume in EG. I want to use this events to set die Volume to a explicit value. E.g. I have an event Volume['u40'] and now I want to send the following command MVL40. Or I have the event Volume['u3A'] I want to send MVL3A. I've tried MVL{eg.event.payload} but that doesn't work. Any Suggestions?
Greets
Owel
Re: OnkyoISCP plugin
I get around it by going into the webpage, (the IP address of your Onkyo using a web browser) and send a '!1PWR01'. After that it works again without crashing. A more automatic method might be to use wget like I outlined here: viewtopic.php?f=10&t=2964&start=15#p21378Owel wrote: 1) I want to use EG to turn on/off my Onkyo. But when I send pwr00 to shutdown the Onkyo the Plugin will lose its connection, and EG crashes like blaher has described here. if I then manually turn on the Onkyo and restart EG everything works fine until the next pwr00. Is there a solution for this behavior?
You could use a trigger of just 'Volume' to run the python command:2) How can i use payloads with your plugin? I have events for the Volume in EG. I want to use this events to set die Volume to a explicit value. E.g. I have an event Volume['u40'] and now I want to send the following command MVL40. Or I have the event Volume['u3A'] I want to send MVL3A. I've tried MVL{eg.event.payload} but that doesn't work. Any Suggestions?
eg.TriggerEvent(eg.event.payload[0][10:11], prefix = eg.event.suffix)
If I counted correctly, (you might need to change the range 10:11), you should get a Volume.40 event which you can use to send a MVL40, or a Volume.3A to send a MVL3A. FWIW, 40 on my prepro is MVL28.
Can I ask what you use the Volume event for?
Re: OnkyoISCP plugin
I haven't found a way to detect when the tcp connection gets closed on the remote (receiver) side. The Python socket class semms to lack an api for it.Owel wrote:Hi abraxxa.
First, Thanks for this great Plugin. Very handy, i love it, perfect for my Onkyo 808.
But i have 2 Issues:
1) I want to use EG to turn on/off my Onkyo. But when I send pwr00 to shutdown the Onkyo the Plugin will lose its connection, and EG crashes like blaher has described here. if I then manually turn on the Onkyo and restart EG everything works fine until the next pwr00. Is there a solution for this behavior?
The Python docs says this: http://docs.python.org/2/howto/sockets#when-sockets-die.
If you look at https://github.com/abraxxa/EventGhost-O ... __.py#L156 you see that I already have a retry logic for such a case that I've hit at home too.
Create action for the fixed volumes and trigger those.Owel wrote:2) How can i use payloads with your plugin? I have events for the Volume in EG. I want to use this events to set die Volume to a explicit value. E.g. I have an event Volume['u40'] and now I want to send the following command MVL40. Or I have the event Volume['u3A'] I want to send MVL3A. I've tried MVL{eg.event.payload} but that doesn't work. Any Suggestions?
Greets
Owel
The receiving side triggers two events for maximum flexibility https://github.com/abraxxa/EventGhost-O ... t__.py#L84
Re: OnkyoISCP plugin
Thx blaher for your response.
1) starting my Onkyo is not the point. The point is, as soon as I power it off via the EGOnkyoISCP plugin (PWR00), EG crashes and i have shut it down by force and restart it. When I turn off the Onkyo by Remote, I think EG behaves as it should. (Have to check this)
2) I think you misunderstood. I have already an Event in the Log with Volume.[u'40']. My Question is, how can i extract the 40 of this Event and use it in the plugin, to send a MLV40. But I think the eg.event.payload[0][10:11] will do this. So I will send in the plugin MLV{eg.event.payload[0][10:11]}. Hope this will solve it, i will check it.
And of course you can ask. I write myself an android app, where i have a slider for volume control. If I watch a movie, and it is to loud (kids already sleeping) then I have to turn down the volume, but not 2dB it's between 7 and 15dB. And with the slider I can set it so an absolute value. Whereas I have to push the Button on the Remote 7-15 times.
@abraxxa:
1) I will check if I have the newest Version of the Plugin.
2) The Receiving side is not my Problem. Volume.(u'40'] is an Event triggered outside of the plugin. But I think the solution mentioned above will help.
Thanks
Owel
1) starting my Onkyo is not the point. The point is, as soon as I power it off via the EGOnkyoISCP plugin (PWR00), EG crashes and i have shut it down by force and restart it. When I turn off the Onkyo by Remote, I think EG behaves as it should. (Have to check this)
2) I think you misunderstood. I have already an Event in the Log with Volume.[u'40']. My Question is, how can i extract the 40 of this Event and use it in the plugin, to send a MLV40. But I think the eg.event.payload[0][10:11] will do this. So I will send in the plugin MLV{eg.event.payload[0][10:11]}. Hope this will solve it, i will check it.
And of course you can ask. I write myself an android app, where i have a slider for volume control. If I watch a movie, and it is to loud (kids already sleeping) then I have to turn down the volume, but not 2dB it's between 7 and 15dB. And with the slider I can set it so an absolute value. Whereas I have to push the Button on the Remote 7-15 times.
@abraxxa:
1) I will check if I have the newest Version of the Plugin.
2) The Receiving side is not my Problem. Volume.(u'40'] is an Event triggered outside of the plugin. But I think the solution mentioned above will help.
Thanks
Owel
Re: OnkyoISCP plugin
@Owel
I have been using the plugin extensively for several days not without any problems. Based on your post, I even specifically tested Power ON/OFF of Main & Zone2 from EG. I even put it in an infinite loop to see if hammering EG with the power commands hangs it... EG had zero issues for me.
btw, I'm using Version: 0.4.1.r1572
also, for your volume item... please post the specific of the solution when you get it working. I'm interested in using EG to set (or reset) the receiver volume based on time of day - just like you, for a sleeping child
I have been using the plugin extensively for several days not without any problems. Based on your post, I even specifically tested Power ON/OFF of Main & Zone2 from EG. I even put it in an infinite loop to see if hammering EG with the power commands hangs it... EG had zero issues for me.
btw, I'm using Version: 0.4.1.r1572
also, for your volume item... please post the specific of the solution when you get it working. I'm interested in using EG to set (or reset) the receiver volume based on time of day - just like you, for a sleeping child
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
Re: OnkyoISCP plugin
So I tested it, but it doesn't work like expected.
I managed to get only the payload with eg.event.payload[0].
Remember the event logged is: HTTP.Volume[u'40']
When i use the OSD action with MVL{eg.event.payload[0]} the OSD shows MVL40.
But when i use the Onkyo ISCP send command with MVL{eg.event.payload[0]} the event OnkyoISCP.MVL 'N/A' and OnkyoISCP.MVLN/A are logged.
If i send MVLfdhasdhkjahdk, i get the same result.
It looks like the {...} part is send directly and not evaluated to the corresponding value(40): So MVL{eg.event.payload[0]} is sent, and not MVL40.
Suggestions?
Owel
I managed to get only the payload with eg.event.payload[0].
Remember the event logged is: HTTP.Volume[u'40']
When i use the OSD action with MVL{eg.event.payload[0]} the OSD shows MVL40.
But when i use the Onkyo ISCP send command with MVL{eg.event.payload[0]} the event OnkyoISCP.MVL 'N/A' and OnkyoISCP.MVLN/A are logged.
If i send MVLfdhasdhkjahdk, i get the same result.
It looks like the {...} part is send directly and not evaluated to the corresponding value(40): So MVL{eg.event.payload[0]} is sent, and not MVL40.
Suggestions?
Owel
Re: OnkyoISCP plugin
So I also tested the other issue.
I downloaded the latest version of _init_.py from your github.
It doesn't work.
When I send the PWR00 Command, i get over 9000 error logs with:
"OnkyoISCP: [Erno 10054] Eine vorhandene Verbindung wurde vom Remotehost geschlossen"
And i have to say that EG does not crash, but it does not react for about 3mins. It looks like there are to many 10054 errors, that are blocking EG.
And it does not reconnect to my Onkyo.
Edit: Ok, it does reconnect but the log is frozen, no new events occur, but EG handles events... interesting...
If I restart EG, everything is fine until the next PWR00.
@Livin: You can send PWR00 and PWR01 without your Onkyo closes the connection?
Edit: I did further research. I changed th py file, and added "self.PrintError(message)" after the message is build.
If the command in the plugin is MVLUP1 the error message is !1MVLUP1
if the command in the plugin is MVL{eg.event.payload[0]} the error message is !1MVL{eg.event.payload[0]}. It seems that I'm correct that the value of variable is not resolved and the variable name is forwarded.
I downloaded the latest version of _init_.py from your github.
It doesn't work.
When I send the PWR00 Command, i get over 9000 error logs with:
"OnkyoISCP: [Erno 10054] Eine vorhandene Verbindung wurde vom Remotehost geschlossen"
And i have to say that EG does not crash, but it does not react for about 3mins. It looks like there are to many 10054 errors, that are blocking EG.
And it does not reconnect to my Onkyo.
Edit: Ok, it does reconnect but the log is frozen, no new events occur, but EG handles events... interesting...
If I restart EG, everything is fine until the next PWR00.
@Livin: You can send PWR00 and PWR01 without your Onkyo closes the connection?
Edit: I did further research. I changed th py file, and added "self.PrintError(message)" after the message is build.
If the command in the plugin is MVLUP1 the error message is !1MVLUP1
if the command in the plugin is MVL{eg.event.payload[0]} the error message is !1MVL{eg.event.payload[0]}. It seems that I'm correct that the value of variable is not resolved and the variable name is forwarded.
Re: OnkyoISCP plugin
I do not get that problem.
Code: Select all
2013-01-10 14:18:17 MACRO: System.PowerON
2013-01-10 14:18:17 ACTION: Trigger event "Zone2.PowerON"
2013-01-10 14:18:17 EVENT: Main.Zone2.PowerON
2013-01-10 14:18:17 MACRO: Zone2.PowerON
2013-01-10 14:18:17 ACTION: Onkyo ISCP: SendCommand: ZPW01
2013-01-10 14:18:18 EVENT: OnkyoISCP.ZPW '01'
2013-01-10 14:18:18 EVENT: OnkyoISCP.ZPW01
2013-01-10 14:18:18 EVENT: OnkyoISCP.NLT 'F300000000120000FFFF00NE'
2013-01-10 14:18:18 EVENT: OnkyoISCP.NLTF300000000120000FFFF00NE
2013-01-10 14:18:19 EVENT: OnkyoISCP.NLS 'U8-MP3tunes'
2013-01-10 14:18:19 EVENT: OnkyoISCP.NLSU8-MP3tunes
2013-01-10 14:18:19 EVENT: System.DeviceRemoved [u'\\\\?\\DISPLAY#ONK0C81#5&30f4f1ad&3&UID1057568#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}']
2013-01-10 14:18:19 TV Not Connected
2013-01-10 14:18:19 EVENT: OnkyoISCP.NLT 'F300000000120000FFFF00NE'
2013-01-10 14:18:19 EVENT: OnkyoISCP.NLTF300000000120000FFFF00NE
2013-01-10 14:18:19 EVENT: OnkyoISCP.NLS 'C0C'
2013-01-10 14:18:19 EVENT: OnkyoISCP.NLSC0C
2013-01-10 14:18:19 MACRO: System.PowerOFF
2013-01-10 14:18:19 ACTION: Trigger event "Zone2.PowerOFF"
2013-01-10 14:18:19 ACTION: Trigger event "wmc.close"
2013-01-10 14:18:19 ACTION: Trigger event "xbmc.close"
2013-01-10 14:18:19 EVENT: TV.Disconnected
2013-01-10 14:18:19 EVENT: Main.Zone2.PowerOFF
2013-01-10 14:18:19 MACRO: Zone2.PowerOFF
2013-01-10 14:18:19 ACTION: Onkyo ISCP: SendCommand: ZPW00
2013-01-10 14:18:19 EVENT: Main.wmc.close
2013-01-10 14:18:19 MACRO: WMC - close
2013-01-10 14:18:19 ACTION: Find Window: ehshell.exe
2013-01-10 14:18:22 EVENT: Main.xbmc.close
2013-01-10 14:18:22 MACRO: XBMC - close
2013-01-10 14:18:22 ACTION: Find Window: XBMC.exe
2013-01-10 14:18:22 ACTION: Kill XBMC process
2013-01-10 14:18:23 EVENT: OnkyoISCP.NLS 'C-P'
2013-01-10 14:18:23 EVENT: OnkyoISCP.NLSC-P
2013-01-10 14:18:23 EVENT: OnkyoISCP.ZPW '00'
2013-01-10 14:18:23 EVENT: OnkyoISCP.ZPW00
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
Re: OnkyoISCP plugin
@ Livin: Ok, Zone2 is not the Problem. Just try the same thing with PWR00 and PWR01 instead of ZPW00 and ZPW01
@all: I finally got 2) working. I looked deeper in the code of this plugin, and in the code of the OSD plugin. I found out that the OSD plugin parses the command with eg.ParseString(). I tried this with the OnkyoISCP plugin and what can i say? - It works! YEAH!
I've done a pull request on Github. Try it.
Owel
@all: I finally got 2) working. I looked deeper in the code of this plugin, and in the code of the OSD plugin. I found out that the OSD plugin parses the command with eg.ParseString(). I tried this with the OnkyoISCP plugin and what can i say? - It works! YEAH!
I've done a pull request on Github. Try it.
Owel
Re: OnkyoISCP plugin
@abraxxa
If you can make the plugin use a "mapping" file for Actions that would be great. I attached the latest XLS. It would be really nice if the plugin could read the XLS directly (without modifications) and create the Action for each command.
@Owel
my first post...
"I have been using the plugin extensively for several days not without any problems. Based on your post, I even specifically tested Power ON/OFF of Main & Zone2 from EG. I even put it in an infinite loop to see if hammering EG with the power commands hangs it... EG had zero issues for me."
If you can make the plugin use a "mapping" file for Actions that would be great. I attached the latest XLS. It would be really nice if the plugin could read the XLS directly (without modifications) and create the Action for each command.
@Owel
my first post...
"I have been using the plugin extensively for several days not without any problems. Based on your post, I even specifically tested Power ON/OFF of Main & Zone2 from EG. I even put it in an infinite loop to see if hammering EG with the power commands hangs it... EG had zero issues for me."
- Attachments
-
- Onkyo_ISCP-V1.21_2011.zip
- Onkyo command set v 1.21
- (297.82 KiB) Downloaded 308 times
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
Re: OnkyoISCP plugin
but the code (log) you provided was only with Zone2.
Can you also provide a log with the PWR00 and PWR01?
Thanks
Owel
Can you also provide a log with the PWR00 and PWR01?
Thanks
Owel
Re: OnkyoISCP plugin
log looks the same just says PWR and not ZPWOwel wrote:but the code (log) you provided was only with Zone2.
Can you also provide a log with the PWR00 and PWR01?
Thanks
Owel
I suggest you reinstall EG. I've had strange issues many times (plugins not loading, devices not recognized, etc)... a clean EG install always fixes them for me.
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
Re: OnkyoISCP plugin
Re-install has not fixed it.
But I don't think it will work either. Because, can you explain how the PWR01 will work if the receiver is in standby? For my understanding, if the Onkyo is in standby, all connections are closed and no new can be established until the Onkyo is turned on. correct?
But I don't think it will work either. Because, can you explain how the PWR01 will work if the receiver is in standby? For my understanding, if the Onkyo is in standby, all connections are closed and no new can be established until the Onkyo is turned on. correct?