yes and no
so i have one of these i used to use i found the Broadlink Ir baster much easier
but i will post the code i use to use im my setup maybe u could use it for something
[code]dofile(“/root/SceneScripts/Devices”)
– IR Codes
Pioneer= {}
Pioneer.IROut= “2”
Pioneer.Power= {}
Pioneer.Power.Output= Pioneer.IROut
Pioneer.Power.Frequency= “19290”
Pioneer.Power.Code= “1,164,85,9,33,9,13,8,33,9,13,8,13,8,33,9,13,8,33,9,13,8,33,9,13,8,33,9,33,9,13,8,33,9,13,8,13,8,13,8,33,9,33,9,33,9,13,8,13,8,13,8,33,9,33,9,13,8,13,8,13,8,33,9,33,9,33,9,385,172,85,9,33,9,12,9,33,9,12,9,12,9,33,9,12,9,33,9,12,9,33,9,12,9,33,9,33,9,12,9,33,9,12,9,12,9,12,9,33,9,33,9,33,9,13,8,13,8,13,8,33,9,33,9,13,8,13,8,13,8,33,9,33,9,33,9,385”
Pioneer.Input1= {}
Pioneer.Input1.Output= Pioneer.IROut
Pioneer.Input1.Frequency= “39936”
Pioneer.Input1.Code= “1,340,169,22,63,22,21,22,63,22,21,22,21,22,63,22,21,22,63,22,21,22,63,22,21,22,63,22,63,22,21,22,63,22,21,22,21,22,21,22,63,22,63,22,63,22,21,22,63,22,21,22,63,22,63,22,21,22,21,22,21,22,63,22,21,22,63,22,798,340,169,22,63,22,21,22,63,22,21,22,21,22,63,22,21,22,63,22,21,22,63,22,21,22,63,22,63,22,21,22,63,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,63,22,63,22,63,22,63,22,63,22,63,22,63,22,63,22,21,22,21,22,798”
Pioneer.Input2= {}
Pioneer.Input2.Output= Pioneer.IROut
Pioneer.Input2.Frequency= “19290”
Pioneer.Input2.Code= “1,164,85,9,33,9,11,10,33,9,11,10,11,10,33,9,11,10,33,9,11,10,33,9,12,9,33,9,33,9,12,9,33,9,12,9,33,9,12,9,33,9,12,9,12,9,12,9,12,9,33,9,12,9,33,9,12,9,33,9,33,9,33,9,33,9,12,9,385,173,84,9,33,9,12,9,33,9,12,9,12,9,33,9,12,9,33,9,12,9,33,9,12,9,33,9,33,9,12,9,33,9,12,9,33,9,12,9,33,9,12,9,12,9,12,9,12,9,33,9,12,9,33,9,12,9,33,9,33,9,33,9,33,9,12,9,385”
Pioneer.Input3= {}
Pioneer.Input3.Output= Pioneer.IROut
Pioneer.Input3.Frequency= “39936”
Pioneer.Input3.Code= “1,10,63,22,63,22,21,22,63,22,63,22,63,22,798,340,169,22,63,22,21,22,63,22,21,22,21,22,63,22,21,22,63,22,21,22,63,22,21,22,63,22,63,22,21,22,63,22,21,22,21,22,21,22,21,22,21,22,63,22,21,22,21,22,21,22,63,22,63,22,63,22,63,22,21,22,63,22,63,22,63,22,798,340,169,22,63,22,21,22,63,22,21,22,21,22,63,22,21,22,63,22,21,22,63,22,21,22,63,22,63,22,21,22,63,22,21,22,21,22,21,22,21,22,21,22,63,22,21,22,21,22,21,22,63,22,63,22,63,22,63,22,21,22,63,22,63,22,63,22,798,340,169,22,63,22,21,22,63,22,21,22,21,22,63,22,21,22,63,22,21,22,63,22,21,22,63,22,63,22,21,22,63,22,21,22,21,22,21,22,21,22,21,22,63,22,21,22,21,22,21,22,63,22,63,22,63,22,63,22,21,22,63,22,63,22,63,22,798,340,169,22,63,22,21,22,63,22,21,22,21,22,63,22,21,22,63,22,21,22,63,22,21,22,63,22,63,22,21,22,63,22,21,22,21,22,21,22,21,22,21,22,63,22,21,22,21,22,21,22,63,22,63,22,63,22,63,22,21,22,63,22,63,22,63,22,798,340,169,22,63,22,21,22,63,22,21,22,21,22,63,22,21,22,63,22,21,22,63,22,21,22,63,22,63,22,21,22,63,22,21,22,21,22,21,22,21,22,21,22,63,22,21,22,21,22,21,22,63,22,63,22,63,22,63,22,21,22,63,22,63,22,63,22,798”
Pioneer.Input4= {}
Pioneer.Input4.Output= Pioneer.IROut
Pioneer.Input4.Frequency= “40000”
Pioneer.Input4.Code= “1,360,180,22,67,22,22,22,67,22,22,22,22,22,67,22,22,22,67,22,22,22,67,22,22,22,67,22,67,22,22,22,67,22,22,22,22,22,22,22,67,22,67,22,67,22,22,22,67,22,22,22,67,22,67,22,22,22,22,22,22,22,67,22,22,22,67,22,989,360,180,22,67,22,22,22,67,22,22,22,22,22,67,22,22,22,67,22,22,22,67,22,22,22,67,22,67,22,22,22,67,22,22,22,67,22,22,22,67,22,22,22,22,22,22,22,67,22,67,22,22,22,67,22,22,22,67,22,67,22,67,22,22,22,22,22,989”
Pioneer.Input5= {}
Pioneer.Input5.Output= Pioneer.IROut
Pioneer.Input5.Frequency= “40000”
Pioneer.Input5.Code= “1,344,166,21,65,21,22,21,65,21,22,21,22,21,65,21,22,21,65,21,22,21,65,21,22,21,65,21,65,21,22,21,65,21,22,21,22,21,65,21,65,21,65,21,65,21,22,21,22,21,65,21,65,21,22,21,22,21,22,21,22,21,65,21,65,21,22,21,1039,344,166,21,65,21,22,21,65,21,22,21,22,21,65,21,22,21,65,21,22,21,65,21,22,21,65,21,65,21,22,21,65,21,22,21,65,21,65,21,22,21,65,21,22,21,22,21,65,21,65,21,22,21,22,21,65,21,22,21,65,21,65,21,22,21,22,21,1039”
–Cablebox
Cable= {}
Cable.IROut= “2”
Cable.Power= {}
Cable.Power.Output= Cable.IROut
Cable.Power.Frequency= “57339”
Cable.Power.Code= “1,191,191,47,146,47,146,47,48,47,146,47,146,47,146,47,146,47,146,47,48,47,48,47,48,47,48,47,48,47,146,47,48,47,48,47,48,47,48,47,48,47,146,47,146,47,146,48,2187”
–Tendak 4 x 1 HDMI Switch
HDMISwitcher= {}
HDMISwitcher.IROut= “3”
HDMISwitcher.Input1= {}
HDMISwitcher.Input1.Output= HDMISwitcher.IROut
HDMISwitcher.Input1.Frequency= “37993”
HDMISwitcher.Input1.Code= “1,343,171,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,63,22,63,22,63,22,63,22,63,22,63,22,63,22,63,22,21,22,63,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,63,22,63,22,63,22,63,22,63,22,63,22,63,22,759,343,85,22,759”
HDMISwitcher.Input2= {}
HDMISwitcher.Input2.Output= HDMISwitcher.IROut
HDMISwitcher.Input2.Frequency= “37993”
HDMISwitcher.Input2.Code= “1,343,171,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,63,22,63,22,63,22,63,22,63,22,63,22,63,22,63,22,21,22,63,22,63,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,63,22,63,22,63,22,63,22,63,22,63,22,759,343,85,22,759”
HDMISwitcher.Input3= {}
HDMISwitcher.Input3.Output= HDMISwitcher.IROut
HDMISwitcher.Input3.Frequency= “37993”
HDMISwitcher.Input3.Code= “1,343,171,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,63,22,63,22,63,22,63,22,63,22,63,22,63,22,63,22,21,22,63,22,63,22,63,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,63,22,63,22,63,22,63,22,63,22,759,343,85,22,759,343,85,22,759”
HDMISwitcher.Input4= {}
HDMISwitcher.Input4.Output= HDMISwitcher.IROut
HDMISwitcher.Input4.Frequency= “37993”
HDMISwitcher.Input4.Code= “1,343,171,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,63,22,63,22,63,22,63,22,63,22,63,22,63,22,63,22,21,22,63,22,21,22,21,22,63,22,21,22,21,22,21,22,21,22,21,22,63,22,63,22,21,22,63,22,63,22,63,22,63,22,759,343,85,22,759”
– BenQ
Projector= {}
Projector.IROut= “1”
Projector.Power= {}
Projector.Power.Output= Projector.IROut
Projector.Power.Frequency= “38000”
Projector.Power.Code= “1,343,171,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,64,20,64,20,20,20,20,20,20,20,64,20,20,20,20,20,20,20,20,20,20,20,20,20,64,20,20,20,64,20,64,20,64,20,64,20,64,20,64,20,1781”
Projector.HDMI1= {}
Projector.HDMI1.Output= Projector.IROut
Projector.HDMI1.Frequency= “38000”
Projector.HDMI1.Code= “1,343,172,23,19,23,19,23,20,23,20,23,19,23,19,23,19,23,19,23,19,23,19,23,19,23,19,22,61,23,61,23,19,23,19,23,61,23,19,23,19,23,19,23,19,23,19,23,61,22,20,22,19,23,61,23,61,23,61,23,61,23,61,23,19,23,61,22,1636”
Projector.HDMI2= {}
Projector.HDMI2.Output= Projector.IROut
Projector.HDMI2.Frequency= “38000”
Projector.HDMI2.Code= “1,342,172,23,19,23,19,23,19,23,19,23,19,23,19,22,20,22,19,23,19,23,19,23,19,23,19,23,61,23,61,23,19,23,19,23,61,23,19,22,61,23,19,23,19,23,19,23,61,23,20,23,19,23,61,23,19,23,61,23,61,22,61,23,19,23,61,23,1636”
–Minix X7
Minix= {}
Minix.IROut= “2”
Minix.Power= {}
Minix.Power.Output= Minix.IROut
Minix.Power.Frequency= “38000”
Minix.Power.Code= “69,341,171,22,63,22,21,22,21,21,21,22,21,22,21,21,22,21,21,22,21,22,63,22,63,22,63,22,63,22,63,22,63,22,63,22,21,21,21,22,21,22,63,22,63,22,21,21,21,22,21,22,63,22,63,22,63,22,21,21,21,22,63,22,63,22,63,22,1526,342,85,22,1526”
Minix.Up= {}
Minix.Up.Output= Minix.IROut
Minix.Up.Frequency= “38000”
Minix.Up.Code= “69,342,171,21,64,21,22,21,21,22,21,22,21,21,21,22,21,22,21,21,21,22,63,22,63,22,63,22,63,22,63,22,63,22,63,22,21,22,63,22,63,22,21,21,21,22,21,22,63,22,21,22,63,22,21,21,21,22,63,22,63,22,63,22,21,22,63,22,1523,341,85,22,3644”
Minix.Down= {}
Minix.Down.Output= Minix.IROut
Minix.Down.Frequency= “38000”
Minix.Down.Code= “69,342,171,21,64,21,21,22,21,22,21,21,21,22,21,22,21,22,21,21,21,22,63,22,63,22,63,22,63,22,63,22,63,22,63,22,21,22,63,22,63,22,21,21,64,21,21,22,21,22,21,21,64,21,21,22,21,22,63,22,21,21,64,21,64,21,64,21,1524,341,85,21,3642”
– Device Inputs
Pioneer.Minix= Pioneer.Input1
Pioneer.Chromecast= Pioneer.Input2
Pioneer.Cable= Pioneer.Input3
Pioneer.Game= Pioneer.Input4
Pioneer.USB= Pioneer.Input5
HDMISwitcher.Chromecast= HDMISwitcher.Input2
HDMISwitcher.Minix= HDMISwitcher.Input1
HDMISwitcher.Cable= HDMISwitcher.Input3
HDMISwitcher.Aux= HDMISwitcher.Input4
Projector.Chromcast= Projector.HDMI1
Projector.Minix= Projector.HDMI1
Projector.Cable= Projector.HDMI1
–functions
function SendIR(Info, Count)
luup.io.write(“sendir,1:” … Info.Output … “,1,” … Info.Frequency … “,” … Count … “,” … Info.Code, GC100)
luup.sleep(500)
end
[/code]
the IROut is the port
and it would send it to the main GC100
I had a device list also with something like
ApplianceModule= 389
ApplianceModule1= 390
ApplianceModule2= 391
ApplianceModule3= 392
ApplianceModule4= 393
ApplianceModule5= 394
SceneController= 2
SceneController1= 191
ALTUI= 299
AVRE400USAMain= 358
AVRInputControl= 317
AVRVolume= 388
BackPorch= 200
BIBackPorch= 254
BIBackPorchMotionSensor= 255
BIDriveway= 252
BIDrivewayMotionSensor= 253
BIFrontDoor= 248
BIFrontDoorMotionSensor= 249
BluetoothNetwork= 190
................. and more devices
then functions code
[code]dofile(“/root/SceneScripts/Devices.luup”)
dofile(“/root/SceneScripts/HomeTheater.IRCodes.luup”)
function SetInput(Input)
luup.io.write(Input, GC100)
end
function AmpSendPower()
luup.io.write(HomeTheater.Amp.Power, GC100)
luup.sleep(500)
end
function RestartAmp()
AmpSendPower()
AmpSendPower()
end
function ProjSendPower()
luup.io.write(HomeTheater.Projector.Power, GC100)
luup.sleep(500)
end
function ConfigureHomeTheater(Configuration)
local TheaterStatus= luup.variable_get(“urn:upnp-org:serviceId:SwitchPower1”, “Status”, HomeTheater)
local Projector= {}
local Projector.Status= luup.variable_get(“urn:jnethost-com:serviceId:State”, “Projector”, HomeTheater)
local Projector.Input= luup.variable_get(“urn:jnethost-com:serviceId:State”, “ProjectorInput”, HomeTheater)
local Amp= {}
local Amp.Status= luup.variable_get(“urn:jnethost-com:serviceId:State”, “Amp”, HomeTheater)
local Amp.Input= luup.variable_get(“urn:jnethost-com:serviceId:State”, “AmpInput”, HomeTheater)
if (Configuration.Theater.Needed == 1)
then
luup.call_action("urn:upnp-org:serviceId:SwitchPower1", "SetTarget", {[newTargetValue] = "1"}, HomeTheater)
end
if not (Configuration.Projector.Needed == Projector.Status)
then
ProjSendPower()
if(Configuration.ProjectorNeeded == "0")
then
ProjSendPower()
end
end
if not (Configuration.Projector.Input == nil)
then
SetInput(IRCodes.Projector[Configuration.Projector.Input])
end
if not (Configuration.Amp.Needed == AmpStatus)
then
AmpSendPower()
end
if not (Configuration.Amp.Input == nil)
then
SetInput(IRCodes.Amp[Configuration.Amp.Input])
RestartAmp()
end
if not (Configuration.HDMISwitch.Input == nil)
then
SetInput(IRCodes.HDMISwitch[Configuration.HDMISwitch.Input])
end
end
[/code]