Comments (6)
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:
- HomeKit seems to require that Accessory "display name" is unique inside a home
- 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.
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.
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.
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.
that sounds good.
from homebridge.
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)
- Device falls out of sync with HomeKit - multiple plugins HOT 3
- PETLIBRO Support HOT 1
- Homebridge v1.8.0 fails to install because of unknown git error HOT 4
- Cannot install the hb-service on OSX with M2 chipset HOT 6
- Update to Homebridge 1.8.0 from 1.7.0 fails HOT 6
- Upgrade to 1.8.0 fails HOT 3
- v1.8.0 leads to error when starting homebridge in development environment HOT 7
- Can't get the latest homebridge on vm hyper-v according to guide with node.js update necessary and not working as instructed and more HOT 2
- Homebridge rebooting every 15 minutes approximately - SIGTERM HOT 2
- GLIBC_2.29' not found HOT 2
- Getting target temperatures (setpoints) in Fahrenheit? HOT 3
- Installing Homebridge Mac OS
- Homebridge hangs and stops responding to HomeKit inputs HOT 3
- How to schedule a child bridge restart - raspberry pi - config UI
- Homebridge Process Ended. Code: 1, Signal: null HOT 1
- Multiple HomeBridge instance (in multiple location) issue HOT 2
- Question about how does volume control of TV remote work?
- NAS native package vs docker advantage (Avahi via dbus)?
- Error: send EAFNOSUPPORT 224.0.0.251:5353 HOT 6
- Homebridge not starting after update - cachedAccessories HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge.