Creat virtual switch device?

Hi,
I am just wondering how I can create a virtual switch to handle home status [home/out]?
Is this solution even good or is there any better?

Thanks in advance,
computerScience

Do this:

[url=http://forum.micasaverde.com/index.php/topic,8023]http://forum.micasaverde.com/index.php/topic,8023[/url]