HTTP control of Rako Lighting

2014 · 2 replies · Devices

This discussion is 12 years old. It predates today's Roomie Remote X, and the app names, menus, features, pricing, and device details below have changed substantially since 2014. Treat it as historical reference — see Support and current compatibility for how things work today.

In short

I've just changed my lighting over from Lutron to Rako and I'm looking at ways of controlling it. — Staff replied: “The samples for HTTP in the DDK provide a good template for commands like that to show you exactly what we point out here. In your case the issue is that you don't need any of the "GET //192.168.0.28:80" part.”

Question 2014-06 · older version

I've just changed my lighting over from Lutron to Rako and I'm looking at ways of controlling it. I've added and successfully have working custom command codes for RS232 and TCP but it's a bit long winded in that I have to pass several commands to change scene. Fortunately they allow control with HTTP which is a single command however I'm struggling to create the right custom commands as http is not my forte.

I'm coding it as;

<dict>

<key>codes</key>

<dict>

<key>CENTRES</key>

<string>GET //192.168.0.28:80/

rako.cgi?house=4&room=1&com=3</string>

<key>SEATING</key>

<string>GET //192.168.0.28:80/

rako.cgi?house=4&room=1&com=4</string>

<key>FADE SEATING</key>

<string>GET //192.168.0.28:80/

rako.cgi?house=4&room=1&com=5</string>

<key>OUTERS ONLY</key>

<string>GET //192.168.0.28:80/

rako.cgi?house=4&room=1&com=6</string>

<key>ALL OFF</key>

<string>GET //192.168.0.28:80/

rako.cgi?house=4&room=1&com=0</string>

</dict>

<key>method</key>

<string>http</string>

<key>brand</key>

<string>Rako</string>

<key>cat</key>

<string>Bridge</string>

<key>type</key>

<integer>12</integer>

</dict>

but it's not working. What have I missed or got drastically wrong?

Thanks

John

Roomie Staff 2014-06 · older version

The samples for HTTP in the DDK provide a good template for commands like that to show you exactly what we point out here. In your case the issue is that you don't need any of the "GET //192.168.0.28:80" part. Removing that from the commands will cause them to be correct. However, you also have some special characters that don't look escaped. Xcode handles that for you. If you're looking at this in a text editor, those ampersands should be & amp; (without the space) not raw characters.

Thank you.

Member 2014-06 · older version

The example in the DDK uses URL as the first line and I took it to mean the whole URL.

I'm using a PC and Edit Pad Lite. In copying over the codes that I was using the text editor here seems to have translated it. It is definitely & in the codes.

Changes done and it's all working now.

Many thanks for the very quick response on a Sunday.

John

Related threads

Today's Roomie controls 400,000+ devices.

Roomie Remote X brings TVs, receivers, streamers, lights, and whole-home audio into one app on iPhone, iPad, Mac, and Apple TV.

Download Roomie Remote X