Post

Replies

Boosts

Views

Activity

Reply to MTRAttributeIDType not working
thank you for checking this out. actually this is my bug report also :) in the meantime i have implemented my own version. so i can continue while waiting for an official fix. could you please also have a look here: https://developer.apple.com/forums/thread/757458?answerId=810679022#810679022 i can‘t get subscription to events working. this is the last puzzle piece and stumbling block for my project now that i can read all attributes and write commands with and without parameters for homekit initialized matter devices. or would it be better to open a new post instead of reusing the old one?
Oct ’24
Reply to Support for custom Matter endpoints, clusters and attributes
does anyone know what is supposed to be working for an MTRBaseDevice initialised from homekit? i did some more test... i can use readAttributes and read everything from the device. good. except: i never get data for attribute 0xFFFA which should be the EventList. does this indicate that the MTRBaseDevice initialised from HomeKit is not capable of generating events? all other global attributes 0xFFF8-0xFFFD except 0xFFFA return the expected data. also: when i try to use invokeCommand to initiate an identify or off command. this also does not work and results in Error Domain=MTRErrorDomain Code=4 "An argument is invalid." UserInfo={NSLocalizedDescription=An argument is invalid.}. does this indicate that the MTRBaseDevice initialised from HomeKit is readonly? on the other hand using an MTRBaseClusterOnOff initialised from the same MTRBaseDevice allows me to use toggle without any problems. so it seems not to be readonly...
Oct ’24
Reply to MTRAttributeIDType not working
sorry. yes. i was talking about MTRAttributeNameForID. but with swift. from the documentation here: https://developer.apple.com/documentation/matter/mtrattributenameforid(::) if i read the documentation correctly your example should read MTRAttributeNameForID(MTRClusterIDType.basicInformationID, MTRAttributeIDType.clusterApplicationBasicAttributeVendorNameID which gives <Unknown clusterID 40> for me. and i have the same behaviour for every MTRClusterIDType and MTRAttributeIDType initialised from raw values. on the other hand MTRClusterNameForID with a MTRClusterIDType initialised the same way gives a reasonable result.
Oct ’24