Onkyo Receiver Plugin

If you have a windows machine thatll likely be on when you need your onkyo, use eventghost, works great. I deleted this plugin a while ago and all it takes is a single http call.

Have Onkyo TX-NR717 and VeraPlus with firmware 1.7.1754. Been using “Onkyo Receiver (AVR)” plugin for several weeks now. Have the modified files so I do not get the “Can’t Detect Device” message. Yesterday starting seeing the message out of the blue. Checked today and found the IP in the “Onkyo Receiver (AVR)” device was missing. No idea why the IP would simply disappear but, that is what happened. Has anyone else seen this behavior? Had a lot of strange things happen with my VeraLite and UI7 but, don’t remember an IP simply disappearing.

the comm failiure issue is not really new
i have had it on my vera lite for the last 1-1.5 years
and now on my vera plus

it happens when the luup engine is restarted too many times back toback in a short time
things that would do that are

  • multiple app updates/installs
  • aggressively working on scenes
  • forcing luup to reload

thequickest way to fix it has always been to just go to the onkyo device
advanced
variables

you will see CommFailure and CommFailure time
both will have a value
clear them both
save
reload luup

again
this only becomes an issue on multiple luup reloads

its fine after that

[quote=“charettepa, post:263, topic:178032”]thequickest way to fix it has always been to just go to the onkyo device
advanced
variables

you will see CommFailure and CommFailure time
both will have a value
clear them both
save
reload luup

again
this only becomes an issue on multiple luup reloads

its fine after that[/quote]

This worked for me. Thanks!

I did some thinking and digging this weekend and found the Chrome App which is really quite nice and allows for Speaker A/B control. It’s free.

I asked if the developer would convert it to iOS app since the onkyo app doesn’t offer control of A/B speakers. Or maybe someone can continue to develop the onkyo plugin for Vera and add A/B speaker control to it.

Does anyone know how to remove the

“OnkyoZone3” and “OnkyoZone2” devices? I would only want to use the primary device “Onkyo Receiver (AVR)” and delete or remove the other 2. I do not mean to “hide” them in vera but to remove them.

possibly by editing the correct value in the “Number of zones:” where by default “false” is given. I tried to put “1” there but that doesn’t help and changes to false again…

Hello,

The Bluetooth input selector seems to be missing from the plugin. It definitely shows up on the Android app, and I confirmed that once I connect a Bluetooth device to the Onkyo, I have to also change the input setting via the remote to Bluetooth.

I’m wondering if it’s possible to switch to Bluetooth via this plugin?

Thx
-Ted

Wanted to let you know that the plugin is also working for the TX-NR616. Thanks ! :slight_smile:

[quote=“Sender, post:266, topic:178032”]Does anyone know how to remove the

“OnkyoZone3” and “OnkyoZone2” devices? I would only want to use the primary device “Onkyo Receiver (AVR)” and delete or remove the other 2. I do not mean to “hide” them in vera but to remove them.

possibly by editing the correct value in the “Number of zones:” where by default “false” is given. I tried to put “1” there but that doesn’t help and changes to false again…[/quote]

You have to edit J_OnkyoConfig.js or J_OnkyoConfig_UI7.js when ui7. Find the line: if (zoneCount === undefined) { zoneCount = 3; } Probably have to change it to 1 for only the main device: if (zoneCount === undefined) { zoneCount = 1; }

Working on NR809. The device icon presented as bulb, Is there any way to change this?

I’m have the ios App homewave which sees the volume slider as a dimmer. When I use the slider in the app the volume doesn’t go up or down.

This is the LuaUpnp.log when I use the slider in the Vera UI:

JobHandler_LuaUPnP::HandleActionRequest device: 386 service: urn:onkyo-com:serviceId:Receiver1 action: SetVolumeTarget <0x71a76520> JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=386 <0x71a76520> JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:onkyo-com:serviceId:Receiver1 <0x71a76520> JobHandler_LuaUPnP::HandleActionRequest argument action=SetVolumeTarget <0x71a76520> JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=28 <0x71a76520> Device_Variable::m_szValue_set device: 386 service: urn:micasaverde-com:serviceId:Volume1 variable: Volume was: 17 now: 28 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x72276520> Device_Variable::m_szValue_set device: 386 service: urn:upnp-org:serviceId:RenderingControl1 variable: Volume was: 17 now: 28 #hooks: 0 upnp: 0 skip: 0 v:0xdc3008/NONE duplicate:0 <0x72276520>

This is the LuaUpnp.log when I use the slider in the HomeWave App:

