Page 1 of 1
COM object request
Posted: Sat Nov 22, 2003 9:03 am
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.
Oops.. Forgot a couple..
Posted: Sat Nov 22, 2003 9:43 am
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.

Posted: Sat Nov 22, 2003 10:05 am
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
Posted: Sat Nov 22, 2003 11:53 am
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.