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
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
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