JobHandler_LuaUPnP::HandleActionRequest device: 386 service: urn:upnp-org:serviceId:RenderingControl1 action: SetVolume <0x71e76520> JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=386 <0x71e76520> JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-org:serviceId:RenderingControl1 <0x71e76520> JobHandler_LuaUPnP::HandleActionRequest argument action=SetVolume <0x71e76520> JobHandler_LuaUPnP::HandleActionRequest argument DesiredVolume=21 <0x71e76520> 0Device_LuaUPnP::HandleActionRequest 386 none of the 1 implementations handled it <0x71e76520> JobHandler_LuaUPnP::RunAction device 386 action urn:upnp-org:serviceId:RenderingControl1/SetVolume failed with 501/No implementation <0x71e76520>

It seems that the Vera UI uses the service: urn:onkyo-com:serviceId:Receiver1 with function SetVolumeTarget
and the IOS App uses urn:upnp-org:serviceId:RenderingControl1 with function SetVolume

Is there a way I can adjust the volume with the IOS app and still use the Vera UI to?

Nevermind solved it by creating a virtual dimmer

[url=http://forum.micasaverde.com/index.php?topic=8363.0]http://forum.micasaverde.com/index.php?topic=8363.0[/url]
[url=http://forum.micasaverde.com/index.php?topic=33069.0]http://forum.micasaverde.com/index.php?topic=33069.0[/url]

For anyone who wants to control their volume with the slider in the Homewave App (ios) you need to fix this line

File: I_OnkyoReceiver1.xml
Line: 703
This line

            <serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId>

Should be

            <serviceId>urn:upnp-org:serviceId:RenderingControl1</serviceId>

I have a Sony XBR65X850C smart TV (android OS) and onkyo tx-nr545 receiver and based on the old topic below, am I able to turn on the TV via the hdmi cable and this onkyo plugin when I switch to that input or via some other method? If so, what exactly do I need to do? I am a newbie so please be very specific.

I am able to get my onkyo to work with this plugin but havent tested all the functions (just power/volume) for now.

Is creating a macro viable?

Thanks!
Steve

[quote=“jullio, post:14, topic:178032”]The Onkyo receiver has the capability to control the tv through an hdmi cable. The Onkyo receiver calls it RIHD and at least my TV (Visio Mseries) calls it CEC. My TV can turn on and off my Onkyo receiver through CEC. I saw the option in the Onkyo App to turn off the TV from the receiver. Has anyone got this to work? Onkyo says it is possible.

If you would like I can add a command in the Onkyo Plugin to turn the tv off or on. I just need testers to try it out. I wanted to add this functionality but I could never get my TV to turn off from the Onkyo App.[/quote]

[quote=“futurescape, post:274, topic:178032”]I have a Sony XBR65X850C smart TV (android OS) and onkyo tx-nr545 receiver and based on the old topic below, am I able to turn on the TV via the hdmi cable and this onkyo plugin when I switch to that input or via some other method? If so, what exactly do I need to do? I am a newbie so please be very specific.

I am able to get my onkyo to work with this plugin but havent tested all the functions (just power/volume) for now.

Is creating a macro viable?

Thanks!
Steve

[quote=“jullio, post:14, topic:178032”]The Onkyo receiver has the capability to control the tv through an hdmi cable. The Onkyo receiver calls it RIHD and at least my TV (Visio Mseries) calls it CEC. My TV can turn on and off my Onkyo receiver through CEC. I saw the option in the Onkyo App to turn off the TV from the receiver. Has anyone got this to work? Onkyo says it is possible.

If you would like I can add a command in the Onkyo Plugin to turn the tv off or on. I just need testers to try it out. I wanted to add this functionality but I could never get my TV to turn off from the Onkyo App.[/quote][/quote]

Maybe you don’t necessarily need this plugin. I think both devices support ARC
[url=http://www.cnet.com/news/what-is-audio-return-channel-arc/]http://www.cnet.com/news/what-is-audio-return-channel-arc/[/url]

If they don’t maybe you could use the ping plugin to check if the TV is switched on. But some tv always respond to a ping request even when off because the network card is always on.

I haven’t seen a possibility for the Android app ‘Tasker’ to be installed on a tv but I could be wrong.

Thanks for your advice. I tried that but it’s flaky with my setup.

Another question:

I can turn my receiver on and off with Alexa but am I able to switch inputs, lower the volume or other commands through alexa and this plug-in? If so, how do I do that? Please be very specific as I’m a newbie and don’t know anything about pleg/luup/lua but I’m an IT consultant so I learn quickly.

Thanks!

[quote=“futurescape, post:276, topic:178032”]Thanks for your advice. I tried that but it’s flaky with my setup.

Another question:

I can turn my receiver on and off with Alexa but am I able to switch inputs, lower the volume or other commands through alexa and this plug-in? If so, how do I do that? Please be very specific as I’m a newbie and don’t know anything about pleg/luup/lua but I’m an IT consultant so I learn quickly.

Thanks![/quote]

My guess is that you turn your receiver on and off with Alexa using an URL.
[url=http://wiki.micasaverde.com/index.php/UI_Simple]http://wiki.micasaverde.com/index.php/UI_Simple[/url]
The same way you can change te channel and volume.

I always use this method:

Go to this url
http://[YOUR VERA IP]:3480/data_request?id=invoke

select the Onkyo device and you should see this list:

[code]
urn:micasaverde-com:serviceId:DiscretePower1
*Off
*On

urn:upnp-org:serviceId:SwitchPower1
*SetTarget (newTargetValue)
*GetTarget
GetStatus
-Status

urn:micasaverde-com:serviceId:InputSelection1
*DiscreteinputCable
*DiscreteinputCD1
DiscreteinputCD2
DiscreteinputCDR
DiscreteinputDAT
*DiscreteinputDVD
*DiscreteinputDVI
*DiscreteinputHDTV
DiscreteinputLD
DiscreteinputMD
*DiscreteinputPC
DiscreteinputPVR
*DiscreteinputTV
DiscreteinputTV/VCR
*DiscreteinputVCR
*Input1
*Input10
*Input2
*Input3
*Input4
*Input5
*Input6
*Input7
*Input8
*Input9
*Source
ToggleInput
-Surround
-Input
-NetService
-Video
-InputName

urn:micasaverde-com:serviceId:Volume1
*Down
*Mute
*Up
-Volume

urn:upnp-org:serviceId:RenderingControl1
ListPresets (InstanceID)
SelectPreset (InstanceID,PresetName)
GetBrightness (InstanceID)
SetBrightness (InstanceID,DesiredBrightness)
GetContrast (InstanceID)
SetContrast (InstanceID,DesiredContrast)
GetSharpness (InstanceID)
SetSharpness (InstanceID,DesiredSharpness)
GetRedVideoGain (InstanceID)
SetRedVideoGain (InstanceID,DesiredRedVideoGain)
GetGreenVideoGain (InstanceID)
SetGreenVideoGain (InstanceID,DesiredGreenVideoGain)
GetBlueVideoGain (InstanceID)
SetBlueVideoGain (InstanceID,DesiredBlueVideoGain)
GetRedVideoBlackLevel (InstanceID)
SetRedVideoBlackLevel (InstanceID,DesiredRedVideoBlackLevel)
GetGreenVideoBlackLevel (InstanceID)
SetGreenVideoBlackLevel (InstanceID,DesiredGreenVideoBlackLevel)
GetBlueVideoBlackLevel (InstanceID)
SetBlueVideoBlackLevel (InstanceID,DesiredBlueVideoBlackLevel)
GetColorTemperature (InstanceID)
SetColorTemperature (InstanceID,DesiredColorTemperature)
GetHorizontalKeystone (InstanceID)
SetHorizontalKeystone (InstanceID,DesiredHorizontalKeystone)
GetVerticalKeystone (InstanceID)
SetVerticalKeystone (InstanceID,DesiredVerticalKeystone)
*GetMute (InstanceID,Channel)
*SetMute (InstanceID,Channel,DesiredMute)
GetVolume (InstanceID,Channel)
*SetVolume (InstanceID,Channel,DesiredVolume)
*GetVolumeDB (InstanceID,Channel)
*SetVolumeDB (InstanceID,Channel,DesiredVolume)
GetVolumeDBRange (InstanceID,Channel)
GetLoudness (InstanceID,Channel)
SetLoudness (InstanceID,Channel,DesiredLoudness)
-Mute
-Volume
-VolumeDB
-A_ARG_TYPE_Channel
-A_ARG_TYPE_PresetName
-A_ARG_TYPE_InstanceID
-PresetNameList
-Loudness

urn:upnp-org:serviceId:AVTransport1
*SetAVTransportURI (InstanceID,CurrentURI,CurrentURIMetaData)
*SetNextAVTransportURI (InstanceID,NextURI,NextURIMetaData)
*GetMediaInfo (InstanceID)
*GetTransportInfo (InstanceID)
*GetPositionInfo (InstanceID)
*GetDeviceCapabilities (InstanceID)
GetTransportSettings (InstanceID)
*Stop (InstanceID)
*Play (InstanceID,Speed)
*Pause (InstanceID)
Record (InstanceID)
*Seek (InstanceID,Unit,Target)
*Next (InstanceID)
*Previous (InstanceID)
*SetPlayMode (InstanceID,NewPlayMode)
*SetRecordQualityMode (InstanceID,NewRecordQualityMode)
GetCurrentTransportActions (InstanceID)
-LastChange
-PossiblePlaybackStorageMedia
-PossibleRecordStorageMedia
-PossibleRecordQualityModes
-NumberOfTracks
-CurrentMediaDuration
-AVTransportURI
-AVTransportURIMetaData
-NextAVTransportURI
-NextAVTransportURIMetaData
-PlaybackStorageMedium
-RecordStorageMedium
-RecordMediumWriteStatus
-CurrentRecordQualityMode
-CurrentTrackMetaData
-CurrentTrackURI
-CurrentTrack
-CurrentTrackDuration
-TransportState
-TransportStatus
-TransportPlaySpeed
-CurrentPlayMode
-CurrentTransportActions
-A_ARG_TYPE_InstanceID
-A_ARG_TYPE_SeekMode
-A_ARG_TYPE_SeekTarget
-AbsoluteTimePosition
-RelativeTimePosition

urn:micasaverde-com:serviceId:MenuNavigation1
*Back
*Clear
*Down
*Exit
*Left
*Menu
*MenuAlt
*PageDown
*PageUp
*Right
*Select
*Up

urn:micasaverde-com:serviceId:HaDevice1
Reconfigure
StressTest
Remove
*Poll
*ToggleState
SetPollFrequency (PollingEnabled,PollMinDelay)
AllowPairing (Seconds)
-CommFailure
-ChildrenSameRoom
-CommFailureTime
-LastUpdate
-Configured

urn:onkyo-com:serviceId:Receiver1
*SetVolumeTarget (newTargetValue)
SetInputTarget (newTargetValue)
*InputFM
*InputAM
*InputDLNA
*InputRadioFav
*InputFav1
*InputUSBFront
*InputUSBRear
InputUSBToggle
*InputNET
*InputAirplay
*Macro1
*Macro2
*ToggleMute
*TVOn
*TVOff
*TVInput
*SetNetServiceTarget (newTargetValue)
*SetSurroundTarget (newTargetValue)
*SetHDMIOutTarget (newTargetValue)
-UI7Check
-InputName
-NetServiceName
-HDMIOut
-HDMIOutTarget
-LastChange
-ModelNum
-LOGLEVEL
-DEBUGMODE
-MacroInput1
-MuteTarget
-MacroNetIndex1
-MacroInput2
-MacroNetservice2
-MacroNetIndex2
-NetService
-NetServiceTarget
-ArtistName
-AlbumName
-TitleName
-TrackInfo
-PlayStatus
-RepeatStatus
-ShuffleStatus
-MacroNetservice1

urn:micasaverde-com:serviceId:MediaNavigation1[/code]

If you click on one of these actions you get redirected to an url. When you clicked on one of the actions and the action works on the device you can copy paste the url to Alexa.

OK awesome. Thanks for that info. So I chose Mute from the list and got the text below.

<u:MuteResponse xmlns:u=“urn:micasaverde-com:service:Volume:1”>
OK
</u:MuteResponse>

Do I just use the bold text below?

See the attachment for manually adding something to the HA bridge. Is that where I add it?

Here is a url example of me running a scene to switch inputs, but do I need to create a scene to Mute the receiver? If I just want to make use the switch dropdown field, what should my url be to mute?

http://192.168.1.249:3480/data_request?id=action&output_format=json&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=20

[quote=“futurescape, post:278, topic:178032”]OK awesome. Thanks for that info. So I chose Mute from the list and got the text below.

<u:MuteResponse xmlns:u=“urn:micasaverde-com:service:Volume:1”>
OK
</u:MuteResponse>

Do I just use the bold text below?

See the attachment for manually adding something to the HA bridge. Is that where I add it?

Here is a url example of me running a scene to switch inputs, but do I need to create a scene to Mute the receiver? If I just want to make use the switch dropdown field, what should my url be to mute?

http://192.168.1.249:3480/data_request?id=action&output_format=json&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=20[/quote]

No that’s not the URL. The URL that mutes the Onkyo in your case would be:
[url=http://192.168.1.249:3480/data_request?id=action&DeviceNum=386&serviceId=urn:micasaverde-com:serviceId:Volume1&action=Mute]http://192.168.1.249:3480/data_request?id=action&DeviceNum=386&serviceId=urn:micasaverde-com:serviceId:Volume1&action=Mute[/url]

I’m looking at your screenshot but I don’t understand the dim url. The Onkyo plugin doesn’t have the dim service or is device 34 not your Onkyo?

Hi, I am a newbie to Vera (UI17) and am trying to get the Onkyo plugin sorted. It’s working but most of the input parameters are wrong (ie Tuner in Vera switches receiver to CD) so wondering which file I should edit to correct. Also how to add others and where I can locate the correct input numbers for my receiver.

I have an Onkyo TX-NR646 and have loaded the following files
device_file: D_OnkyoReceiver1.xml
Impl_file: I_OnkyoReceiver1.xml
device_json: D_OnkyoReceiver1_UI7.json

Thank you,
dramaking9