

Smart Lighting with HomeKit in watchOS
source link: https://www.raywenderlich.com/20088887-smart-lighting-with-homekit-in-watchos
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

This course is available as part of the raywenderlich.com Professional subscription. To learn more click here
Smart Lighting with HomeKit in watchOS
Jan 19 2021 · Video Course (17 mins) · Advanced
Learn to use HomeKit in watchOS to control light bulbs in your home. HomeKit is versatile, so most of what you learn here will apply to any type of smart device.
Version
- Swift 5, iOS 14, Xcode 12
Smart Lighting with HomeKit in watchOS
HomeKit
2:56 FreeHomeKit allows your apps to configure, monitor and control a synchronized central repository of smart home accessories with Apple devices.
HMHomeManager
2:18HMHomeManager provides access to all the HMRooms you'll need, encapsulated in HMHomes, by way of its delegate.
HMService
3:39HMAccessory is how HomeKit models a physical device, and HMService is a collection of related things you can do with that device.
On watchOS, you can either tap to interact with SwiftUI sliders, or use the Digital Crown. Bulb Buddy uses a slider for hue, saturation, and brightness.
HMCharacteristic
4:28Check an HMCharacteristic's metadata format to ensure you're working with the right kind of values. Throttle sending those values using Combine, if necessary.
Who is this for?
This course is designed to introduce working with HomeKit in a targeted, practical way.
To get the most out of it, you'll want to be experienced with Swift, SwiftUI, and Combine. Some familiarity with watchOS will be useful, but you should be able to follow along even if you've never developed for that platform.
HomeKit works similarly across iOS and tvOS as well, so you don't even need to be interested in watchOS development for this course to be useful!
Covered concepts
- HomeKit
- HMHomeManager
- HMRoom
- HMAccessory
- HMService
- HMCharacteristic
- watchOS
- SwiftUI Slider
- Combine
Contributors
Fascinated by technology consistently making learning easier, Jessy enjoys exploring new techniques involving creative software...
InstructorGraphic Illustrator with a Bachelor’s Degree in Fine Arts. I am a perpetual perfection seeker with a big passion for History...
IllustratorComments
All videos. All books.
One low price.
A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!
Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.
The largest and most up-to-date collection of courses and books on iOS, Swift, Android, Kotlin, Flutter, Dart, Server-Side Swift, Unity and more!
All videos. All books. One low price.
A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!
Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalogue of 50+ books and 4,000+ videos.
- © 2021 Razeware LLC
- Made with ♥ from around the world
- 6000+ Tutorials and counting
raywenderlich.com and our partners use cookies to understand how you use our site and to serve you personalized content and ads. By continuing to use this site, you accept these cookies, our privacy policy and terms of service .
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK