question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Display names automatically modified

See original GitHub issue

When 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:

  1. Why is the hash automatically added to the display name?
  2. Is there a formal requirement to automatically add the hash?
  3. 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:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
franz-benjamincommented, Nov 11, 2020

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.

1reaction
franz-benjamincommented, Nov 11, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found