Announcement

Collapse
No announcement yet.

Easy RAKO lighting control by opening a URL - but which wasy best ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Easy RAKO lighting control by opening a URL - but which wasy best ?

    Hi guys,

    I have been working out the easiest way to control my RAKO system from HS touch and I have discoevered all you need to do if you have the ethernet device is send a URL to that bridge.

    eg

    http://rakobridge/rako.cgi?room=8&ch=0&com=3

    Would set my kitchen (room 8) and channel 0(all channels) to turn on scene 1 (command 3) the command list is below.

    Instruction
    Number Instruction Program mode
    instruction
    0 off
    1 light+ light+
    2 light- light-
    3 ps1 Store + Ident
    4 ps2 ch+
    5 ps3 ch-
    6 ps4
    7 program mode
    8 ident ident
    9
    10 low battery low battery
    11 eeprom write eeprom write
    12 level set level set
    13 store Store
    14 exit
    15 STOP STOP

    How ever I am not sure of the best way of sending the URL on a butotn press - can anyone help?

    Thanks in advance.

    Stuart

    #2
    Easiest way is to use an immediate script command, click on the button, then click on ActionsWhenReleased (or pressed, your choice), add an action and click on Run A HomeSeer script with values from elements.

    In the middle box (labelled script) add something like;

    &hs.geturl("rakobridge", "/rako.cgi?room=8&ch=0&com=3", True, 80)

    The syntax may need some checking but is broadly the idea, what i'd do is to test the statements in the HS control panel until the syntax works and then try it in HSTouch

    Edit, just thinking about it, another thing to try is the hs.urlaction function

    &hs.urlaction("http://rakobridge/rako.cgi?room=8&ch=0&com=3", "GET", "", "")
    Last edited by mrhappy; December 9, 2010, 04:00 PM.

    Comment


      #3
      mr Happy thanks very much for your advice.

      Tested in the control panel and voila it works! :-)

      &hs.GetURL ("http://rakobridge","/rako.cgi?room=8...com=3",True,80)

      It is also possible to control it via telnet - purely on an interest level is there a similiar function for telneting RS232 commands?

      Cheers

      Stuart

      Comment


        #4
        Many Thanks for the help :-)

        [CODE]&hs.GetURL ("http://rakobridge","/rako.cgi?room=8...,80)[/CODE]

        Worked AOK

        Cheers

        Stuart

        Comment

        Working...
        X