Hi there, i am trying to get my Edimax Switches (WiFi Power-plugs) working with Roomie Remote. — Staff replied: “Looks like you're missing a blank line before the XML header. Everything without a line before is going to become a header not body.”
Hi there,
i am trying to get my Edimax Switches (WiFi Power-plugs) working with Roomie Remote.
There is a way to switch them via HTTP post message. The device could be powered on by url (smartplug.cgi) and the following XML script:
<?xml version="1.0" encoding="utf-8"?>
<SMARTPLUG id="edimax"><CMD id="setup"><Device.System.Power.State>ON</Device.System.Power.State></CMD></SMARTPLUG>
So i tried to write this custom device script looking like:
<dict>
<key>brand</key>
<string>Edimax</string>
<key>cat</key>
<string>Switch</string>
<key>codes</key>
<dict>
<key>POWERON</key>
<string>POST /smartplug.cgi
<?xml version="1.0" encoding="utf-8"?>
<SMARTPLUG id="edimax">
<CMD id="setup">
<Device.System.Power.State>ON</Device.System.Power.State>
</CMD>
</SMARTPLUG></string>
<key>.AUTH 1 FORMAT</key>
<string>Username</string>
<key>.AUTH 2 FORMAT</key>
<string>Password</string>
</dict>
<key>method</key>
<string>http</string>
<key>type</key>
<integer>1</integer>
</dict>
But it does not work.
Could you please help me getting able to run this in Roomie Remote?!
Thanks in advance
Bastian