COM object request

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
MediaStorm
Member
Posts: 30
Joined: Sat Jun 28, 2003 1:58 pm

COM object request

Post by MediaStorm »

It would be extremely useful to have a command to get the lists of objects from HouseBot.



Maybe something like:



GetDeviceList, GetModeList, etc.



an alternative would be:



GetList(Modes), GetList(Devices) etc.



It would also be nice to be able to create objects and enable/disable objects too.



The GetList and enable/disable would be higher priority than the ability to create objects IMO.



These few extra commands would really open up the system even more.



The new control methods are awesome and will enable a bunch of new and cool stuff for HouseBot. Great job.
MediaStorm
Member
Posts: 30
Joined: Sat Jun 28, 2003 1:58 pm

Oops.. Forgot a couple..

Post by MediaStorm »

Following the GetList idea it would also be handy to have a way to get a property list for a device as well.



GetPropertyList("lamp") would do the trick. This would return something like:



Leviton Dim Level|Power State|X10 House Code|X10 Preset Dim Level|X10 Unit Code



That naturally leads to the request to have something like:



GetPropertyValueList("lamp","Power State")



which would return something like:



On|Off



or similiar this off course would only be applicable to properties which have a defined value list.



And last but not least would be a way to get event notification from the COM object along with event info. Maybe a callback would be the simplest way to handle this.



I think that's about it for now. :wink:
ScottBot
Site Admin
Posts: 2806
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post by ScottBot »

I agree that these would be useful features. Even when I was creating the form based ASP samples I was thinking that that would be useful to provide pick-lists that are pre-populated with Devices, Properties, and values.



I'll add this to the list, and imagine to have it in the next release. However, the next release won't be until the end of December.



Thanks,

Scott
MediaStorm
Member
Posts: 30
Joined: Sat Jun 28, 2003 1:58 pm

Post by MediaStorm »

ScottBot wrote:I agree that these would be useful features. Even when I was creating the form based ASP samples I was thinking that that would be useful to provide pick-lists that are pre-populated with Devices, Properties, and values.

I'll add this to the list, and imagine to have it in the next release. However, the next release won't be until the end of December.

Thanks,
Scott


That would be great. In the meantime, I can pull what I need from the HBData.mdb easy enough.



That takes care of 'em for now with the exception of an event notification when something happens on the server.
Post Reply