Post not yet marked as solved
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
Post not yet marked as solved
Unable to sign up, anyone else getting attached image error while signup from Mfi program?
Post not yet marked as solved
let setupManager = HMAccessorySetupManager()
let homeTopology = HMCHIPServiceTopology(homes: homes)
setupManager.addAndSetUpAccessories(for: homeTopology, completionHandler: { error in
if let error = error {
print(error)
}
})
when calling the function 'setupManager.addAndSetUpAccessories(for: homeTopology)', an error log occurs.
Error Domain=HMErrorDomain Code=48 "Operation is not supported." UserInfo={NSLocalizedDescription=Operation is not supported.}
Any ideas what could cause this?
Is this function not working yet because it is currently beta?
Or, did i use the function wrong?
Post not yet marked as solved
I am trying to login to mfi.apple.com to learn about Homekit acessory development. When I log in w/ my developer credentials I get redirected to the page https://mfi.apple.com/account/new-enrollment and I stuck at a modal that says 'label.sessionExpiryMessage' that cannot be dismissed. I have tried logging in with both Safari and Chrome and get the same result.
Is there some trick or special setup needed to access mfi.apple.com?
Post not yet marked as solved
I am trying to add accessory in specific room with below method and payload
guard let payload = HMAccessorySetupPayload(url: url) else {
print(“HomeKitService > Unable to create HMAccessorySetupPayload from URL > \(String(describing: url))")
return
}
It was working fine with previous iOS 15 beta releases and previous iOS versions but now the same code gives the payload error
Failed to create HMSetupAccessoryPayload from setup payload URL <REDIRECT_TO_HOMEKIT_URL> : Error Domain=HMErrorDomain Code=3 "(null)"
Post not yet marked as solved
Hi All,
I'm currently working on an HAP Client implementation which should be able to connect to "Homekit compatible" devices directly without the Home app and allow pairing to them.
Now there is PaitSetupWithAuthentication as "pairing type", but also PaitSetup - which allows to have up to two flags set.
So question is now: What to use when and how to know whats the right one for a device?
I searched through many docs but could not find details on that.
Example: My Hue bridge is responding with an Error "1" (Unknown error) in response to the M1 packet when I use PairSetupWithAuthentication ... with PairSetup without any flags it works fine. Other devices might need PairSetupWithAuthentication ...
Does anyone have more information to share on this topic?
Ingo
The documentation for HMCHIPServiceRequestHandler mentions having the NSExtensionPrincipalClass inherit from HMCHIPServiceRequestHandler.
Is there a NSExtensionPointIdentifier that should be set to enable the HomeKit Matter extension?
Currently, my extension is not being called when trying to set up a new Matter device using HMAccessorySetupManager and I'm not sure why. ☹️
The latest Xcode 13 Beta does not yet offer a HomeKit extension template when creating a new target, so I'm not sure how to check if there's something I'm missing in the NSExtension dictionary in the extension's Info.plist.
Thanks!
Post not yet marked as solved
How to connect Arduino with HomeKit
Post not yet marked as solved
Would someone be able to point me to Apple documentation elaborating on supported network security for HomeKit? I’m trying to get a definitive answer as to whether WPA3 is supported, as all HomeKit devices currently on my network show “no response” and fail to be adding if my Eero router is running with WPA3 Personal-Transitional mode enabled. I’m not sure if this is on Eero’s side as it doesn’t strictly disallow WPA3 in transitional mode, but any pairing requests with HomeKit devices will time out and not be able to be added to the network.
With the exception of one Mysa Thermostat, this issue replicates along all devices. I’m not sure if this is something the manufacturer has to remedy in a future update, but the thermostats along with other devices will pair in HomeKit with the network in WPA3 mode, but as soon as they are removed and re-added to enable a HomeKit-managed credential they will not successfully pair. I have a camera that will later transition to the assigned credential but as far as I know, support by manufacturers for transitioning to the assigned credential without being removed and added again is also quite limited.
Would appreciate any insight other than links to Reddit etc where it’s just speculation. I’ve managed to find some kind of Apple-issued documentation regarding a host of issues and questions I’ve had with the topic of HomeKit Secure Routers and WPA3 being the only exception.
Post not yet marked as solved
We run an app that provides services by linking wireless hardware products through Wi-Fi. Currently, in the process of registering a device, users are inevitably providing a bad experience of manipulating the Wi-Fi part in app settings, so after reviewing the case of operating this method on iOS, I learned that it is WAC and MFi.
It is difficult to find detailed information, so I ask you the following questions.
Are there separate WAC license costs and MFi certification costs?
Is the service possible only after WAC has been approved for MFi and equipped with MFi chips in wireless hardware products?
Can the developer account approve only the WAC part without MFi approval and use it in conjunction with its own wireless hardware product?
Our wireless hardware product does not support Bluetooth communication, but only Wi-Fi communication. Ultimately, what is needed is to allow users to scan Wi-Fi information right around the app without manipulating the app settings separately so that they can choose during the registration process.
Thank you.
Post not yet marked as solved
Homekit BLE will disconnect if no data is exchanged for a period. But if I would like to perform a firmware update with my owm smart phone app, what is the appropirate operation to avoid disconnection before transmitting the image file? Perhaps keep sending some packet from iphone?
Post not yet marked as solved
Dear all,
I updated all my devices to os 15 (ATV 4K 2021, a pair of homepod minis and my iPhone) and unfortunately the option to set my minis as default audio is not working. If I connect them via airplay as temporary audio system is all good, but if I try to set them as default, is not working...no sound is coming through my minis and on the TV says that it failed to connect and I can retry without success or change back the TV speakers.
Do you have any idea how to fix this?
(my tv is a Philips ambilight with 4K 60hz + Dolby vision and HDMI ARC option)
Thanks a lot.
Post not yet marked as solved
As per the Apple documentation of HMHomeManagerDelegate, this protocol will give you the action which are performed outside of the app.
When creating or removing the Home inside our app, this protocol’s delegate method shall not call.
But in some cases, below delegate methods are called even when the creation operation performed within the application which should not happen.
So after “didAdd” delegate method calls HomeManager home has two home with same name.
And may be because of that, application getting the home remove event through “didRemove” delegate method.
optional func homeManager(_ manager: HMHomeManager, didAdd home: HMHome)
optional func homeManager(_ manager: HMHomeManager, didRemove home: HMHome)
So, can anyone please help that in what case the delegate method called while creating home inside application?
Post not yet marked as solved
Hello Apple,
I like and use the "Homekit Accessory Specifications Community Edition" in a project. The version R2 is was released 2019 and so is missing iOS 12 and 13 additions.
Is there any plan to update the document?
Ingo Fischer
Post not yet marked as solved
Hello. I'm working on application for managing accessories our partner manufactures.
I'm developing PoC of WAC provisioning and I chose HomeKit for that.
I'm trying to add our accessory using addAndSetuppAccessories with payload(url) I took from accessory QR code.
But is doesn't work. On some devices calling method produces nothing in logs, on some I receive log:
[default] Failed to deserialize object of classes: {(
HMAccessorySetupCompletedInfo
)}, from data {length = 135, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 0000005b }, with error: Error Domain=NSCocoaErrorDomain Code=4865 "requested key: 'root'" UserInfo={NSDebugDescription=requested key: 'root'}
Apart of logs my view controller appearance changes as like some modal controller is going to be presented over it. But never happens.
There is no information on Apple Developer web site or stackoverflow or any other resource.
How can I resolve it?
As a developer of iOS app should I have MFi license?
Should I include some specific entitlement? (Entitlement for HomeKit already included)
Please help.
Thanks in advance.
Post not yet marked as solved
Hello.
I need to connect manufactured accessory that supports WAC provisioning to user's network.
How it could be done?
What frameworks, certificates, entitlements or algorithms should I use to make it work?
Is there any documentation how it works?
Thanks in advance.
Post not yet marked as solved
Hello. I'm working on application for managing accessories our partner manufactures.
I'm developing PoC of WAC provisioning and I chose HomeKit for that.
I'm trying to add our accessory using addAndSetuppAccessories with payload(url) I took from accessory QR code.
But is doesn't work. On some devices calling method produces nothing in logs, on some I receive log: [default] Failed to deserialize object of classes: {( HMAccessorySetupCompletedInfo )}, from data {length = 135, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 0000005b }, with error: Error Domain=NSCocoaErrorDomain Code=4865 "requested key: 'root'" UserInfo={NSDebugDescription=requested key: 'root'}
Apart of logs my view controller appearance changes as like some modal controller is going to be presented over it. But never happens.
I found that I should add "com.apple.developer.homekit.allow-setup-payload" entitle ment to the identifier. But Xcode 12.x doesn't see it.
Please help. Thanks in advance.
Post not yet marked as solved
We're trying Matter devices on HomeKit but currently using ESP32 DevKits except the M5Stack. It wasn't really mentioned in the Enabling Matter PDF that only the M5Stack is supported but there's a preference for it for testing?
I have tried building the firmware for an ESP32-DevKit and I keep getting 'Unsupported setup code' despite tweaking the vendor and product id.
Haven't checked the code yet if there's just M5Stack specific code support for HomeKit provisioning but throwing this question either way here.
Post not yet marked as solved
Symbol not found: OBJC_CLASS$_HMCHIPServiceHome
Expected in: /System/Library/Frameworks/HomeKit.framework/HomeKit
HMCHIPServiceHome(uuid: UUID(), name: "Scott's") works fine in iOS 15.0 but all of the 15.1 betas (1,2,3,4) have had this issue preventing initializing home structures.
Post not yet marked as solved
Hi everyone !
Does someone know if it's possible to find the HMRoom object where a given Apple TV is located ?
I've done some research in the documentation but I am unable to find a method giving this information ...
Thank you all for you reading and maybe for you answer ;)