Luup plugin TV with SQ Blaster plugin

Hi all

Maybe a wrong quastion, but i cannot get it to work.

I installed the SQBlaster as an IR Transmitter Device within Vera. everything ok. Link = http://code.mios.com/trac/mios_sqblaster

I exported my TV Pronto codes from my SQ Remote. But how do i create a LUUP plugin with these set of codes and command to use this from my Vera. Does somebody can explain me or give my a example. I do not understand and get it to work with this page: http://code.mios.com/trac/mios_panasonic-tv

My IR Pronto code are:

<device_configuration key=“dev4168673188” transport_protocol=“IR” name=“UPC Digital Media Receiver - Video” manufacturer=“UPC” device_type=“Digital Media Receiver - Video” location=“” gateway_id=“sq-blaster-a85c.local” command_protocol=“hex” UEIDeviceType=“N” ms_delay=“500”/>
<command_info command_name=“POWER ON” SQKeyCode=“2” ir_data="L28 12500 dc060052 ffad0052 1850052 13100ce 8b0052 de0052 8c1235 25515555 24251250 " SQSource=“L” learn_date=“326059800.670785” support_ph=“true”/>
<command_info command_name=“POWER OFF” SQKeyCode=“3” ir_data="L28 12500 dc060052 afef0052 1850052 13100ce 8b0052 de0052 8c9235 25515552 24255150 L28 12500 dc060052 afee0052 1850052 13100ce 8b0052 de0052 8c9235 25515555 24255150 " SQSource=“L” learn_date=“326059878.145564” support_ph=“true”/>

Thanks a lot :slight_smile:

For your first go round, try running it through the manual process outlined here :

http://forum.micasaverde.com/index.php?topic=5734.0

If that doesn’t generate a valid I_ xxx.XML, and D_ xxx.XML file, then attach what you get and repost…

Did that work, or do you need a hand?

Thanks for the manual. i will start reading it and try some things.

i will let you know how i did :slight_smile:

How do i generate the I_ xxx.XML, and D_ xxx.XML file?

I copyd the files from the forum and begin to edit it.

the results:

The SQBlaster file containing their IR codes, for each of your SQBlaster/SQRemote devices is in XML format (from Box.net)

MiOS requires two files (I_xxx.xml and D_xxx.xml) for each Plugin/Device, these are also in XML format.

The current process involves:

a) having the SQBlaster dev_xxx.xml file for your device (from Box.net)
b) running an XML Transform on the [tt]dev_xxx.xml[/tt] file from SQBlaster, to create the corresponding [tt]I_xxx.xml[/tt] file.
c) running an XML Transform on the [tt]I_xxx.xml[/tt] file from MiOS, to create the corresponding [tt]D_xxx.xml[/tt] file.

The transformation process involves using a XSLT Transform, from a hosted site like:
http://www.shell-tools.net/index.php?op=xslt OR;
http://xslttest.appspot.com/

or from any command-line XSLT Tool if you’re more familar with those.

For Step (b) above…
Use the contents of this file for the XSLT input field:
http://code.mios.com/trac/mios_sqblaster/browser/trunk/xslt/SQBlaster_I.xsl

and the contents of [tt]dev_xxx.xml[/tt] file for the XML input field

Save the result as [tt]I_xxx.xml[/tt]

For Step (c) above…
Use the contents of this file for the XSLT input field:
http://code.mios.com/trac/mios_sqblaster/browser/trunk/xslt/SQBlaster_D.xsl

and the contents of [tt]I_xxx.xml[/tt] file for the XML input field.

Save the result as [tt]D_xxx.xml[/tt]

NOTE: If you change the file names, note that “[tt]xxx[/tt]” is actually embedded inside the [tt]D_xxx.xml[/tt] file, and this needs to be changed also.

NOTE2: I’ll add a Wiki page to discuss how to do it using the Website, and include some screen snippets to better walk folks through it. I have a fully automated version, but ran into Bugs in MiOS that prevented it from working (it did everything from Plugin creation, Device instantiation, and wiring to SQBlaster within MiOS so it would save all these manual steps.

PS: Looks like my hyperlinks to the XSLT Transform files in this post were out of date, so I updated them:
http://forum.micasaverde.com/index.php?topic=5734.msg29906

btw, your hand converted one is close. It has a few problems:

In the [tt]I_xxx.xml[/tt] file…
a) The first [tt]POWER ON[/tt] should be [tt]On[/tt]
b) The second [tt]POWER ON[/tt] should be [tt]Off[/tt]

In the [tt]D_xxx.xml[/tt] file…
a) You need a Service’s section like the following:

<serviceList> <service> <serviceType>urn:micasaverde-com:service:DiscretePower:1</serviceType> <serviceId>urn:micasaverde-com:serviceId:DiscretePower1</serviceId> <SCPDURL>S_DiscretePower1.xml</SCPDURL> </service> </serviceList>

and eliminate the “blank”[tt] [/tt] tag

Thank you for your reply.

one more question. you talk about the servicelist, S_DiscretePower1.xml

Do i need to create these files? S_DiscretePower1.xml

and if yes, what should be inside thes files.

No need to create that one, it’s part of the standard set that ships with MiOS.

Great, thanks.

I get this icon on my device. is this ok? it is not the IR icon

Yup, each IR Device has an ugly [what is that?] icon unless a specific [tt].json[/tt] is built for it… which seems like overkill.

You can test the device itself using SQRemote, or using a direct MiOS URL of the form:

On…
[tt] http://192.168.x.x:49451/data_request?id=lu_action&DeviceNum=yyy&serviceId=urn:micasaverde-com:serviceId:DiscretePower1&action=On[/tt]

Off…
[tt] http://192.168.x.x:49451/data_request?id=lu_action&DeviceNum=yyy&serviceId=urn:micasaverde-com:serviceId:DiscretePower1&action=Off[/tt]

… with appropriate substitutions for [tt]x.x[/tt] and [tt]yyy[/tt], based upon your specific deployment.