hobbyquaker / homekit2mqtt

HomeKit to MQTT bridge 🏡📱
MIT License
349 stars 70 forks source link

Which arguments need to be stable for consistent accessory IDs? #131

Closed abrownsword closed 6 years ago

abrownsword commented 6 years ago

I am programmatically generating my configuration JSON file, as well as the arguments passed to homekit2mqtt. My accessories appear in Home and I can add them, however if I restart my program and it regenerates the JSON and re-launches homekit2mqtt, then the accessories aren’t found by HomeKit. I assume I am changing something (—name?) that needs to remain the same. The documentation doesn’t say which values are used to create the HAP IDs (or whatever HomeKit uses).

hobbyquaker commented 6 years ago

The Key that defines your Accessory - see Readme:

"TemperatureSensor": {      // Unique name - used to generate the accessory UUID
  ...
}