Semi-automatic creation of Luup devices for controlling physical devices via IR

Full subject line is:
Semi-automatic creation of Luup devices for controlling physical devices via IR transmitters attached to Squeezebox 2/3 or Transporter :slight_smile:

Sketch of implementation:

[ul][li]1. Install the Luup plugin ‘IR Luup Device Creator for SqueezeBox Server’ (IRLDC4SBS)[/li]

[li]2. Download the Lirc configuration file for the remote for your physical device from http://lirc.sf.net/remotes/. Upload it to your Squeezebox Server (SBS) and to your Vera (‘MiOS developers’ → ‘Luup files’ → ‘Upload files’).
Example: http://lirc.sf.net/remotes/philips/26PFL5604H[/li]

[li]3. Set the IRLDC4SBS variable ‘FileToConvert’ to the name of the Lirc configuration file and click on IRC → ‘Convert Lirc configuration file to Luup device’
Result (SIR: Squeezebox IR):[/li][/ul]

D_SIR_PHILIPS_26PFL5604H.json 
D_SIR_PHILIPS_26PFL5604H.xml
I_SIR_PHILIPS_26PFL5604H.xml

GUI representation via D_SIR_PHILIPS_26PFL5604H.json:

Power     [Test]
TV        [Test]
SUBTITLE  [Test]
TELETEXT  [Test]
...
PICTURE   [Test]

The new Luup device exposes the following UPnP actions:

Power
TV
SUBTITLE
TELETEXT
...
PICTURE

[ul][li]4. Install the new Luup device: ‘MiOS developer’ → ‘Create device’ → ‘UpnpDevFilename’: D_SIR_PHILIPS_26PFL5604H.xml → ‘Create device’[/li]

[li]5. Configure the new Luup device: Set SBS_IP_Address, SBS_CLI_Port, IR_Transmitter_MAC (=playerid)[/li][/ul]

Further reading:
http://wiki.micasaverde.com/index.php/Squeezebox#Sending_IR_codes_.28SB2.2F3_and_Transporter.29

Question:
Is there a way to automate step 4?

Comments are more than welcome.

urn:micasaverde-com:serviceId:HomeAutomationGateway1 / CreateDevice seems to be the way to go …

Implementation was straightforward, see attachments (code has to be polished and will be published later).

Implementation is available at http://forum.micasaverde.com/index.php?topic=5709.0.