Lutron Homeworks: How To (Thanks Jarrod)

393 views
Skip to first unread message

Fiasco

unread,
Nov 12, 2009, 9:36:26 PM11/12/09
to CommandFusion
This should be sufficient to get up and running with a basic lutron
remote w/ feedback.

I'll assume you already know how to make a two state theme/button.

Create a few buttons (Digital join 100,1,2)
Create a text field (Serial join 4)

Create a new system
Enter the IP address of your lutron homeworks processor. Enter the
Telnet Port. (port origin is same usually 23).

Tcp checked
maintain connection checked
Heartbeat RX/TX blank
EOM blank
connection join 100 (this will toggle the state of 100 if you the
telnet connection is established)

Create a LOGIN command
Command Value USERNAME,PASSWORD\x0A\x0D

Go back to the system properties page and set the startup command as
LOGIN

Create three commands
Button 100

Button 1
Command value
KBP,[01:06:08],1\x0A\x0D

Button 2
Command value
KBP,[01:06:08],2\x0A\x0D

The three numbers in paranethisis and number following the comma
represent [processor:link:keypad],buttonnumber

This will toggle that button on the processor.

To process the feedback create feedback
Regex
KLS,\[01\:06\:08\],(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)
(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d).*\x0D

There are 24 LEDS per keypad possible each (\d) represents the led
state of buttons 1-24 on the keypad

Regex Capture Groups
Name Button1
DataType Digital
Join 1
Min Val 0
Max Val 0
Off Val 0
On Val 0
Name Button2
DataTypeDigital
Join 2
Min Val 0
Max Val 0
Off Val 0
On Val 0

Create a new feedback
Regex KLS, \[01\:06\:08\], (\d*).*

Capture Group
Name output
datatype serial
join 100
minval 0
maxval 1000 (not really relevant)

This will set the value of the text field to the 24 digit string
returned by the LED state of your keypad.

If you get no output, login to the Lutron processor with the same
username/password you are using for CommandFusion and type KBLMON (or
create a button with KBLMON\x0D as it's command.

Jarrod Bell

unread,
Nov 14, 2009, 12:39:23 AM11/14/09
to CommandFusion
Thanks for the excellent writeup. Wouldn't happen to have a spare few
hours to do some screenshots, or perhaps a sample GUI file that I can
add to our Google Code repository?

Jarrod

Fiasco

unread,
Nov 14, 2009, 1:45:57 AM11/14/09
to CommandFusion
I'm jammed up pretty good with this house I'm programming. Will do
as soon as I get some free time.
> > create a button with KBLMON\x0D as it's command.- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages