Using BLE APIs in the background to watch for a BLE beacon indicating proximity to the lights.Extending Cortana to provide an intuitive voice interface for manipulating the lights.Using the HttpClient methods and Newtonsoft.json to interact with the Hue lights' RESTful interface.Refactoring for the following WinUI 2.4 controls:.
Add Microsoft.UI.Xaml NuGet package reference.They can turn the lights off, change their color, or even engage with Cortana in a back-and-forth conversation to adjust a specific light or change all the lights at once.Īdditionally, through Bluetooth LE, the app supports a proximity scenario where the lights are automatically turned on/off depending on a user's device relative to a Bluetooth LE beacon. With Cortana integration, users are able to naturally interact with the lights through speech. !(Screenshots/Using Cortana and Bluetooth LE with Hue Lights Video.png)
This sample runs on the Universal Windows Platform (UWP). If you prefer, you can use project properties to retarget the project(s) to Windows 10, version 1903 (10.0 Build 18362). Note - This sample is targeted and tested for Windows 10, version 2004 (10.0 Build 19041), and Visual Studio 2019. Specifically, it shows how you can use Cortana and Bluetooth Low Energy (Bluetooth LE) to create an interactive experience with the Phillips Hue Lights (a Wi-Fi enabled lighting system).
A mini-app that explores integrating Windows features with intelligent home automation.