Author Topic: Rako Lighting Control  (Read 14889 times)

archived

  • Hello, I'm new here
  • Posts: 0
    • View Profile
Rako Lighting Control
« on: June 15, 2006, 04:04:51 pm »
I'm plaing on using the Rako range of lighting and device control system. I've got a RS232 unit that plugs into the server and can download a pdf with the  commands from here http://www.rakocontrols.com/pdf/rs232_command_summary_v1-1.pdf

What steps should i do to start to get this device and its lights working??

archived

  • Hello, I'm new here
  • Posts: 0
    • View Profile
Rako Lighting Control
« Reply #1 on: June 17, 2006, 11:23:04 am »
Ok i tryed to make a new device for the rs232 interface, but got really confused:) i'll try again later.
In the mean time i've just added my dimmers as GSDs which seems to be working as i set them as lights so they recive the right commands (ok i've not explained that very well)

i'm having problems with the set level commands, here's my ruby code

Code: [Select]

 5:def cmd_184(level)
   6:@returnParamArray.clear
   7:conn_.Send("HOUSE:1\r")
   8:
   9:conn_.Send("ROOM:4\r")
  10:
  11:lev = "LEVEL:"
  12:lev += $1
  13:lev += "\r\n"
  14:conn_.Send(lev)
  15:return @returnParamArray
  16:end


And i'm getting this error

Code: [Select]
Error while calling method: Cannot call class method: cmd_184
error: can't convert nil into String, line: 12
backtrace:
        in: (eval): 12
        from (eval):12:in `+'
        from (eval):12:in `cmd_184'


How do i take the level value passed to the command an include it in my output??

Cheers

archived

  • Hello, I'm new here
  • Posts: 0
    • View Profile
Rako Lighting Control
« Reply #2 on: June 17, 2006, 11:55:27 am »
ok, so i posted too quicklly:)

all i needed to do was learn some ruby:)
this is working fine
Code: [Select]
conn_.Send("LEVEL: #{level} \r\n")

now just need to add some more bluetooth adapters and see if my lighst follow me around:) Today is a good day