matter.js
matter.js copied to clipboard
How can I change the Display Name?
Hello,
I wanted to change the discovery name from "Matter Accessory" to the custom name, so I changed the nodeLable in Device.ts file: https://github.com/project-chip/matter.js/blob/3b34f9419087ef4f1c9740fd83153e11d6a7a222/packages/matter-node.js/src/Device.ts#L114
However when I try to add it in the Apple Homekit it shows as "Matter Accessory" instead of the given name.
Thats a good question ... From my experience each platform ignores the names we send ... in iOS you always get "Matter Accessory", in Alexa it is always "First Light" (kind of) ... and such ... We could try to play around with a Fixed label CLuster and such ... but I did not had time till now for such deep looks and tries
Fixed label cluster, are you refering to Basic Information Cluster?
I've also noted that setting the device type also have no effect in Homekit. I.E, it always shows the Home Icon instead of the specified device type icon in the discovery.
Have you played around with this earlier?
Fixed label cluster, are you refering to Basic Information Cluster?
No, there are "LabelClusters" ... but I also have no idea what is used maybe from that.
Icon:
Same, no idea why they do what they do (meaning the controllers) :-(
It is all the begin of a journey and with near to no real devices out there it is always hard - also for them
With the real devices, the behaviour is same as well. I've working with esp-matter.
Since the eco-system providers mention, they implemented the Matter 1.0 spec, I believe this labels are included.
Device names display correctly with a certified Matter over WIFI device or a Hue Bridge. Did you genarate Factory Data ?
Did you read that tutorial?
3.2.2.2 Generating Factory Partition Binary Files
Generate factory partition binary files
./mfg_tool.py -n <count> -cn Espressif --paa -c /path/to/PAA_certificate -k /path/to/PAA_key \
-cd /path/to/CD_file -v 0x131B --vendor_name Espressif -p 0x1234 \
--product-name Test-light --hw-ver 1 --hw-ver-str v1.0
because we do not use ESP32 stuff we generate all these details ... yes. So the question is if they are correctly used for other "uncertified devices"?
I think you should ask the question here in the connectedhomeip repo: https://github.com/project-chip/connectedhomeip/issues
Fixed label cluster, are you refering to Basic Information Cluster?
No, there are "LabelClusters" ... but I also have no idea what is used maybe from that.
Icon:
Same, no idea why they do what they do (meaning the controllers) :-(
It is all the begin of a journey and with near to no real devices out there it is always hard - also for them
You should have a look a this PR about User Label Cluster: [GH_PR] Added User Label Cluster to generic_switch example.
This example creates a Generic Switch device using the ESP
Matter data model.
This example aims to demonstrate the use of Fixed Label Cluster and User Label Cluster which provide a feature for the device to tag an endpoint with zero or more read-only labels using nvs api and zero or more labels respectively.
Note:
In order to retrieve the label-list from the fixed-label cluster the two options:
``CONFIG_ENABLE_ESP32_FACTORY_DATA_PROVIDER`` and ``CONFIG_ENABLE_ESP32_DEVICE_INFO_PROVIDER`` have been set through sdkcofig.defaults.
And this issue: generic switch example should also include user_label (CON-391)
This is a test for that in the CHIP Test Suites: Basic Information Cluster Tests