Communicate with, configure, and control home automation accessories using HomeKit.

Posts under HomeKit tag

200 Posts

Post

Replies

Boosts

Views

Activity

Remote control for iPad from BLE device
I need to implement a remote control for a SwiftUI app running on iPad. I would need to handle 2 different events like Start / Stop. On software side, I plan to use .onReceive to listen to BLE device. So my questions: I need realtime reaction (a few 1/100 s max) can any BLE remote control do the job ? If anyone has tested some low cost remote, I am interested to know. Or should I look for Homekit solutions ? Or use an iPhone as remote controller ?
0
0
946
Dec ’22
HomeKit CircleView Logitech Camera Data
I was hoping someone could tell me how I could acquire the Circle View Camera feed from my home in Oklahoma City. I would like to use that feed data for the development of some new ideas. I am not opposed of using or purchasing software in order to gain access. Just haven't had much luck when seeking more information on this information. Thank you for any guidance in advance -
0
0
625
Dec ’22
HomeKit Camera Streaming Not Working in Swift
0 I've tried building a simple HomeKit app to stream video from a HomeKit Camera and while it appears to be working - the stream is not showing on the View Controller. Any help appreciated. @IBOutlet weak var liveStreamView: HMCameraView! // var liveStreamView: HMCameraView? func startCameraStream(for accessory: HMAccessory) { // Ensure this is a camera accessory guard let cameraStreamControl = accessory.cameraProfiles?.first?.streamControl else { return } cameraStreamControl.delegate = self cameraStreamControl.startStream() let liveStreamView = HMCameraView() self.view.addSubview(liveStreamView) self.liveStreamView = liveStreamView self.liveStreamView.cameraSource = cameraStreamControl.cameraStream self.liveStreamView?.setNeedsDisplay() self.view.layoutIfNeeded() } extension ViewController: HMCameraStreamControlDelegate { func cameraStreamControlDidStartStream(_ cameraStreamControl: HMCameraStreamControl) { liveStreamView?.cameraSource = cameraStreamControl.cameraStream } }
0
0
758
Dec ’22
New HomeKit devices won't connect to Wifi. Confirmed with Eero the devices are sending a bad password
Hi, I have a network with 20+ HomeKit devices and I am very familiar with the technical details here. I have three different brands of SmartPlugs that I cannot get to setup and connect to my Eero network. (WeMo, Meross, TP Link). All are failing to join the network. I spoke with Eero, and they confirmed that all of the devices are attempting to join but sending a bad password. It appears that Apple is passing off a bad password to these devices during the HomeKit setup process, and they never are able to join the Network. I am currently running iOS 16.1.1. I'm about to update to a beta to see if there is any difference there. The Wifi password do not contain any special characters. Does anyone have anymore troubleshooting insight here?
5
1
2.6k
Dec ’22
AirTag Homekit Integration to Trigger Automations / Famili usage.
Hi, would like to Have AirTags into HomeKit or Shortcuts to trigger automations. So we can Take our Car Key and bikes to be showed at home. May we can Trigger Automations. The Kids can Carry a AirTag with their schoolbag and they can trigger automations with their AirTag. Please make it possible to get the AirTag into our Family release. Get every day messages when using the car key of my wife that an AirTag is with me! So my wife and I can see where the car key is located. Thanks
0
0
940
Dec ’22
HomeKit Restriction for Children
Hi, I would like some Options for Kids in our HomeKit. We Work a lot with smart home and HomeKit. But would wish a lot of more HomeKit features as Family. Kids Account an voice with more Restictions that I can choose as Adult. Select Service / Device or Time for the Children when they are allowed to use Siri. Not allowed to Lock the door ... and many more Things! I hope that the HomeKit will not be a place for a single nerd. Please make HomeKit more Family Friendly. Integrate the AirTags into HomeKit. We can do a lot of testing for you, so feel Free to contact us. Thanks... we have: 8x HomePod mini Tv4k Iphone 14 Pro Iphone 12 Pro 2x Watch4 2x iPad 6x AirTag MacBook Pro 14 M1 MacBook Air 13 M1
0
0
1.8k
Dec ’22
HomeKit Controller not exposing LUX sensor for Aqara devices
Hi, I would like to use the illuminance sensor value of my Aqara Motion Sensor P1 device in Home Assistant. The HomeKit Controller integration already makes it possible to connect the device and use its motion sensor, but it seems like HomeKit Controller does not expose the illuminance sensor of the device according to this closed issue from the Home Assistant repository: https://github.com/home-assistant/core/issues/77379 I can confirm that the native Aqara app supports the illuminance sensor and automations can be created according to its value. Please see attached the diagnostic data of my device integration: HomeAssistant Aqara Motion Sensor P1 diagnostic data The Illuminance Sensor node is missing from the data.device.entities block. Kind regards, Marcell
0
1
1.5k
Nov ’22
Any way to reset HomeKit for one iOS device only?
I share my HomeKit config over iCloud to two devices: an iPhone and an iPad. At some point, through adding and changing some devices, I wound up with a corruption on the iPad alone. A Lutron SmartBridge and all of its devices are fully reachable on my iPhone. On my iPad, the bridge and all devices are "not reachable." I cannot delete the bridge from the iPad as it comes right back. If I delete it on my iPhone, it remains on the iPad. I know I could resolve this if I reset the HomeKit configuration in the privacy settings. However, this would reset the config on my iPhone as well. I don't want to do that because I have over 100 devices, and it would be a nightmare to setup again. Here's a video showing some of them: https://youtu.be/-2kc6M1fJPE Having to reset the entire HomeKit configuration due to these minor problems is going to become unfeasible for users the more devices they have. (One should not have to blow up the entire thing every time there's a problem, but I disgress). This problem survived restoring from a backup what I got my new iPad pro instead of the iPad air too I had before. suppose I could do a clean restore on my iPad. But that, too, is more than I want to do. Does anyone know precisely where in the filesystem this HomeKit data is stored? One can sometimes manipulate data in their iTunes backups using a tool like iBackupBot: http://9to5mac.com/2016/04/09/how-to-backup-restore-sms-texts-imessages-clean-ios-install/ I'm wondering if I could back up my iPad, delete the folder containing the HomeKit configuration from just the iPad, then restore that back up. At that point maybe it would repopulate the correct data.
3
0
12k
Oct ’22
HomeKit HAP Software Token Authentication - how to enforce uniqueness of UUID
Hi, we are developing a HomeKit device which will use Software Tokens for provisioning. In the Software Token Authentication Server Specification, section 3.2.1 we as developers are required to generate a UUID which is linked to a Software Token. It is required to enforce UUID uniqueness and also that UUIDs which have been used need to be deleted from our server. How do we enforce UUID uniqueness? Should we just rely on the fact, that the probability of two UUIDs colliding is very small? Or should we check for collisions by comparing a new UUID with all past UUIDs that were issued? For this to be possible, we need to hold all issued UUIDs on our server.
0
0
1k
Oct ’22
HomeKit do not execute POST from AppleTV hub
I using Get Content of https://iago.alofis.pet:8087/write?db=Homekit&u=****&p=*** with Post method and posting text as this: Homekit,room=bathroom,device=Bathroomsensor occupancy=true This should post to InfluxDB , and when I run it from test Shortcut or I run it from Shortcut Play button it’s working, however when it needs to be executed from the AppleTV hub with trigger when motion is detected it is not working. I try multiple trigger scenarios, with timer, of on device controlled, its never working and appear it is not triggered because in my InfluxDB has no log record for any query. The SSL is active on the HTTPS with real domain certificate and it is not an issues with cannot validate the CA. Any help or suggestion will be really appreciated...
0
0
899
Oct ’22
Apple Home App - Add accessory opens camera and then closes
Recently got a new iPhone 14 Pro Max and I wanted to add a smart plug that had been working previously - but when I try to "add accessory" I can see the app tries to open the camera but then an error/bug occurs and the camera closes instantly and goes back to the Home app. The home app then does not allow me to add accessory at all The other home options to: Add automation, Add Room, Add Scene etc. . . all work There seems to be an issue with connecting to the camera from the Home app. iOS is the latest: 16.0.2 I have turned off my phone twice and turned it back on. What's interesting is from the smart plug manufacturer's app, there's an issue with adding the accessory too. Also seems to be accessibility to the camera from the app. I've allowed these apps to have access to everything from settings. But I don't see "camera" as an option within these settings. The only settings are: Location, Bluetooth, Local Network, Home Data, Siri & Search, Notifications, Cellular Data. . .. nothing for the camera, which seems to be the issue. From Settings -> Privacy -> Camera, there's no option to grant these apps permission to use the camera. And the app's themseleves aren't requesting permission like i've seen before. Edit 1: Maybe I need to delete the app's and reinstall to prompt them to request permission again? Or maybe the new phone hasn't given the app's permission, but the app's think they have it from the request approved from my pervious phone? Edit 2: Deleted the Home app and re-installed - it requested permission to use location data, but never requested permission to use camera. And I'm still having the same issues with adding an accessory. The "add accessory" button is seemingly unresponsive or there's an error in the logic behind the button
1
1
711
Oct ’22
HmCharacteristic.readValue always crashes with bundleID is invalid and XPC not entitled
I want to print out every hmCharacteristic's value in my Smart Home and therefore created this screen (code see below). Unfortunately, I am always getting these two errors whenever I try to call the HmCharacteristic.readValue() function (error messages see below). I am using a physical test iPhone with a real HomeKit Smart Home (no HomeKitAccessorySimulator). I am also using a paid apple developer Account and did enable the HomeKit entitlement as well as allowed the app to use HomeKit data on my test iPhone. My question is: Why do I get the bundleId is invalid and XPC not entitled errors and how do I fix them? import SwiftUI import HomeKit struct screen: View { var body: some View { VStack { Image(systemName: "globe") .imageScale(.large) .foregroundColor(.accentColor) Text("Hello, world!") } .padding() } init() { let hmHomeManager = HMHomeManager(); DispatchQueue.main.asyncAfter(deadline: .now() + 1) { for hmHome in hmHomeManager.homes { for hmRoom in hmHome.rooms { for hmAccessory in hmRoom.accessories { for hmService in hmAccessory.services { for hmCharacteristic in hmService.characteristics { Task { hmCharacteristic.readValue { error in print("\(hmHome.name)/\(hmRoom.name)/\(hmAccessory.name)/\(hmService.name)/\(hmCharacteristic.localizedDescription) = \(hmCharacteristic.value ?? "[[nil]]")") } } } } } } } }; } } struct ContentView_Previews: PreviewProvider { static var previews: some View { screen() } } validateSessionInfo: bundleID is invalid. Please specify the bundleID for kRTCReportingSessionInfoClientBundleID initWithSessionInfo: XPC not entitled, 1
0
0
732
Sep ’22
HomeKit Accessory Tester could not be installed
Prompt during installation: Could not obtain authorization to capture network traffic. Please close this application and run the “Uninstall_TKCaptureAssistant.sh” script included in the zip file containing this version of the tool.Then after I run this file, I still can't install the program
Replies
4
Boosts
0
Views
1.6k
Activity
Dec ’22
Remote control for iPad from BLE device
I need to implement a remote control for a SwiftUI app running on iPad. I would need to handle 2 different events like Start / Stop. On software side, I plan to use .onReceive to listen to BLE device. So my questions: I need realtime reaction (a few 1/100 s max) can any BLE remote control do the job ? If anyone has tested some low cost remote, I am interested to know. Or should I look for Homekit solutions ? Or use an iPhone as remote controller ?
Replies
0
Boosts
0
Views
946
Activity
Dec ’22
Matter.framework API
I don't find any API documentation of the Matter.framework. Is it going to be private or can we use it to create custom controllers, which are independent of HomeKit?
Replies
1
Boosts
0
Views
1.4k
Activity
Dec ’22
Where to find HomeKey documentation?
Just wondering if anyone has found any documentation pertaining to Apple HomeKey? I've looked around and haven't been able to find much out there, though some products are being released utilizing them.
Replies
0
Boosts
1
Views
1k
Activity
Dec ’22
HomeKit CircleView Logitech Camera Data
I was hoping someone could tell me how I could acquire the Circle View Camera feed from my home in Oklahoma City. I would like to use that feed data for the development of some new ideas. I am not opposed of using or purchasing software in order to gain access. Just haven't had much luck when seeking more information on this information. Thank you for any guidance in advance -
Replies
0
Boosts
0
Views
625
Activity
Dec ’22
HomeKit Camera Streaming Not Working in Swift
0 I've tried building a simple HomeKit app to stream video from a HomeKit Camera and while it appears to be working - the stream is not showing on the View Controller. Any help appreciated. @IBOutlet weak var liveStreamView: HMCameraView! // var liveStreamView: HMCameraView? func startCameraStream(for accessory: HMAccessory) { // Ensure this is a camera accessory guard let cameraStreamControl = accessory.cameraProfiles?.first?.streamControl else { return } cameraStreamControl.delegate = self cameraStreamControl.startStream() let liveStreamView = HMCameraView() self.view.addSubview(liveStreamView) self.liveStreamView = liveStreamView self.liveStreamView.cameraSource = cameraStreamControl.cameraStream self.liveStreamView?.setNeedsDisplay() self.view.layoutIfNeeded() } extension ViewController: HMCameraStreamControlDelegate { func cameraStreamControlDidStartStream(_ cameraStreamControl: HMCameraStreamControl) { liveStreamView?.cameraSource = cameraStreamControl.cameraStream } }
Replies
0
Boosts
0
Views
758
Activity
Dec ’22
New HomeKit devices won't connect to Wifi. Confirmed with Eero the devices are sending a bad password
Hi, I have a network with 20+ HomeKit devices and I am very familiar with the technical details here. I have three different brands of SmartPlugs that I cannot get to setup and connect to my Eero network. (WeMo, Meross, TP Link). All are failing to join the network. I spoke with Eero, and they confirmed that all of the devices are attempting to join but sending a bad password. It appears that Apple is passing off a bad password to these devices during the HomeKit setup process, and they never are able to join the Network. I am currently running iOS 16.1.1. I'm about to update to a beta to see if there is any difference there. The Wifi password do not contain any special characters. Does anyone have anymore troubleshooting insight here?
Replies
5
Boosts
1
Views
2.6k
Activity
Dec ’22
HomePod mini flashing orange after Update 16.2 Beta 4
Hello everyone, I updated today my HomePod mini to 16.2 Beta 4 and after that my HomePod mini is in flashing orange light. I tried to change the power adapter and the socket, but it is still flashing. Next I connected it to the Mac and tried to reset the HomePod, but it wasn't possible. Any idea? Greetings and thx.
Replies
1
Boosts
0
Views
797
Activity
Dec ’22
AirTag Homekit Integration to Trigger Automations / Famili usage.
Hi, would like to Have AirTags into HomeKit or Shortcuts to trigger automations. So we can Take our Car Key and bikes to be showed at home. May we can Trigger Automations. The Kids can Carry a AirTag with their schoolbag and they can trigger automations with their AirTag. Please make it possible to get the AirTag into our Family release. Get every day messages when using the car key of my wife that an AirTag is with me! So my wife and I can see where the car key is located. Thanks
Replies
0
Boosts
0
Views
940
Activity
Dec ’22
HomeKit Restriction for Children
Hi, I would like some Options for Kids in our HomeKit. We Work a lot with smart home and HomeKit. But would wish a lot of more HomeKit features as Family. Kids Account an voice with more Restictions that I can choose as Adult. Select Service / Device or Time for the Children when they are allowed to use Siri. Not allowed to Lock the door ... and many more Things! I hope that the HomeKit will not be a place for a single nerd. Please make HomeKit more Family Friendly. Integrate the AirTags into HomeKit. We can do a lot of testing for you, so feel Free to contact us. Thanks... we have: 8x HomePod mini Tv4k Iphone 14 Pro Iphone 12 Pro 2x Watch4 2x iPad 6x AirTag MacBook Pro 14 M1 MacBook Air 13 M1
Replies
0
Boosts
0
Views
1.8k
Activity
Dec ’22
After HomeKit update and upgrade; can't pair WEMO Modules
WEMO modules won't connect to HomeKit (or the WEMO app) after the 16.2 beta 1 update and the HomeKit updates. Is this a known Bug? Any solutions? Thanks
Replies
1
Boosts
0
Views
894
Activity
Nov ’22
HomeKit Controller not exposing LUX sensor for Aqara devices
Hi, I would like to use the illuminance sensor value of my Aqara Motion Sensor P1 device in Home Assistant. The HomeKit Controller integration already makes it possible to connect the device and use its motion sensor, but it seems like HomeKit Controller does not expose the illuminance sensor of the device according to this closed issue from the Home Assistant repository: https://github.com/home-assistant/core/issues/77379 I can confirm that the native Aqara app supports the illuminance sensor and automations can be created according to its value. Please see attached the diagnostic data of my device integration: HomeAssistant Aqara Motion Sensor P1 diagnostic data The Illuminance Sensor node is missing from the data.device.entities block. Kind regards, Marcell
Replies
0
Boosts
1
Views
1.5k
Activity
Nov ’22
HomePod Software Update Required (16.2)
I've been unsuccessful updating HomePod software, required to migrate to the new architecture. I have 4 original HomePods and one mini. It doesn't appear to see all of the devices. Anybody have any luck with a similar situation?
Replies
1
Boosts
0
Views
840
Activity
Oct ’22
Any way to reset HomeKit for one iOS device only?
I share my HomeKit config over iCloud to two devices: an iPhone and an iPad. At some point, through adding and changing some devices, I wound up with a corruption on the iPad alone. A Lutron SmartBridge and all of its devices are fully reachable on my iPhone. On my iPad, the bridge and all devices are "not reachable." I cannot delete the bridge from the iPad as it comes right back. If I delete it on my iPhone, it remains on the iPad. I know I could resolve this if I reset the HomeKit configuration in the privacy settings. However, this would reset the config on my iPhone as well. I don't want to do that because I have over 100 devices, and it would be a nightmare to setup again. Here's a video showing some of them: https://youtu.be/-2kc6M1fJPE Having to reset the entire HomeKit configuration due to these minor problems is going to become unfeasible for users the more devices they have. (One should not have to blow up the entire thing every time there's a problem, but I disgress). This problem survived restoring from a backup what I got my new iPad pro instead of the iPad air too I had before. suppose I could do a clean restore on my iPad. But that, too, is more than I want to do. Does anyone know precisely where in the filesystem this HomeKit data is stored? One can sometimes manipulate data in their iTunes backups using a tool like iBackupBot: http://9to5mac.com/2016/04/09/how-to-backup-restore-sms-texts-imessages-clean-ios-install/ I'm wondering if I could back up my iPad, delete the folder containing the HomeKit configuration from just the iPad, then restore that back up. At that point maybe it would repopulate the correct data.
Replies
3
Boosts
0
Views
12k
Activity
Oct ’22
HomeKit HAP Software Token Authentication - how to enforce uniqueness of UUID
Hi, we are developing a HomeKit device which will use Software Tokens for provisioning. In the Software Token Authentication Server Specification, section 3.2.1 we as developers are required to generate a UUID which is linked to a Software Token. It is required to enforce UUID uniqueness and also that UUIDs which have been used need to be deleted from our server. How do we enforce UUID uniqueness? Should we just rely on the fact, that the probability of two UUIDs colliding is very small? Or should we check for collisions by comparing a new UUID with all past UUIDs that were issued? For this to be possible, we need to hold all issued UUIDs on our server.
Replies
0
Boosts
0
Views
1k
Activity
Oct ’22
Remove Confirmation of get content of URL and post it to file
When i create shortcut having Get content of URL it always popup window and request DONE to be clicked to execute it. Is there an option to escape this confirmation window and paste the data in File.
Replies
0
Boosts
0
Views
646
Activity
Oct ’22
HomeKit do not execute POST from AppleTV hub
I using Get Content of https://iago.alofis.pet:8087/write?db=Homekit&u=****&p=*** with Post method and posting text as this: Homekit,room=bathroom,device=Bathroomsensor occupancy=true This should post to InfluxDB , and when I run it from test Shortcut or I run it from Shortcut Play button it’s working, however when it needs to be executed from the AppleTV hub with trigger when motion is detected it is not working. I try multiple trigger scenarios, with timer, of on device controlled, its never working and appear it is not triggered because in my InfluxDB has no log record for any query. The SSL is active on the HTTPS with real domain certificate and it is not an issues with cannot validate the CA. Any help or suggestion will be really appreciated...
Replies
0
Boosts
0
Views
899
Activity
Oct ’22
Apple Home App - Add accessory opens camera and then closes
Recently got a new iPhone 14 Pro Max and I wanted to add a smart plug that had been working previously - but when I try to "add accessory" I can see the app tries to open the camera but then an error/bug occurs and the camera closes instantly and goes back to the Home app. The home app then does not allow me to add accessory at all The other home options to: Add automation, Add Room, Add Scene etc. . . all work There seems to be an issue with connecting to the camera from the Home app. iOS is the latest: 16.0.2 I have turned off my phone twice and turned it back on. What's interesting is from the smart plug manufacturer's app, there's an issue with adding the accessory too. Also seems to be accessibility to the camera from the app. I've allowed these apps to have access to everything from settings. But I don't see "camera" as an option within these settings. The only settings are: Location, Bluetooth, Local Network, Home Data, Siri & Search, Notifications, Cellular Data. . .. nothing for the camera, which seems to be the issue. From Settings -> Privacy -> Camera, there's no option to grant these apps permission to use the camera. And the app's themseleves aren't requesting permission like i've seen before. Edit 1: Maybe I need to delete the app's and reinstall to prompt them to request permission again? Or maybe the new phone hasn't given the app's permission, but the app's think they have it from the request approved from my pervious phone? Edit 2: Deleted the Home app and re-installed - it requested permission to use location data, but never requested permission to use camera. And I'm still having the same issues with adding an accessory. The "add accessory" button is seemingly unresponsive or there's an error in the logic behind the button
Replies
1
Boosts
1
Views
711
Activity
Oct ’22
HmCharacteristic.readValue always crashes with bundleID is invalid and XPC not entitled
I want to print out every hmCharacteristic's value in my Smart Home and therefore created this screen (code see below). Unfortunately, I am always getting these two errors whenever I try to call the HmCharacteristic.readValue() function (error messages see below). I am using a physical test iPhone with a real HomeKit Smart Home (no HomeKitAccessorySimulator). I am also using a paid apple developer Account and did enable the HomeKit entitlement as well as allowed the app to use HomeKit data on my test iPhone. My question is: Why do I get the bundleId is invalid and XPC not entitled errors and how do I fix them? import SwiftUI import HomeKit struct screen: View { var body: some View { VStack { Image(systemName: "globe") .imageScale(.large) .foregroundColor(.accentColor) Text("Hello, world!") } .padding() } init() { let hmHomeManager = HMHomeManager(); DispatchQueue.main.asyncAfter(deadline: .now() + 1) { for hmHome in hmHomeManager.homes { for hmRoom in hmHome.rooms { for hmAccessory in hmRoom.accessories { for hmService in hmAccessory.services { for hmCharacteristic in hmService.characteristics { Task { hmCharacteristic.readValue { error in print("\(hmHome.name)/\(hmRoom.name)/\(hmAccessory.name)/\(hmService.name)/\(hmCharacteristic.localizedDescription) = \(hmCharacteristic.value ?? "[[nil]]")") } } } } } } } }; } } struct ContentView_Previews: PreviewProvider { static var previews: some View { screen() } } validateSessionInfo: bundleID is invalid. Please specify the bundleID for kRTCReportingSessionInfoClientBundleID initWithSessionInfo: XPC not entitled, 1
Replies
0
Boosts
0
Views
732
Activity
Sep ’22
performMatterEcosystemAccessorySetup removed in iOS 16.1?
Hello, apparently, HMAccessorySetupManager.performMatterEcosystemAccessorySetup has been removed from HMAccessorySetupManager.h. Is there any more information on this? Has it moved to a different Framework, or has this kind of functionality ("setting up Matter accessories with a Matter Partner Ecosystem App") been removed from iOS?
Replies
0
Boosts
0
Views
1.1k
Activity
Sep ’22