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.

Centralized custom Service/Characteristic repository

See original GitHub issue

An idea, not sure how best it fits.

When I wrote the homebridge-yamaha platform, I created a custom AudioDeviceService and two custom Characteristics AudioVolume and Muting. Obviously these have application outside of only the Yamaha AVR integration. I thought it would be valuable to consider somehow collecting generally applicable custom Characteristics and making them available on a similar footing as the Apple-standard ones included in HAP-NodeJS. Also in this category are the Eve power usage characteristics, which are apparently being used in the FHEM Homebridge plugin and I want to add them to the Z-Way plugin as well. It seems sensible to attempt to apply DRY and find somewhere to define these reusable characteristics in one place.

By collecting and promoting the use of shared, commonly used Characteristics, we could possibly even set de facto standards that app developers could incorporate–or I suppose even Apple (even if they wouldn’t adopt the UUIDs, the taxonomies of custom Services and Characteristics could provide inspiration–I’d settle for being “Sherlocked”).

Unsure how best to implement this, especially since I’m not sure what HomeKitTypes.js is generated from. A separate GitHub project/repo for this might well make sense, but some hooks would be needed at Hap-NodeJS or Homebridge. It seemed like HAP-NodeJS might be the better place to connect, but whichever is fine with me.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
SphtKrcommented, Apr 24, 2016

Of note, here’s some more use cases: https://github.com/SphtKr/homebridge-itunes/blob/master/HomeKitMediaTypes.js . I’ll be building out the taxonomy for media device controls more and would welcome feedback/suggestions.

2reactions
inatorcommented, Jul 4, 2016

Hello all -

I think this issue warrants reopening, as there’s a ton of merit in setting up a way to share and use custom homekit types across apps. The simplest approach to me is via separate node module with various type categories as individual methods that can be loaded as required.

I’ll work something up as a proof of concept and share here for comment/participation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Central Repository - an overview | ScienceDirect Topics
A fully centralised function means that all requests will come into a central repository and be dealt with by a dedicated team of...
Read more >
Benefits of a Centralized Repository System in the CLM ...
A huge benefit of the centralized repository function is that it offers a complete picture of a contract at a glance. All crucial...
Read more >
Centralize Product Information Dispersed in Many Sources
Centralizing information gives product marketing teams ultimate control and allows them to work with clear and organized workflows.
Read more >
How to Build Successful Customer Service for a Small Business
A centralized repository of easy-to-digest knowledge articles that empowers your service agents to resolve customers' issues much faster.
Read more >
Centralized repository features - Modeliosoft
Ensure enterprise and project continuity through a unique centralized and consistent modeling repository. · Centralized database · Coverage of broad modeling ...
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