Learn how to use the HomeKit framework to control smart home devices by making an app that controls a smart lightbulb.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5313-homekit-tutorial-getting-started
Learn how to use the HomeKit framework to control smart home devices by making an app that controls a smart lightbulb.
Hi! I need to create an app through I can control the Smart Lock. Can you please provide the sample code for integrating the Smart Lock in iOS App which can be controlled from my own iOS App?
@adamrush Can you please help with this when you get a chance? Thank you - much appreciated! :]
Hey @harshcs
Thanks for reading the tutorial .
You should be able to use most of the code apart from your service type will be; HMAccessoryCategoryTypeDoorLock
and the value characteristic will be HMCharacteristicValueLockMechanismState
.
The state is an enum so you would base the value of either locked/unlocked.
I hope this helps
Hay Adamrush,
Can you please help me, How we can vary intensity and color of light ?
@adamrush Can you please help with this when you get a chance? Thank you - much appreciated! :]
This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!