Open
Description
I looked a little and it looks like there is many lines of code which try to load accessories or services from prepared data but it's actually never saved (if I am not wrong...)!!!
node.debug("Looking for accessory with UUID '" + accessoryInformation.UUID + "'...");
for (let i in bridge.bridgedAccessories) {
node.debug("Looking for service with UUID '" + serviceInformation.UUID + "'...");
for (let i in accessory.services) {
There is a ready method to load accessories from directory in HAP-nodejs/AccessoryLoader.js/loadDirectory.
Now have to look if save/load is needed or we should just remove unnecessary code from our plugin which tries to find existing accessories.
Activity