Display names automatically modified
See original GitHub issueWhen publishing an accessory, the original display name is extended by a four-letter hash, which happens in the publish
method in Accessory.ts
:
// adding some identifying material to our displayName
this.displayName = this.displayName + " " + crypto.createHash('sha512')
.update(info.username, 'utf8')
.digest('hex').slice(0, 4).toUpperCase();
this.getService(Service.AccessoryInformation)!.updateCharacteristic(Characteristic.Name, this.displayName);
This seems to be the intended behaviour. However, I cannot find any information about why the hash is added. I checked the HAP Specification (non-commercial version) but I might have missed the corresponding information.
My questions to you:
- Why is the hash automatically added to the display name?
- Is there a formal requirement to automatically add the hash?
- Is there a way to stop this behaviour? That is, to publish exactly the display name I have chosen? Any ideas are welcome.
Thank you very much for your appreciated replies!
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Change display names of AD users - Windows Server
This article describes how to change display names of Active Directory (AD) users. Applies to: Windows 10 - all editions, Windows Server ...
Read more >Why does my display name keep changing on its own??
Click the gear icon and choose Settings · Click the Accounts tab · Look for Send Mail As · Alongside your GMail address...
Read more >Change your display name - Slack
Set your display name · From your desktop, click your profile picture in the top right. · Select Profile. This will open your...
Read more >Automatically Change "Modified by" email item into a Name
So the question is: how can we automatically get the name of the person submitting the form without having to ask for it??...
Read more >How do I change my display name? - Support : iRacing
We use real and complete first and last names. · Please note: Once your display name is changed, it cannot be changed back...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That was really quick! Again, both the fact that you reply as well as the fact that you consider this proposal is highly appreciated. By the way: HAP-NodeJS is great! Thanks for your efforts.
Don’t worry, I didn’t want to push you. I just felt showing some activity here to show that I am still interested in a reply and am appreciating it would be nice to see. Take your time, I know what it means to be busy.