Giter Club home page Giter Club logo

Comments (6)

nfarina avatar nfarina commented on June 8, 2024

So this question is very relevant to #58 - it would be great if we had something like username for every accessory that remained stable so that we can associate HomeKit "IDs" with it.

Currently I was planning on just using he "display name" (or "user visible name" as you suggest) instead of username, for the following reasons:

  1. HomeKit seems to require that Accessory "display name" is unique inside a home
  2. I'm having difficulty imagining developers of HomeBridge plugins being able to create and maintain a consistent "other string" that remains unique across user visible name change.

from homebridge.

justme-1968 avatar justme-1968 commented on June 8, 2024

for the FHEM platform shim that i'm currently working on i have access to the device internals and most of the devices do have some sort of physical serial number or id. this is true for homematic (thermostats,blinds,switches,contact sensors), MAX, HUE and SONOS devices and some more, for FS20 and intertechno the device rf address can be used in combination with the device type for PRESENCE devices mac adresses can be used. for other devices i will create a unchanging address on device creation in FHEM that will remain constant across renames and restarts.

the current HUE shim should be able to do the same.

#58 will be very welcome for the FHEM shim. if i export all devices in my installation the current way of doing this runs out of port numbers :)

from homebridge.

justme-1968 avatar justme-1968 commented on June 8, 2024

ps: you can find the current version of the FHEM shim here: https://github.com/justme-1968/homebridge/blob/master/platforms/FHEM.js

all devices mentioned above do already work.

i will do some more cleanups and then it would be good to merge it to your repository.

from homebridge.

nfarina avatar nfarina commented on June 8, 2024

Excellent points, and very good to know. I'm currently going the direction of requiring a globally-unique UUID for every Accessory - which can be deterministically generated based on an arbitrary string if needed (like serial number as you mention).

from homebridge.

justme-1968 avatar justme-1968 commented on June 8, 2024

that sounds good.

from homebridge.

nfarina avatar nfarina commented on June 8, 2024

Closing this as we now only have one single username associated with the Bridge; Accessories don't need to generate their own anymore.

from homebridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.