Skip to content

Make it possible to set Characteristic.SerialNumber via config.json #3761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 18, 2025

Conversation

Vvorcun
Copy link
Contributor

@Vvorcun Vvorcun commented Jan 4, 2025

♻️ Current situation

Right now Characteristic.SerialNumber for the bridge is only set to bridgeConfig.username, which may be good for functionality, but not so good for cosmetic purposes - when running on devices like Raspberry Pi it would be really cool to be able to set this to the real serial number.

💡 Proposed solution

As said in title - make it possible to set Characteristic.SerialNumber via config.json. Proposed solution (sounds really pretentious for two strings of code) preserves current behaviour, meaning if no bridgeConfig.serialNumber is present it still defaults to bridgeConfig.username.

@github-actions github-actions bot added the latest label Jan 4, 2025
@donavanbecker donavanbecker changed the base branch from latest to beta-1.9.0 January 18, 2025 15:04
donavanbecker
donavanbecker previously approved these changes Jan 18, 2025
@donavanbecker donavanbecker enabled auto-merge (squash) January 18, 2025 15:04
@github-actions github-actions bot added the beta label Jan 18, 2025
@donavanbecker donavanbecker merged commit ee9be6c into homebridge:beta-1.9.0 Jan 18, 2025
9 checks passed
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12845237236

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.05%) to 28.415%

Totals Coverage Status
Change from base Build 12845178257: 0.05%
Covered Lines: 431
Relevant Lines: 1374

💛 - Coveralls

donavanbecker pushed a commit that referenced this pull request Feb 11, 2025
- Added method updateDisplayName() (#3764) (@justjam2013)
- Fixed method handleUpdatePlatformAccessories() (#3765) (@justjam2013)
- Make it possible to set Characteristic.SerialNumber via config.json (#3761) (@Vvorcun)
- minor dependency updates
- fix: check for valid array in `handleUpdatePlatformAccessories`
- minor dependency updates

- `hap-nodejs` @ `v0.12.3`
bwp91 added a commit that referenced this pull request Feb 11, 2025
- Added method updateDisplayName() (#3764) (@justjam2013)
- Fixed method handleUpdatePlatformAccessories() (#3765) (@justjam2013)
- Make it possible to set Characteristic.SerialNumber via config.json (#3761) (@Vvorcun)
- minor dependency updates
- fix: check for valid array in `handleUpdatePlatformAccessories`
- minor dependency updates

- `hap-nodejs` @ `v0.12.3`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy