NickChristensen / homebridge-unifi-block-clients

Homebridge plugin to control devices on a Unifi network
8 stars 2 forks source link

Homebridge file "accessories/cachedAccessories" need to be deleted sometimes #1

Open g88704 opened 4 years ago

g88704 commented 4 years ago

Hello,

thanks for your great homebridge plugin. One thing I noticed (but maybe it depends on my homebridge docker installation) is the following:

To solve this, i do the following right now:

Is this normal or do I something wrong?

Thanks again and Kind Regards

Michael

NickChristensen commented 4 years ago

Hey Michael, thanks for the details. I'll take a look!

redbug26 commented 4 years ago

Same error :( Message is "Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory"

NickChristensen commented 4 years ago

I haven't taken the time to dig into this, but I'd love a pull request if someone understands how Homebridge accessory caching is supposed to work.

NickChristensen commented 4 years ago

Use https://github.com/homebridge/homebridge-plugin-template/blob/master/src/platform.ts as reference

LEDLondon commented 4 years ago

I get this error, i suspect due to unifi site two step verification as the username is correct: 28/06/2020, 23:28:52 HOOBS listening on port 8080. 28/06/2020, 23:28:54 Loaded plugin "homebridge-unifi-block-clients". 28/06/2020, 23:28:54 [unifiBlockClients] username is required. Check config.json. 28/06/2020, 23:28:54 Error at requiredConfig (/home/hoobs/.hoobs/node_modules/homebridge-unifi-block-clients/dist/index.js:120:13) at new Platform (/home/hoobs/.hoobs/node_modules/homebridge-unifi-block-clients/dist/index.js:124:50) at Server.loadPlatforms (/usr/local/lib/node_modules/@hoobs/hoobs/bridge/server.js:283:34) at Server.run (/usr/local/lib/node_modules/@hoobs/hoobs/bridge/server.js:86:18) at module.exports (/usr/local/lib/node_modules/@hoobs/hoobs/bridge/cli.js:84:12) at Object. (/usr/local/lib/node_modules/@hoobs/hoobs/bin/hoobs:95:81) at Module._compile (internal/modules/cjs/loader.js:1138:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) at Module.load (internal/modules/cjs/loader.js:986:32) at Function.Module._load (internal/modules/cjs/loader.js:879:14) 28/06/2020, 23:28:54 Got SIGTERM, shutting down Bridge...

rasgeek commented 3 years ago

Hey , it stopes unblocking client how do i fix