Help understanding SQBlaster -> Vera Device conversion process

I have got the SQ blaster plugin installed, and after a while it has created 4 child devices, IR AUX Channel 1 to channel 4. So far so good. But i have about 10 different devices which i control via SQ blaster. And these Aux channels do not make any sense to me, and i did not really understand the xml file creation mentioned here in the thread, and i dont know if i need them. My main goal is to run macros from SQ blaster via Vera. Is there a up to date wiki somewhere about how to use these child devices or create the ones i need ?

I think i understand what these IR Aux channels are. they must correspond to the different IR outputs on the blaster. So somehow i can use them to send ir signals to the ir leds connected to the corresponding output.

After reading some more. I have the newest version of my blaster.zip file. In the zip file i have 16 .xml files. These i have to somehow transform into D and I files (that i dont understand how)
I have to do that for every xml file ? And then how do i know which xml file does what, and where are my macros ?

I found this site (from one of the threads here) to convert my xml file. [url=http://xslttest.appspot.com/]http://xslttest.appspot.com/[/url]. In the top, i have entered my xml file like this
<command_info command_name=“PLAY” SQKeyCode=“0”…
In here: Enter your XSLT or it’s URL: i have copied and pasted the xls file (tried the d as well as the I…) like this :
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet xmlns:xsl=“XSLT Namespace
3 version=“1.0”>
4 <xsl:output indent=“yes”/>
5 <xsl:preserve-space elements=“irdata”/>
i have done it with and without line numbers.
Run transformation and open result stay greyed out. I have also tried on this site [url=http://www.shell-tools.net/index.php?op=xslt]shell tools online
but i get this error:
/var/chroot/tmp/FOOByUyfc:2: parser error : Start tag expected, ‘<’ not found
-<xsl:stylesheet version=“1.0” xmlns:xsl=“XSLT Namespace”>
^
cannot parse /var/chroot/tmp/FOOByUyfc

The instructions are written for the Shell-tools site, so that’s the one you should use. You may have luck using other sites, but unless you’re familiar with the process you’ll be burning cycles trying to work it out elsewhere.

Not sure where you’re getting the “line numbers” from. Non of these files have line numbers in them, so there must be some tool you’re using and/or viewing them with that’s applying these… they’ll just get in the way.

You should be downloading two “xsl” files from the Source control area. Once downloaded, they’ll be .xsl files on your Desktop (or where-ever you choose to download them to)

These can then be opened with your favorite Text editor (like, say, Notepad on Windows, or TextEdit on a Mac) before you copy/paste the content into the respective Browser window of the shell-tools site.

Repeat the process for the .xml contents of the files that are in the box.net “backup” of SQRemote.

… and when you run into issues, attach complete copy of all the files, and screenshots of the errors. You’d be surprised by how often something extra can be picked up in a screenshot of the browser than just a textual representation of what was seen :wink:

PS: I split your post out. It’s too easy for this stuff to get lost in the noise, and I only infrequently post on MCV’s forums these days.

I will do it again tonight and post a screen print and the files. How do i know which device.xml file is for which device (as i have 16 of them…) and can i access my sq blaster macros ?

Trying to just repeat what i did yesterday, and i have seen this in your post

Repeat the process for the .xml contents of the files that are in the box.net "backup" of SQRemote

When i go into box.net, i have a subdirectory ‘SQControlPads’, in there are all my configuration files i had created as .zip files. There is no backup directory or file. Maybe thats where i am going wrong ?
I am going to send you the latest config file i am using, and i will put up scren shots in a second too

This is a screen shot from shell online. I tried sending you my config file via pm but it does not seem possible to do that

I am trying run commands to sqblaster trigger macros and/or direct Ir commands.

with redeye is working fine.

this is good because sqblaster has a good and easy way to create macros. with vera is more complicated.

I let you know my advances.

From the UI, it looks like something you’re doing is “adding” Minus (“-”) signs to the [tt]SQBlaster_I.xsl[/tt] file.

The original file, prior to download, doesn’t contain these characters.

My guess is that you’re opening the file using IE, before doing the Copy&Paste operation. IE does a layout operation and adds expand/collapse (+/-) characters on the left that are not in the original file.

If this is the case, try opening the file in a standard [plain-text] editor like Wordpad or Notepad, before doing the Copy&Paste operation.

NOTE: The current conversion process doesn’t export SQRemote Macro’s. These are kept in a different file from the devnnnnnnnn.xml files. In theory i’s possible to extract/transform them, using a similar technique (XSLT) that I’ve done here, but I’ve never ventured down that path.

For me, Vera wasn’t capable enough to do anything real-time[sup]*[/sup]. IR in particular requires a lot of real-time interactions to work well, without frustrating the user, so I never went further than the basic integration (to do All On/All off type stuff)

[sup]*[/sup] I apply this term very broadly. It’s use is not limited to IR functionality…

Opening the file in notepad did the trick. Now converting 16 xml files…

That leaves me with just one more question (for the moment), how do i know which file is for which device ?

[quote=“mikee123, post:9, topic:176752”]That leaves me with just one more question (for the moment), how do i know which file is for which device ?[/quote]IIRC there’s no marker in the file itself, which makes it a little “trial and error” to get which is which.

There is more formation in the XML file that I don’t process, but you’d have to open it up and work it out. That file also contains the Macro definitions (again, going from memory)

Ok will go through my xml files to see if i can find any useful information. If i remember right, there is no way to trigger the macros, is that something which might be possible one day ?

Does not look like it. See here:

http://www.squareconnect.com/downloads/SQBlasterAPI.pdf

  • Garrett

I am having some success. I have created some devices, one for my Sky box, one for Cable TV and one for my Lutron lighting. I am pretty sure i have the right .xml files for them. Sky i have created a scene for on/off, thats working fine. Cable TV does not react to my command, i have to do more testing. The problem i am having is with my Lutron lighting device. The device created like the other ones. When i go create a scene in advanced add lutron, i had an error invalid json file. After a few reloads, i can add the device in the advanced scene section, but there should be options for 16 light settings, fade, off and a couple of other functions.

These are the files i am using:

For the file you attached, what you’re seeing does occur. In MiOS, there are a set of “IR” Services that contain ACTIONS for various AV things like “Volume Up/Down”, Channel Up/Down and so on.

These IR ACTIONs only exist for AV-related components, but in the IR world there are also a lot of “non-AV” things (also IR Controlled)

The Transformation process you went through does a map of the IR Actions from SQBlaster/SQRemote to equivalent ones in MiOS. Since MiOS only has IR functions for AV gear, there are cases where there’s no equivalent mapping.

In these cases, I simply put in “Placeholder” elements into the I_xxxxxxxxx.xml file, as a “holder” of sorts to contain the Pronto codes. If, at the end of processing the I_xxxxxxxxx.xml file, we’ve only got placeholders, then the D_xxxxxxxxxx.xml file will not contain ANY Service definitions.

Anyhow, these items need to be “manually” mapped to something in order for them to be accessed via the Vera UI/Scene editor. In the past, I’ve seen people map these to one of the [various] unused MiOS AV IR ACTIONs. There are a lot of them, so it’s fairly easy to do, but just a bit tedious.

Again, this is only required in the cases where you’re mapping an non-AV Device to MiOS, since there’s no logical mapping for it. For your AV gear, the mappings should be fairly accurate.

Ok that makes sense now. I had varios other xml files where the resulting D_SQdevxxx file looked empty, but that probably explains it. I dont mid trying to map some actions manually as i only want a few functions (like lights on off and maybe a couple of scenes for lighting). How do i do that ? Is there a thread about that ?

I had a look at the original xml file, and the I and D files of my Sky. I used that information to change some of my Lutron commands, so i am using numericentry1 to call my scenes, and it works !!! As you said, it is a bit tedious though, and it took me quite a while of trying different things before i found the right way to change the original dev file, then reconvert until everything worked. But i have full access to my Lutron lighting now from Vera.

Next project: macros…
If anybody has any pointers of where they are (which file) and any ideas or suggestions of how one could convert them i’ll give it a try and report back here