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

Posts under HomeKit tag

200 Posts

Post

Replies

Boosts

Views

Activity

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
956
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
797
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
793
Sep ’22
HomeKit is broken on macOS Ventura
If you build any HomeKit app against the iOS 16 / macOS Ventura SDK with Mac Catalyst (or run it with the Designed for iPhone / iPad destination on Apple Silicon) they are broken and the HMHomeManagerDelegate.homeManagerDidUpdateHomes() method is never called on the manager delegate. This is an issue since macOS Ventura Beta 1 and keeps happening on Beta 3. Any idea how to solve this issue?
7
0
2.6k
Sep ’22
Home app stuck on “loading accesories and scenes”
i tried numerous options in trying to fix it. left it open aver the night, i read somewhere that after a long time it will appear a option that is taking to long and i can press reset, but after almost 10 hours, nothing popped up. i tried deactivating the icloud synt to Home. no help i tried off and on keychain, still no halp i tried hard reboot after uninstalling and after the reboot reinstalled the home app, still no help i tried reinstalling the os on my phone, from scratch, no help -i tried updating to ios 16 beta, stil no help i really don’t know what my next step should be in fixing this issue from my wife’s iphone the home that i shared with her works perfectly fine, on my 2 devices(iphone 14 and a iphone 7) when i try to open it get stuck in loading app and scenes. please help
0
1
954
Sep ’22
Is HomeKit Temperature Sensor Resolution ±0.5 °C ?
Hi, I am using Homebridge on Raspberry Pi platform to get temperature from my sensors. I successfully update temperature data from Raspberry Pi to HomeKit application on my iPhone. The problem is, even I update temperature value using 0.1 °C resolution (like 23.3, 23.4, 23.5, 23.6) HomeKit just shows this values 0.5 °C resolution (like 23.0, 23.0, 23.5, 23.5 respectively). Is there any way to decrease rosolution to 0.1 °C ? Many thank for help. Regards,
2
0
2.3k
Sep ’22
Is there a full documentation about HomeKit integration in an app?
I would like to create a personal SwiftUI app to control my RGB HomeKit-compatible led strip. I found this on Apple Developer Documentation but is reductive. I downloaded the app example but it's developed in UIKit and without an appropriate documentation is difficult to apply. My difficult is especially in how to create HomeKit models to manage homes, rooms, accessory and above all how to comunicate with the led strip. My idea is to create a page when setting manually RGB parameters with three slider and some buttons with some effects. I attach an imaged to show you my idea: So, is there somewhere more accurate documentation that I can follow? Thanks in advance!
1
0
758
Aug ’22
Matter API names (renamed)
Hi, The WWDC2021 Video Add support for Matter in your smart home app has a bunch of code examples referencing APIs that are no longer present or deprecated, e.g. this one. Unfortunately the documentation doesn't give any hint on the replacement APIs. Most of them are to be found in HMMatter* objects. But in the video at 14:27 an API for CHIPDeviceController is shown. Unfortunately that one cannot be found anymore. Does anybody know how to achieve the described task (managing state and control of a matter accessory)
1
0
2.4k
Aug ’22
HomePod Mini Beta 16
HomePod Mini Beta 16 has disabled Personal Requests. "Sorry, I'm still setting up Personal Requests on this device" is Siri's response for over a week since downloading the beta for HomePod Mini when the public beta was released. Have Reset, changed settings, Removed Accessory, all to no avail. Even tried to set to factory defaults by connecting to the iMac and erasing, but couldn't connect to server for "16." Anyone else have this problem? Is there something I'm missing, or is it a result of the Beta? Personal Requests worked flawlessly prior to Public Beta 16 download. I have a large HomePod (the original) running 15.6 with no problems. Would be content to wipe the device and go back to ground zero if I were able.
3
0
1k
Aug ’22
MFI portal login fail
I am trying to login to mfi.apple.com to check some information about Homekit compatible product development. When I log in after 2FA I get redirected to the page https://mfi.apple.com/account/new-enrollment and I stuck there until browser timeout. I have tried logging in with both Edge and Chrome and also different laptops using different developer account in our company and get the same result. May I know is the MFI portal down now or it's just us?
1
0
1k
Aug ’22
Does Home app support creation of Matter groups?
Hi, I commissioned an ESP32C3 device running Matter using the Home app. The iPhone is on iOS version 16 beta 2. For this I used the all-clusters-app/esp32 example from the connectedhomeip repo. Commit ID for connectedhomeip: cfc35951be66a664a6efdadea56d1b8ea6e63e96 I cannot on the accessory screen see any option to create matter groups. Is there any such option available on the home app? Thanks, Ajay Gantayet
0
0
1.1k
Jul ’22
HMErrorDomain code 10 on AppleTV
Hi, I have an app where i am controlling various homekit devices. I runs on AppleWatch, iPhone/iPad and AppleTV. I use the exact same code on all platforms for locking and unlocking a Danalock V3 Homekit verison door lock. I workes fine on all platforms but the AppleTV. There i get error 10 ("No access") when calling ".characteristic.writeValue" . All other Homekit devices i have works on the AppleTV. Any idea what could cause the error? Magne Roald Oslo, Norway
1
1
764
Jul ’22
ADK doesn't have NFCAccess characteristics
Hello everyone, I'm trying to look for documentation to implement Home Key, but unfortunately I haven't found anything. In the ADK and HAP noncommercial doc there aren't any mentions of NFCAccess and such. Only mentions I've found are in the NodeHAP (https://github.com/homebridge/HAP-NodeJS/releases/tag/v0.9.5), nrchkb (https://nrchkb.github.io/wiki/service/nfcaccess/#characteristics) and a Nordic semi devzone post where it mentions the files (HAPRequestHandlers+NfcAccess.c) in the logs (https://devzone.nordicsemi.com/f/nordic-q-a/78335/keil-internal-fault-0xb3b91b-5060750) Is Home Key MFi only for now? Thanks, David.
0
0
707
Jul ’22
XCode signing says NSHomeKitUsageDescription not supplied, how do I do that?
I get the error: "Provisioning profile "iOS Team Provisioning Profile: xxx.xxx.homekitexporter" doesn't include the NSHomeKitUsageDescription entitlement." I have HomeKit enabled in the .entitlements file and I added the NSHomeKitUsageDescription to that also. I looked at the profile under my development account and I can see the HomeKit entitlement but I see nowhere to add the usage description key and string other than in the .entitlements file. I also tried adding the key and string to the Custom IOS Properties for my Target APP but that didn't work either. What am I missing?
8
0
1.7k
Jul ’22
Window Covering and Home App Problems
Hi guys,I've been working on getting some accessories working nicely with the Home App. When dealing with Window Coverings I came across some observations that don't seem to make sense to me and I'd be very thankful if someone would either confirm those observations or tell me, where I am going wrong.Summary: The Home App does not seem to properly use/display the available characteristics for the "Window Covering" serviceThe accessory uses a "Window Covering" service with the default characteristics (Current Position, Target Position, Position State) as well as two optional ones (Target Horizontal Tilt Angle & Current Horizontal Tilt Angle) and has been setup in the HomeKit Accessory Simulator.After adding the accessory to the Home App on my iPad (iOS11.1.2) it properly shows up and I can interact with it while observing the changes in real time in the Simulator.Now for my observations:1. The Home App does NOT show the value of "Current Position" anywhere - the only thing that is displayed is "Target Position"2. The Home App does NOT show the value of "Position State" anywhere - it derives the current state from the delta of "Current Position" and "Target Position". If "Current Position" > "Target Position" it displays "Closing", if "Current Position" < "Opening" and if they are the same, it displays the current value as %.Is this how it is supposed to work? Am I missing something?I intend to connect a real accessory via Home Kit Protocol that can be controlled in two ways:a) by changing the moving direction (up, down, stop)b) setting a desired target positionWith the above observations this leads to the following questions:1. If I set a target position on the accessory, the accessory will a) broadcast the change to "Target Position" and b) broadcast a series of changes to "Current Position" until it has reached the desired target position. This is properly reflected in the Home App when viewing the control in its small form (Showing "Opening" or "Closed"). Is there any way to make this process visible in the Home App when the the control is opened in full screen as well? As far as I could see it will jump right to the "Target Position" in the slider and not show anything regarding the updates to "Current Position" - even when opening the "Details" dialog.2. If I change the accessory by using directional controls, the accessory will a) broadcast the change to "Position State" and b) broadcast a series of changes to "Current Position" until it is stopped again. It will NOT broadcast a change to "Target Position", since it is not known when just using directional interaction. This leads to a problem in the Home App. Since the App does NOT check the "Position State", but calculates the value by itself, it ends up with inverted directions when "Current Position" starts changing without changes to "Target Position".Example: Blind is fully closed ("Current Position" and "Target Position" both being 0). Now the accessory is changed by using directional controls to open. This leads i.e. to "Current Position" to change to 5. Now the Home App does it's math (now "Current Position" > "Target Position") and displays "Closing", which is wrong.Is there a way to get the Home App to properly display the direction by examining the "PositionState" characteristic?Please let me know, if you need any additional information - I'll be happy to provide it.Thanks in advance,Kind regards,Michael.
3
0
4.5k
Jul ’22
kRTCReportingSessionInfoClientBundleID Error writing HomeKit Characteristic Value
In my app I'm writing the value of a characteristic (the value written is a string). When I write this characteristic with this code: characteristic.writeValue(uuidString) { error in } The error message below is printed to the debug console. The value *is* written, it seems. If I follow up with the following readValue, the characteristic.value is correct. characteristic.readValue { error in print(characteristic.value) } I can't find a reference to what this error root cause is, or how to "specify the bundle id" for the referenced key value. Does anyone know what this means--and is it something I need to address before shipping the app (and how to do that)? 2021-05-17 14:29:14.321834-0400 XXXXXX[3509:2934697] validateSessionInfo: bundleID is invalid. Please specify the bundleID for kRTCReportingSessionInfoClientBundleID
5
0
2.1k
Jul ’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
705
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
956
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
797
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
793
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.2k
Activity
Sep ’22
HomeKit is broken on macOS Ventura
If you build any HomeKit app against the iOS 16 / macOS Ventura SDK with Mac Catalyst (or run it with the Designed for iPhone / iPad destination on Apple Silicon) they are broken and the HMHomeManagerDelegate.homeManagerDidUpdateHomes() method is never called on the manager delegate. This is an issue since macOS Ventura Beta 1 and keeps happening on Beta 3. Any idea how to solve this issue?
Replies
7
Boosts
0
Views
2.6k
Activity
Sep ’22
Connecting to Matter device on iOS 16
Hi, Was anybody able to connect Matter device with iOS 16 phone? I've tried ESP32 board with m5stack. The ESP32 device was in commissioning mode, but Apple Home app was not recognising it (neither by QR code nor as nearby device).
Replies
5
Boosts
1
Views
4.7k
Activity
Sep ’22
HomeKit Certification Test Case TCR034
The colors of led indicator mentioned are blue and red, but we are currently using blue and orange. I like to confirm that is it mandatory to be blue/red, or we can keep blue/orange instead and use orange led to follow the behavior of red led in the test case?
Replies
0
Boosts
0
Views
1.1k
Activity
Sep ’22
Home app stuck on “loading accesories and scenes”
i tried numerous options in trying to fix it. left it open aver the night, i read somewhere that after a long time it will appear a option that is taking to long and i can press reset, but after almost 10 hours, nothing popped up. i tried deactivating the icloud synt to Home. no help i tried off and on keychain, still no halp i tried hard reboot after uninstalling and after the reboot reinstalled the home app, still no help i tried reinstalling the os on my phone, from scratch, no help -i tried updating to ios 16 beta, stil no help i really don’t know what my next step should be in fixing this issue from my wife’s iphone the home that i shared with her works perfectly fine, on my 2 devices(iphone 14 and a iphone 7) when i try to open it get stuck in loading app and scenes. please help
Replies
0
Boosts
1
Views
954
Activity
Sep ’22
Is HomeKit Temperature Sensor Resolution ±0.5 °C ?
Hi, I am using Homebridge on Raspberry Pi platform to get temperature from my sensors. I successfully update temperature data from Raspberry Pi to HomeKit application on my iPhone. The problem is, even I update temperature value using 0.1 °C resolution (like 23.3, 23.4, 23.5, 23.6) HomeKit just shows this values 0.5 °C resolution (like 23.0, 23.0, 23.5, 23.5 respectively). Is there any way to decrease rosolution to 0.1 °C ? Many thank for help. Regards,
Replies
2
Boosts
0
Views
2.3k
Activity
Sep ’22
Is there a full documentation about HomeKit integration in an app?
I would like to create a personal SwiftUI app to control my RGB HomeKit-compatible led strip. I found this on Apple Developer Documentation but is reductive. I downloaded the app example but it's developed in UIKit and without an appropriate documentation is difficult to apply. My difficult is especially in how to create HomeKit models to manage homes, rooms, accessory and above all how to comunicate with the led strip. My idea is to create a page when setting manually RGB parameters with three slider and some buttons with some effects. I attach an imaged to show you my idea: So, is there somewhere more accurate documentation that I can follow? Thanks in advance!
Replies
1
Boosts
0
Views
758
Activity
Aug ’22
Matter API names (renamed)
Hi, The WWDC2021 Video Add support for Matter in your smart home app has a bunch of code examples referencing APIs that are no longer present or deprecated, e.g. this one. Unfortunately the documentation doesn't give any hint on the replacement APIs. Most of them are to be found in HMMatter* objects. But in the video at 14:27 an API for CHIPDeviceController is shown. Unfortunately that one cannot be found anymore. Does anybody know how to achieve the described task (managing state and control of a matter accessory)
Replies
1
Boosts
0
Views
2.4k
Activity
Aug ’22
HomePod Mini Beta 16
HomePod Mini Beta 16 has disabled Personal Requests. "Sorry, I'm still setting up Personal Requests on this device" is Siri's response for over a week since downloading the beta for HomePod Mini when the public beta was released. Have Reset, changed settings, Removed Accessory, all to no avail. Even tried to set to factory defaults by connecting to the iMac and erasing, but couldn't connect to server for "16." Anyone else have this problem? Is there something I'm missing, or is it a result of the Beta? Personal Requests worked flawlessly prior to Public Beta 16 download. I have a large HomePod (the original) running 15.6 with no problems. Would be content to wipe the device and go back to ground zero if I were able.
Replies
3
Boosts
0
Views
1k
Activity
Aug ’22
MFI portal login fail
I am trying to login to mfi.apple.com to check some information about Homekit compatible product development. When I log in after 2FA I get redirected to the page https://mfi.apple.com/account/new-enrollment and I stuck there until browser timeout. I have tried logging in with both Edge and Chrome and also different laptops using different developer account in our company and get the same result. May I know is the MFI portal down now or it's just us?
Replies
1
Boosts
0
Views
1k
Activity
Aug ’22
Does Home app support creation of Matter groups?
Hi, I commissioned an ESP32C3 device running Matter using the Home app. The iPhone is on iOS version 16 beta 2. For this I used the all-clusters-app/esp32 example from the connectedhomeip repo. Commit ID for connectedhomeip: cfc35951be66a664a6efdadea56d1b8ea6e63e96 I cannot on the accessory screen see any option to create matter groups. Is there any such option available on the home app? Thanks, Ajay Gantayet
Replies
0
Boosts
0
Views
1.1k
Activity
Jul ’22
HMErrorDomain code 10 on AppleTV
Hi, I have an app where i am controlling various homekit devices. I runs on AppleWatch, iPhone/iPad and AppleTV. I use the exact same code on all platforms for locking and unlocking a Danalock V3 Homekit verison door lock. I workes fine on all platforms but the AppleTV. There i get error 10 ("No access") when calling ".characteristic.writeValue" . All other Homekit devices i have works on the AppleTV. Any idea what could cause the error? Magne Roald Oslo, Norway
Replies
1
Boosts
1
Views
764
Activity
Jul ’22
ADK doesn't have NFCAccess characteristics
Hello everyone, I'm trying to look for documentation to implement Home Key, but unfortunately I haven't found anything. In the ADK and HAP noncommercial doc there aren't any mentions of NFCAccess and such. Only mentions I've found are in the NodeHAP (https://github.com/homebridge/HAP-NodeJS/releases/tag/v0.9.5), nrchkb (https://nrchkb.github.io/wiki/service/nfcaccess/#characteristics) and a Nordic semi devzone post where it mentions the files (HAPRequestHandlers+NfcAccess.c) in the logs (https://devzone.nordicsemi.com/f/nordic-q-a/78335/keil-internal-fault-0xb3b91b-5060750) Is Home Key MFi only for now? Thanks, David.
Replies
0
Boosts
0
Views
707
Activity
Jul ’22
XCode signing says NSHomeKitUsageDescription not supplied, how do I do that?
I get the error: "Provisioning profile "iOS Team Provisioning Profile: xxx.xxx.homekitexporter" doesn't include the NSHomeKitUsageDescription entitlement." I have HomeKit enabled in the .entitlements file and I added the NSHomeKitUsageDescription to that also. I looked at the profile under my development account and I can see the HomeKit entitlement but I see nowhere to add the usage description key and string other than in the .entitlements file. I also tried adding the key and string to the Custom IOS Properties for my Target APP but that didn't work either. What am I missing?
Replies
8
Boosts
0
Views
1.7k
Activity
Jul ’22
Window Covering and Home App Problems
Hi guys,I've been working on getting some accessories working nicely with the Home App. When dealing with Window Coverings I came across some observations that don't seem to make sense to me and I'd be very thankful if someone would either confirm those observations or tell me, where I am going wrong.Summary: The Home App does not seem to properly use/display the available characteristics for the "Window Covering" serviceThe accessory uses a "Window Covering" service with the default characteristics (Current Position, Target Position, Position State) as well as two optional ones (Target Horizontal Tilt Angle & Current Horizontal Tilt Angle) and has been setup in the HomeKit Accessory Simulator.After adding the accessory to the Home App on my iPad (iOS11.1.2) it properly shows up and I can interact with it while observing the changes in real time in the Simulator.Now for my observations:1. The Home App does NOT show the value of "Current Position" anywhere - the only thing that is displayed is "Target Position"2. The Home App does NOT show the value of "Position State" anywhere - it derives the current state from the delta of "Current Position" and "Target Position". If "Current Position" > "Target Position" it displays "Closing", if "Current Position" < "Opening" and if they are the same, it displays the current value as %.Is this how it is supposed to work? Am I missing something?I intend to connect a real accessory via Home Kit Protocol that can be controlled in two ways:a) by changing the moving direction (up, down, stop)b) setting a desired target positionWith the above observations this leads to the following questions:1. If I set a target position on the accessory, the accessory will a) broadcast the change to "Target Position" and b) broadcast a series of changes to "Current Position" until it has reached the desired target position. This is properly reflected in the Home App when viewing the control in its small form (Showing "Opening" or "Closed"). Is there any way to make this process visible in the Home App when the the control is opened in full screen as well? As far as I could see it will jump right to the "Target Position" in the slider and not show anything regarding the updates to "Current Position" - even when opening the "Details" dialog.2. If I change the accessory by using directional controls, the accessory will a) broadcast the change to "Position State" and b) broadcast a series of changes to "Current Position" until it is stopped again. It will NOT broadcast a change to "Target Position", since it is not known when just using directional interaction. This leads to a problem in the Home App. Since the App does NOT check the "Position State", but calculates the value by itself, it ends up with inverted directions when "Current Position" starts changing without changes to "Target Position".Example: Blind is fully closed ("Current Position" and "Target Position" both being 0). Now the accessory is changed by using directional controls to open. This leads i.e. to "Current Position" to change to 5. Now the Home App does it's math (now "Current Position" > "Target Position") and displays "Closing", which is wrong.Is there a way to get the Home App to properly display the direction by examining the "PositionState" characteristic?Please let me know, if you need any additional information - I'll be happy to provide it.Thanks in advance,Kind regards,Michael.
Replies
3
Boosts
0
Views
4.5k
Activity
Jul ’22
kRTCReportingSessionInfoClientBundleID Error writing HomeKit Characteristic Value
In my app I'm writing the value of a characteristic (the value written is a string). When I write this characteristic with this code: characteristic.writeValue(uuidString) { error in } The error message below is printed to the debug console. The value *is* written, it seems. If I follow up with the following readValue, the characteristic.value is correct. characteristic.readValue { error in print(characteristic.value) } I can't find a reference to what this error root cause is, or how to "specify the bundle id" for the referenced key value. Does anyone know what this means--and is it something I need to address before shipping the app (and how to do that)? 2021-05-17 14:29:14.321834-0400 XXXXXX[3509:2934697] validateSessionInfo: bundleID is invalid. Please specify the bundleID for kRTCReportingSessionInfoClientBundleID
Replies
5
Boosts
0
Views
2.1k
Activity
Jul ’22