I'm working on making a simple speaker switcher that uses a 12V AC to DC transformer and a double pole double throw relay from radioshack. The GC100 relay connections on the back are contacts that open or close. Wiring these contacts in series with the 12VDC source and the DPDT relay coil will allow me to have a cheap speaker switcher or a cheap AB Selector to switch whatever I want upto 10 amps and 125 VDC (more than adequate for speakers).
I'm moving next week to a bigger place and will solder it up then, but for now I'm working on the Premise control for such a device. I've attached a simple example and would like feedback on it. Since I wanted to make custom buttons for the automation browser, I bound an action toggle button to a boolean property. Since I was using a toggle property, I had to come up with a way to bind a toggle property to an object that uses the digitalOutputEx class.
This is why I don't follow the normal convention in bold mentioned in the weeder technologies post and wanted an opinion on this (thanks goes to 123 for the handy info):
"In Premise, the existing DigitalInput class is used to model a real-world digital input. A collection of DigitalInput objects would represent a group of digital inputs. Premise's framework contains a slew of useful classes including DigitalOutput, Button, TemperatureSensor, HumiditySensor, Dimmer, Power, etc. A proper driver is composed of these core classes. If your Premise Home contains a Relay, Pump, or Fountain object, you can bind it to a driver that contains a DigitalOutput object. You can't bind it to a driver with a boolean value or an array of boolean values."
For the AB switcher module I do bind a boolean property (in effect through the property change script) to the digitalOutputEx of the GC100-12 (in this case called Relay3.Relay1). Any thoughts? Module is attached in a zip file with instructions.
If this looks like an ok way to do things, I'll post it in the downloads section.
I'm moving next week to a bigger place and will solder it up then, but for now I'm working on the Premise control for such a device. I've attached a simple example and would like feedback on it. Since I wanted to make custom buttons for the automation browser, I bound an action toggle button to a boolean property. Since I was using a toggle property, I had to come up with a way to bind a toggle property to an object that uses the digitalOutputEx class.
This is why I don't follow the normal convention in bold mentioned in the weeder technologies post and wanted an opinion on this (thanks goes to 123 for the handy info):
"In Premise, the existing DigitalInput class is used to model a real-world digital input. A collection of DigitalInput objects would represent a group of digital inputs. Premise's framework contains a slew of useful classes including DigitalOutput, Button, TemperatureSensor, HumiditySensor, Dimmer, Power, etc. A proper driver is composed of these core classes. If your Premise Home contains a Relay, Pump, or Fountain object, you can bind it to a driver that contains a DigitalOutput object. You can't bind it to a driver with a boolean value or an array of boolean values."
For the AB switcher module I do bind a boolean property (in effect through the property change script) to the digitalOutputEx of the GC100-12 (in this case called Relay3.Relay1). Any thoughts? Module is attached in a zip file with instructions.
If this looks like an ok way to do things, I'll post it in the downloads section.