homebridge-gpio-wpi2
homebridge-gpio-wpi2 copied to clipboard
Accessory duplicated
trafficstars
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.

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.