LinuxMCE Forums

General => Developers => Topic started by: bulek on December 26, 2007, 07:21:07 am

Title: How can I implement automatic light detection/configuration procedure-like Zwave
Post by: bulek on December 26, 2007, 07:21:07 am
Hi,

when you install lmce, you get to lighting section and if you have ZWave for instance, there is automatic procedure for determining proper location for all autodetected light modules...

I wonder about internals of that procedure... How is it implemented ? Is it "external" implementation or is standard procedure that you can use also from other automation devices ?

Anyone with more insight into this ?

Thanks in advance,

regards,

Bulek.
Title: Re: How can I implement automatic light detection/configuration procedure-like Z
Post by: ddamron on December 26, 2007, 08:05:02 am
Bulek,

I'm working on that as we speak.
Originally, I thought it was simply a matter of firing a Report Child Devices event..
That, however, did not start the 'wizard'..

After further research, I found a wiki page titled "Plug&Play"

Seems to be laid out nicely there...

HTH

Dan
Title: Re: How can I implement automatic light detection/configuration procedure-like Z
Post by: ddamron on December 29, 2007, 04:34:54 am
Well, sort of...
I still think I'm on the right track here... but it's not as simple as I thought.

I am getting the wizard started, but it only starts the wiz on the core, not all md's

Also, trying to 'set' devicedata as the wiki suggests doesn't seem to work...

I'm banging my head against it.. been hammering all day...

Will keep you posted...
Regards,

Dan
Title: Re: How can I implement automatic light detection/configuration procedure-like Z
Post by: totallymaxed on December 29, 2007, 09:03:31 am
Well, sort of...
I still think I'm on the right track here... but it's not as simple as I thought.

I am getting the wizard started, but it only starts the wiz on the core, not all md's

Also, trying to 'set' devicedata as the wiki suggests doesn't seem to work...

I'm banging my head against it.. been hammering all day...

Will keep you posted...
Regards,

Dan


Dan,

The lighting Wizard always runs on the Core... or probably more precisely it runs on the machine that has the z-wave/insteaon interface attached. At the moment as far as I know the lighting Wizard is very tightly coupled to Z-wave and also specifically 'lighting' eg if you have for example a z-wave PIR it does not configure that. I was working with Eugen at Pluto (the original Dev who was responsible for the Z-wave) to make the Lighting Wizard become the 'Z-wave Wizard' so that it would be able to configure/manage all types of Z-wave devices. Now a logical extrapolation of that would be to say that the 'Lighting Wizard' should really become the 'Home Control Wizard' (Hmmm... maybe we need a nicer name for it ;-)  ). The HC Wizard would be triggered once a control interface was detected eg z-wave/insteon etc etc etc and then would proceed to assist the user in configuring all of the supported devices for that interface.. The Lighting Wizard actually works very well as a model for how to do setup/congig in the real world... I have done literally 100's of z-wave install/setups with it now and with it I can do a setup for say 10 devices in about 10 mins. Previously without the Wizard it took me about 90 mins for the same number of devices! (and making adjustments/changes later was a total pain in the !%se)
Title: Re: How can I implement automatic light detection/configuration procedure-like Z
Post by: ddamron on December 29, 2007, 11:03:11 am
Thanks HUGE Andrew!

That explains a LOT.

I'll take another stab at that once I've 'calmed' down to rationalize it again..

(It's 2:30 AM right now) Tomorrow, I want to attack the last 2 items on my 'todo' list...