diff --git a/src/index.js b/src/index.js index f3e6c35..d15bbb9 100644 --- a/src/index.js +++ b/src/index.js @@ -597,8 +597,11 @@ SecuritySystem.prototype.getServices = function () { }; SecuritySystem.prototype.load = async function () { + const serialNumber = options.serialNumber; + const fileName = `homebridge-securitysystem-${serialNumber}`; + const storageOptions = { - dir: path.join(storagePath, "homebridge-securitysystem"), + dir: path.join(storagePath, fileName), }; await storage