Complex device orgainization
Posted: Wed Sep 01, 2004 12:59 am
Just learned about HouseBot yesterday. Great stuff here.
I want to develop a drive for Vantage Dimmer and Relays. These have a physical heirachy of Enclosure has Modules has Loads that should be exposed to the user. Only the Loads will have properties for setting the light level, power state, etc...
So my question is, what is the best way to orgainize this. I can tell by sending RS-232 commands to the system how the system is configure (how many enclosures, modules, etc...). I could then automatically create all of the Load devices. But I think it best to orgainize them.
I do not understand why I should use a Group verses a View?
I see that I can use CreateDevice from my Hardware Instance to create all of the devices. But I don't see how to put the device into a Group or View?
Or perhaps I use the DeviceName to indicate the EnclosureModuleLoad? But is it the DeviceName or the DeviceDescription that is used in scripts? I want the user to be able to give the device a nice logical name "Living Room Light" too.
Thanks in advance for the advice...
I want to develop a drive for Vantage Dimmer and Relays. These have a physical heirachy of Enclosure has Modules has Loads that should be exposed to the user. Only the Loads will have properties for setting the light level, power state, etc...
So my question is, what is the best way to orgainize this. I can tell by sending RS-232 commands to the system how the system is configure (how many enclosures, modules, etc...). I could then automatically create all of the Load devices. But I think it best to orgainize them.
I do not understand why I should use a Group verses a View?
I see that I can use CreateDevice from my Hardware Instance to create all of the devices. But I don't see how to put the device into a Group or View?
Or perhaps I use the DeviceName to indicate the EnclosureModuleLoad? But is it the DeviceName or the DeviceDescription that is used in scripts? I want the user to be able to give the device a nice logical name "Living Room Light" too.
Thanks in advance for the advice...