Premise Binding to two devices (fireplace -> relay & keypad button)

Motorola Premise

ckindel

Member
My fireplaces are controlled by a DigitalOutputEx.

My keypads are Lutron HomeWorks; I have several keypad buttons that turn on the fireplaces.

I used to have some home level objects setup using Commands to keep the state of the fireplace and the LED on the keypad buttons in sync. I also had an OnTriggerChanged handler on my keypad buttons (home level) to set the relay state. It worked. But it was sloppy because I couldn't move the home level objects around (and I'm redoing my Lutron interface and I've already deleted all the old stuff :0).

What I'd really like to do is create a new Device class that holds connections to BOTH the relay AND the underlying HWI_Button (device level).

Ideally, this class would hold ONE reference to a DigitalOutputEx and MULTIPLE references to HWI_Buttons. This is because in one room I have 4 keypads with "Fireplace" buttons on them for a single fireplace.

But I can't figure out how to create such a Device class. I figure I have two choices: Either have it contain ObjectReference properties or make it hold Object Containment references.

In either case, I have no idea how to hook the bindings up between the properties of the underlying devices.

I want to wire DigitalOutputEx.State to HWI_Button.Status (and change the value of HWI_Button.ForceLED appropriately).

I want to wire HWI_Button.Trigger up to an event handler that will toggle DigitalOutputEx.State when it triggers.

Is this even possible? How would I do it?

Thanks.
 
This might help as an example; it binds two device objects to a single home object...
http://forums.premisesystems.net/forums/6374/ShowPost.aspx
 
Back
Top