#Smart Home Sampler App for Android
This demo app demonstrates a scenario of using various Smart Home devices in two home scenes. They represent a living room and a family room, each containing a media device, light bulbs, and possibly other devices. The supported devices come from different categories (media players, light bulbs, switches, and iBeacons) and multiple manufacturers.
We believe the Smart Homes of the future, are not going to be driven by devices from a single manufacturer, instead a network of devices from various manufacturers.
The scenario of the app is:
- You enter the living room, which is detected by an iBeacon,
- A playlist starts to play on a TV or speaker, and the light bulbs change color to match one of the colors of the album art during playback.
- Then the user moves from the living room scene to the family room scene.
- Where the session information is transfered from the living room to the family room.
- The devices in the living switch off and the session is picked up in the family room
- The user put the scene to sleep using voice command (to replicate control using Siri or Google Now or other voice engine/assitants)
- The speaker fades out the music, while the LED bulb fade out and switch off.
- The Scene wakes up after a defined time - to mimic waking up from an alarm.
- The LEd Bulbs switch on along with speaker.
For additional information on Connect SDK, visit http://connectsdk.com/discover/.
Required devices:
- LG WebOS TV or DLNA-compatible media device for each scene (two total), such as Sonos.
The app has been tested and works with these devices:
- LG WebOS 2014 TV
- Sonos PLAY:1 speaker
- Philips Hue hub and bulbs
- Belkin WeMo Switch
- Wink hub + GE link light bulb
- StickNFind iBeacons
Important: Make sure all the WiFi-supported devices (WebOS TV, Sonos speaker, Philips Hue hub, WeMo switch, and Wink hub) and your Android device with the app are connected to the same WiFi network. To configure the devices, you need to use their respective apps.
##Dependencies
- Android SDK v21
- Android v4 appcompat library
- Android v7 palette library
- Connect-SDK-Android
- NanoHttpd
- Butter Knife
- Picasso
- Philips Hue Java SDK
- Belkin WeMo Local SDK for Android
##Setup with Android Studio
-
Download the SmartHomeSamplerAndroid project
git clone https://github.com/ConnectSDK/SmartHomeSamplerAndroid.git
-
Download Philips Hue Java SDK (huelocalsdk.jar and huesdkresources.jar) and put it into the app/libs folder.
-
Download Belkin WeMo Local SDK for Android and put it into the app/libs folder.
-
Import the SmartHomeSamplerAndroid project into Android Studio
-
Modify app/src/main/java/com/connectsdk/smarthomesampler/scene/WinkCredentials.java and set your Wink credentials in that file.
-
Execute this command to avoid adding your credentials to git
git update-index --assume-unchanged app/src/main/java/com/connectsdk/smarthomesampler/scene/WinkCredentials.java
##License
Copyright (c) 2015 LG Electronics.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.