We have moved at community.getvera.com

Author Topic: Semi-automatic creation of Luup devices for controlling physical devices via IR  (Read 2684 times)

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Full subject line is:
Semi-automatic creation of Luup devices for controlling physical devices via IR transmitters attached to Squeezebox 2/3 or Transporter  :)

Sketch of implementation:

  • 1. Install the Luup plugin 'IR Luup Device Creator for SqueezeBox Server' (IRLDC4SBS)
  • 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
  • 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):
Code: [Select]
D_SIR_PHILIPS_26PFL5604H.json
D_SIR_PHILIPS_26PFL5604H.xml
I_SIR_PHILIPS_26PFL5604H.xml
GUI representation via D_SIR_PHILIPS_26PFL5604H.json:
Code: [Select]
Power     [Test]
TV        [Test]
SUBTITLE  [Test]
TELETEXT  [Test]
...
PICTURE   [Test]
The new Luup device exposes the following UPnP actions:
Code: [Select]
Power
TV
SUBTITLE
TELETEXT
...
PICTURE

  • 4. Install the new Luup device: 'MiOS developer' -> 'Create device' -> 'UpnpDevFilename': D_SIR_PHILIPS_26PFL5604H.xml -> 'Create device'
  • 5. Configure the new Luup device: Set SBS_IP_Address, SBS_CLI_Port, IR_Transmitter_MAC (=playerid)

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.

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
urn:micasaverde-com:serviceId:HomeAutomationGateway1 / CreateDevice seems to be the way to go ...

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Implementation was straightforward, see attachments (code has to be polished and will be published later).

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0