Getting Started with Lab of Things
This guide walks you through the process of setting up a Home Hub to try out Lab of Things. If you run into any issues, have a look at the
To build HomeOS you need the following:
- Windows 10, Windows 8/8.1 or Windows 7
- Microsoft .NET Framework 4.5
- Visual Studio 2012 or
Visual Studio 2013 (need to be Professional edition or beyond).
NEW: VS 2015 is also now supported with some configurations to the solution. See this
page for more details.
- Microsoft Sync Framework 2.1 Redistributable Package (Get the
X86 version for both Synchronization and
ProviderServices components regardless of your OS architecture)
- Windows Azure SDK - You will need the binaries from any of these versions of the SDK:
2.1, 2.2, 2.3 (Note: 2.4 and later versions are not supported; you will not be able to build the solution using them). You
can get the version 2.3 of the SDK at this
location (pick the OS architecture applicable to you) and install both MSIs.
Get the Source Code
The source code is available at
https://labofthings.codeplex.com/. If you want to work with the source code you will need to do a Git clone, which will copy the entire source code to your local computer. If you just want to quickly try it out you can
download the pre-compiled output binaries.
To clone the source code
- Open a command prompt window.
- Run the following command:
git clone https://git01.codeplex.com/labofthings
For more information about cloning, see
Git Basics - Getting a Git Repository.
To use the pre-compiled output binaries
- Go to the Downloads section on Codeplex, and get Release.zip.
- Unzip the file and run the code per the instructions (gettingstarted.txt) included in the zip file.
Build and Run the HomeOS Solution
Follow these steps to build and run the HomeOS solution. You can skip steps 1 and 2 if you downloaded the precompiled output binaries from Codeplex.
- Start Visual Studio as Administrator.
- Load Core.sln from \homeos2\Hub\ and build the solution. Note, by default the binaries will be built to the
- Open the Command Prompt as Administrator.
- Navigate to homeos2\Hub\output\
- Run startplatform.bat.
By default the platform logs activity in
When you run platform for the first time, you will get a Windows Security Alert warning you that Windows Firewall is trying to block Hub Platform features. It's important to check all options (public, private and domain networks).
Configure the Home Hub
The Dashboard is the user interface for the Home Hub. In the Dashboard you can set up your hub and install new devices and applications. To access the dashboard, navigate to
http://localhost:51430/guiweb/ in your browser. For convenience a shortcut is located in
Important Note: The HomeOS platform must be running in order for the dashboard to work.
HomeOS Setup in Dashboard
When you launch the dashboard for the first time, you will be prompted to select a wireless network and enter
Choose a wireless network and enter the network’s security key, then click
Enter a HomeID, password, and the email address to use for contact information, then click
Your dashboard information will be displayed. Copy this information for future reference.
Click Next to finish.
You will see the main screen for the dashboard:
Setting page allows you to view and edit important configuration information about the hub:
Enter or change your Org ID.
See the Azure account being used for cloud data storage (the default is “testdrive” which is a test account and its contents are deleted regularly) – to change the account name and account key, you have to go to settings.xml in Hub/output/Configs/[your
config – default is “Config”]/ Your remote access URL is listed here; before you can access the hub remotely, you will need to add a user (see below).
Email listed here is the NotificationEmail which is the default notification email an app will use to send an email alert.
Add/remove users. The users you add here will be able to remotely access the hub (Dashboard and apps) using the URL for remote access shown on this page.
Important Note: the user you wish to add must be a valid Microsoft Account, and you will have to sign in and get authenticated by the Microsoft Account service to finish adding the user. See the screenshots below:
- See, configure or remove a list of applications installed.
- See a list of installed devices.
Currently four types of hardware devices are supported:
- Foscam Cameras
- Z-Wave Devices
- Microsoft .NET Gadgeteer
Adding Devices (Non Zwave)
- Navigate to the Add Devices page.
- A list of unconfigured devices will be displayed. (When you run HomeOS for the first time, most likely the only device that will be discovered by the platform is a web cam, if your PC or notebook has one.)
- Enter a name for the device and select a location.
- Check the appropriate checkboxes to install compatible applications, and/or to provide permission for other applications to access the device. In this example, the
CameraViewer app shows up because it is compatible with webcam devices.
- Click Done to finish adding the device.
Z-Wave is a next-generation wireless ecosystem that lets all of your home electronics interact with each other, and with you, via remote control. The process for adding a Z-Wave device involves pairing, so the steps are a bit different.
Important Note: By default the Z-Wave driver module for HomeOS is not included in the solution. Please see the page
Z-Wave Driver for HomeOS for information on how to obtain the driver and get it running.
220.127.116.11. Adding Z-Wave Devices
Follow these steps to add a Z-Wave device.
- Navigate to the dashboard (the platform must be running).
- On the Add Devices page, click Add ZWave. The
Add Zwave Device page will appear.
- First select the type of Zwave device you want to add. Currently we support the device types shown in the dropdown box in the screenshot.
- Press Pair.
- Within 10 seconds, press and hold the Program button on the Z-Wave device. The console will confirm whether registration was successful. Refer to the device instructions for the location of the button, as well as other details such as whether
a short or long press is required. If you receive an error (timeout, device not found), see the
Z-Wave Device Won't Pair entry in the FAQ & Troubleshooting section.
- On the Configure your Z-Wave Device page, enter a name and select the type and location for the device. If any applications are associated with the device you can provide permissions on this page.
- Press Done. The console will confirm that the device was configured.
The Home Store has a selection of applications that you can choose from. The list of applications and the devices needed for these applications can be found in hub\output\homestore\moduledb.xml. For more information about developing applications, see
How to: Create an App.