Matter is an IP-based, royalty-free connectivity protocol standard that enables communication among a wide range of smart devices.

Posts under Matter tag

130 Posts

Post

Replies

Boosts

Views

Activity

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.3k
Aug ’22
System Alert when using HMAccessorySetupRequest.performMatterEcosystemAccessorySetup
I'm trying to commission a matter device via HMAccessorySetupRequest.performMatterEcosystemAccessorySetup. After scanning the QR code via the system provided UI the app shows a system popup: Additional Setup Required This accessory required additional setup. Refer to the manufacturer's guide for more information Unfortunately there's no further information. Did anybody succeed in using this API and could assist?
0
0
1.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
1k
Jul ’22
Thread THClient APIs fails with error, "The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process."
iOS version : 15.4.1 xcode : 13.3.1 my code: let threadClient = THClient() threadClient.retrieveAllCredentials { credentials, error in if let credentials = credentials { print(" count = \(credentials.count)") credentials.forEach { credential in print(" networkKey = \(String(describing: credential.networkKey))") print(" extendedPANID = \(String(describing: credential.extendedPANID))") print(" borderAgentID = \(String(describing: credential.borderAgentID))") print(" activeOperationalDataSet = \(String(describing: credential.activeOperationalDataSet))") print(" networkKey = \(String(describing: credential.networkKey))") print(" pskc = \(String(describing: credential.pskc))") print(" channel = \(credential.channel)") print(" panID = \(String(describing: credential.panID))") print(" creationDate = \(String(describing: credential.creationDate))") print(" lastModificationDate = \(String(describing: credential.lastModificationDate))") } } } result: 2022-05-09 18:04:29.864501+0900 [36766:2122724] Client: -[THClient connectToXPCService] - connectToXPCService Connection resumed 2022-05-09 18:04:29.867340+0900 [36766:2124576] Successfully established connection 2022-05-09 18:04:29.867367+0900 [36766:2124545] CTCS XPC Client - isConnected: true 2022-05-09 18:04:29.867434+0900 [36766:2124576] clientProxyWithErrorHandler connected=YES 2022-05-09 18:04:29.867540+0900 [36766:2124576] Client: -[THClient getConnectionEntitlementValidity]_block_invoke_2 - Error: (null) 2022-05-09 18:04:29.867628+0900 [36766:2122724] Client: -[THClient init] - XPC Client Init done 2022-05-09 18:04:29.867709+0900 [36766:2122724] Client: -[THClient retrieveAllCredentials:]:554 - Calling Server remoteObjectProxyWithErrorHandler 2022-05-09 18:04:29.867827+0900 [36766:2122724] -[THClient dealloc] : Client: - deallocated... 2022-05-09 18:04:29.867993+0900 [36766:2124576] Client: -[THClient retrieveAllCredentials:]_block_invoke - Error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process.} The results are the same with retrievePreferredCredentials 2022-05-09 17:51:44.152819+0900 [36628:2119289] CTCS XPC Client - isConnected: true 2022-05-09 17:51:44.152987+0900 [36628:2118644] clientProxyWithErrorHandler connected=YES 2022-05-09 17:51:44.153174+0900 [36628:2118644] Client: -[THClient getConnectionEntitlementValidity]_block_invoke_2 - Error: (null) 2022-05-09 17:51:44.153328+0900 [36628:2114499] Client: -[THClient init] - XPC Client Init done 2022-05-09 17:51:44.153475+0900 [36628:2114499] Client: -[THClient retrievePreferredCredentials:]:636 - Calling Server remoteObjectProxyWithErrorHandler 2022-05-09 17:51:44.153660+0900 [36628:2114499] Client: -[THClient retrieveAllCredentials:]:554 - Calling Server remoteObjectProxyWithErrorHandler 2022-05-09 17:51:44.153821+0900 [36628:2114499] -[THClient dealloc] : Client: - deallocated... 2022-05-09 17:51:44.154 [com.apple.main-thread:2114499] I EasySetupSelectLocationRoomWireFrame(89):setInterface(presenter:resourceModel:device:) - setInterface() 2022-05-09 17:51:44.154977+0900 [36628:2119289] Client: -[THClient retrieveAllCredentials:]_block_invoke - Error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process.} 2022-05-09 17:51:44.155242+0900 [36628:2119289] Client: -[THClient retrievePreferredCredentials:]_block_invoke - Error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process.} of course entitlement Additional Capabilities are added. What does the error means? Is there any I am missing? DNS-SD monitoring status : Lookup MyHome8._meshcop._udp.local DATE: ---Mon 09 May 2022--- 13:49:49.712 ...STARTING... 15:05:07.265 MyHome8._meshcop._udp.local. can be reached at 20F.local.:49191 (interface 13)  rv=1 nn=MyHome8 xp=42?˟uJ? tv=1.2.0 vn=Apple\ Inc. xa=?\(s?\(?.? sb=\\\x00\\\x00\\\x001
1
0
1.3k
May ’22
iOS 15.2 Beta Matter Extension Error
Calling setupManager.addAndSetUpAccessories(for: topology) [CHIPAccessoryServer] CHIP Accessory pairing failed before network provisioning: Error Domain=CHIPErrorDomain Code=1 "Undefined error:50." UserInfo={NSLocalizedDescription=Undefined error:50.} I tested using https://github.com/project-chip/connectedhomeip Test Event 5 and Test Event 7, both fail.
0
0
1.3k
Nov ’21
For the Matter Preview Support only the M5Stack is supported? no other ESP32's?
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.
0
0
1.2k
Oct ’21
What is the NSExtensionPointIdentifier for the HomeKit Matter extension?
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!
1
0
1.4k
Aug ’21
Doesn't work the Conntected Home Over IP Support class
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?
3
0
1.5k
Aug ’21
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.3k
Activity
Aug ’22
Tutorial for HMMatterRequestHandler
I'm looking for a tutorial or documentation on HMMatterRequestHandler. I'm aware of the brief mentions in wwdc21-10298 but it's not sufficient. Is there any tutorial/ more extensive documentation?
Replies
1
Boosts
1
Views
1.2k
Activity
Aug ’22
System Alert when using HMAccessorySetupRequest.performMatterEcosystemAccessorySetup
I'm trying to commission a matter device via HMAccessorySetupRequest.performMatterEcosystemAccessorySetup. After scanning the QR code via the system provided UI the app shows a system popup: Additional Setup Required This accessory required additional setup. Refer to the manufacturer's guide for more information Unfortunately there's no further information. Did anybody succeed in using this API and could assist?
Replies
0
Boosts
0
Views
1.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
1k
Activity
Jul ’22
Thread THClient APIs fails with error, "The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process."
iOS version : 15.4.1 xcode : 13.3.1 my code: let threadClient = THClient() threadClient.retrieveAllCredentials { credentials, error in if let credentials = credentials { print(" count = \(credentials.count)") credentials.forEach { credential in print(" networkKey = \(String(describing: credential.networkKey))") print(" extendedPANID = \(String(describing: credential.extendedPANID))") print(" borderAgentID = \(String(describing: credential.borderAgentID))") print(" activeOperationalDataSet = \(String(describing: credential.activeOperationalDataSet))") print(" networkKey = \(String(describing: credential.networkKey))") print(" pskc = \(String(describing: credential.pskc))") print(" channel = \(credential.channel)") print(" panID = \(String(describing: credential.panID))") print(" creationDate = \(String(describing: credential.creationDate))") print(" lastModificationDate = \(String(describing: credential.lastModificationDate))") } } } result: 2022-05-09 18:04:29.864501+0900 [36766:2122724] Client: -[THClient connectToXPCService] - connectToXPCService Connection resumed 2022-05-09 18:04:29.867340+0900 [36766:2124576] Successfully established connection 2022-05-09 18:04:29.867367+0900 [36766:2124545] CTCS XPC Client - isConnected: true 2022-05-09 18:04:29.867434+0900 [36766:2124576] clientProxyWithErrorHandler connected=YES 2022-05-09 18:04:29.867540+0900 [36766:2124576] Client: -[THClient getConnectionEntitlementValidity]_block_invoke_2 - Error: (null) 2022-05-09 18:04:29.867628+0900 [36766:2122724] Client: -[THClient init] - XPC Client Init done 2022-05-09 18:04:29.867709+0900 [36766:2122724] Client: -[THClient retrieveAllCredentials:]:554 - Calling Server remoteObjectProxyWithErrorHandler 2022-05-09 18:04:29.867827+0900 [36766:2122724] -[THClient dealloc] : Client: - deallocated... 2022-05-09 18:04:29.867993+0900 [36766:2124576] Client: -[THClient retrieveAllCredentials:]_block_invoke - Error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process.} The results are the same with retrievePreferredCredentials 2022-05-09 17:51:44.152819+0900 [36628:2119289] CTCS XPC Client - isConnected: true 2022-05-09 17:51:44.152987+0900 [36628:2118644] clientProxyWithErrorHandler connected=YES 2022-05-09 17:51:44.153174+0900 [36628:2118644] Client: -[THClient getConnectionEntitlementValidity]_block_invoke_2 - Error: (null) 2022-05-09 17:51:44.153328+0900 [36628:2114499] Client: -[THClient init] - XPC Client Init done 2022-05-09 17:51:44.153475+0900 [36628:2114499] Client: -[THClient retrievePreferredCredentials:]:636 - Calling Server remoteObjectProxyWithErrorHandler 2022-05-09 17:51:44.153660+0900 [36628:2114499] Client: -[THClient retrieveAllCredentials:]:554 - Calling Server remoteObjectProxyWithErrorHandler 2022-05-09 17:51:44.153821+0900 [36628:2114499] -[THClient dealloc] : Client: - deallocated... 2022-05-09 17:51:44.154 [com.apple.main-thread:2114499] I EasySetupSelectLocationRoomWireFrame(89):setInterface(presenter:resourceModel:device:) - setInterface() 2022-05-09 17:51:44.154977+0900 [36628:2119289] Client: -[THClient retrieveAllCredentials:]_block_invoke - Error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process.} 2022-05-09 17:51:44.155242+0900 [36628:2119289] Client: -[THClient retrievePreferredCredentials:]_block_invoke - Error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process.} of course entitlement Additional Capabilities are added. What does the error means? Is there any I am missing? DNS-SD monitoring status : Lookup MyHome8._meshcop._udp.local DATE: ---Mon 09 May 2022--- 13:49:49.712 ...STARTING... 15:05:07.265 MyHome8._meshcop._udp.local. can be reached at 20F.local.:49191 (interface 13)  rv=1 nn=MyHome8 xp=42?˟uJ? tv=1.2.0 vn=Apple\ Inc. xa=?\(s?\(?.? sb=\\\x00\\\x00\\\x001
Replies
1
Boosts
0
Views
1.3k
Activity
May ’22
iOS 15.2 Beta Matter Extension Error
Calling setupManager.addAndSetUpAccessories(for: topology) [CHIPAccessoryServer] CHIP Accessory pairing failed before network provisioning: Error Domain=CHIPErrorDomain Code=1 "Undefined error:50." UserInfo={NSLocalizedDescription=Undefined error:50.} I tested using https://github.com/project-chip/connectedhomeip Test Event 5 and Test Event 7, both fail.
Replies
0
Boosts
0
Views
1.3k
Activity
Nov ’21
iOS 15.1 Beta Crash - HMCHIPServiceHome
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.
Replies
1
Boosts
0
Views
1.2k
Activity
Nov ’21
For the Matter Preview Support only the M5Stack is supported? no other ESP32's?
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.
Replies
0
Boosts
0
Views
1.2k
Activity
Oct ’21
What is the NSExtensionPointIdentifier for the HomeKit Matter extension?
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!
Replies
1
Boosts
0
Views
1.4k
Activity
Aug ’21
Doesn't work the Conntected Home Over IP Support class
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?
Replies
3
Boosts
0
Views
1.5k
Activity
Aug ’21