rsg98 / homebridge-gpio-wpi2

Homebridge Raspberry Pi GPIO Platform (API 2) Plugin - using WiringPi as a backend
48 stars 16 forks source link

Accessory duplicated #30

Open kiondi opened 7 years ago

kiondi commented 7 years ago

Hi I did some test, if you rename, in the config.json, an accessory already configured, the accessory is duplicated on homebridge.. How can I do this to avoid this? thank you for your appreciated work. image

rsg98 commented 7 years ago

You will need to remove the accessories/cachedAccessories file to clear out the duplicates (it current keys on the name, so sees a name change as a different accessory). Make sure you stop homebridge before deleting this file, as it gets written when you stop it.

Will fix this in the new version (#29) so that it keys off the pin number instead of the name.