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 puts the scene to sleep using voice command (to replicate control using Siri or Google Now or other voice engine/assistants).
- The speaker fades out the music, while the LED bulbs 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, such as Sonos speakers.
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 iOS device with the app are connected to the same WiFi network. To configure the devices, you need to use their respective apps.
The app must be in the foreground with the screen unlocked to work properly with the devices.
- Add ConnectSDK for iOS to the project. See link for setup instructions.
- Belkin WeMo SDK: Get it from http://developers.belkin.com/wemo/sdk,
unzip
the file you'll receive, and copy the contents of the-iphoneos/
directory intoSmartHomeSampleriOS/WeMoSDK/
directory. To fix theduplicate symbols
errors during linking, patch one of the libraries by running theSmartHomeSampleriOS/WeMoSDK/wemo_duplicate_symbols_fix.sh
script. - Philips Hue SDK: Place the
HueSDK_iOS.framework
intoSmartHomeSampleriOS/PhilipsHue/
directory. Add Cocoa Lumberjack, which is required by Philips Hue, intoSmartHomeSampleriOS/PhilipsHue/
. - Nuance Dragon mobile SpeechKit framework: Place the
SpeechKit.framework
intoSmartHomeSampleriOS/Nuance/
directory. Update the variableskNuanceAppId
,kNuanceAppHost
,kNuanceAppHost
andSpeechKitApplicationKey
inSmartHomeSampleriOS/Secret.m
with the values provided. For instructions for SpeechKit setup, see this document. - Wink API: Update the following access parameters:
kWinkUsername
,kWinkPassword
,kWinkClientId
, andkWinkClientSecret
inSmartHomeSampleriOS/Secret.m
.
At first launch, you are able to pick devices for your scenes. You can use the "Configure" button later to change the config.
Important: Make sure to select different devices for the scenes.
For more information on using Connect SDK, we recommend you review the following material:
Copyright 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
http://www.apache.org/licenses/LICENSE-2.0
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.