Closed TheReiner closed 4 years ago
Same problem here, was keeping an eye out on this post, but nothing changed and nobody replied. So hoping to get an update about this.
Screenshots of my configuration:
rm -rf .homebridge/accessories/cachedAccessories, update to v2.1.27 & restart
Did this, but now things get even more complex. I deleted the files in the accessories folder (and the persist folder) and updated to v2.1.28 and restarted Homebridge. Now only 4 accessories are shown, I am missing a lot which are not in the excluded section. ANd my log is 'going crazy':
[2/8/2020, 5:27:33 PM] Homebridge is running on port 51826. [2/8/2020, 5:27:33 PM] [eDomoticz] Device: Achterdeur (38) [2/8/2020, 5:27:33 PM] [eDomoticz] GamehoekPlug (Power) [2/8/2020, 5:27:33 PM] [eDomoticz] Device: GamehoekPlug (Power) (73) [2/8/2020, 5:27:33 PM] [eDomoticz] Device: Garagedeur opener (49) [2/8/2020, 5:27:33 PM] [eDomoticz] Device: Garagedeur status (51) [2/8/2020, 5:27:33 PM] [eDomoticz] Gas(idx:8) excluded via config array [2/8/2020, 5:27:33 PM] [eDomoticz] Gas per graaddag(idx:58) excluded via config array [2/8/2020, 5:27:33 PM] [eDomoticz] Gemiddelde Temp buiten(idx:57) excluded via config array [2/8/2020, 5:27:33 PM] [eDomoticz] Hondenhok [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Nefit Thermostaat [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Nefit Trendline CV(idx:27) excluded via config array [2/8/2020, 5:27:33 PM] [eDomoticz] Nefit Trendline CV Water(idx:25) excluded via config array [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] PowerMeterPlug (Power) [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Sonoff RF Bridge 433(idx:52) excluded via config array [2/8/2020, 5:27:33 PM] [eDomoticz] Stroom(idx:1) excluded via config array [2/8/2020, 5:27:33 PM] [eDomoticz] Temperatuur buiten [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Verlengkabel Temp [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Weerstation Udenhout(idx:16) excluded via config array [2/8/2020, 5:27:33 PM] [eDomoticz] Werkelijk verbruik(idx:12) excluded via config array [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Could not register platform accessory! (Garagedeur status) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 94228cda-10ab-47a0-ab96-fcd73cd7f5b4 [2/8/2020, 5:27:33 PM] [eDomoticz] Zonnepanelen(idx:11) excluded via config array (node:381) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 service-configurationChange listeners added to [Service]. Use emitter.setMaxListeners() to increase limit (node:381) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 characteristic-change listeners added to [Service]. Use emitter.setMaxListeners() to increase limit (node:381) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 service-configurationChange listeners added to [Service]. Use emitter.setMaxListeners() to increase limit (node:381) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 characteristic-change listeners added to [Service]. Use emitter.setMaxListeners() to increase limit (node:381) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 set listeners added to [Characteristic]. Use emitter.setMaxListeners() to increase limit [2/8/2020, 5:27:33 PM] [eDomoticz] Successfully connected to MQTT broker.
I deleted the input of the excluded devices in the config (so everything is included again) and stopped Homebridge, deleted the folder contents of accessories and persist, restarted Homebridge and now everything is there again. I will try if excluding a device will work, but first I have to re-pair Homebridge with Homekit again so adding and configuring all devices.
As soon as I add an IDX to the excluded devices I need to restart Homebridge. Upon restarting a lot of devices are gone (I only added 1 device to be excluded), so things are definitely not working as expected, sorry.
Odd... not seeing that behaviour at all here. Also, no need to delete persist, just accessories/cachedAccessories file and restart.
Will investigate tomorrow. Are you using config-UI-x, or manually making changes in config.json?
Correct I am using that plugin. I have three plugins installed and am running Homebridge in Docker on a Synology.
Have just pushed 2.1.29 to npmjs.
Remove cachedAccessories (usually rm -rf ~/.homebridge/accessories/cachedAccessories
on a vanilla Pi install - no idea for config-ui-x / synology installations), leave your persist folder alone (if you delete persist, you have to re-pair and re-configure everything - clients, devices, rooms, automations etc; if you delete cachedAccessories, homebridge just resyncs your accessories on next restart), update and restart. Let me know.
Deleted the CachedAccessories (via Docker - File Station in Synology) Updated the plugin Restarted Homebridge
The plugin worked and everything seems fine, all 18 devices are visible on my iPhone. After that I added a IDX (34) to the excluded devices, saved and restarted Homebridge. After that I only have 14 devices left instead of 17 (18 - 1 that I excluded), so I am missing 3 devices. This is my log: [2/9/2020, 3:28:26 PM] Homebridge is running on port 51826. [2/9/2020, 3:28:26 PM] [eDomoticz] Hondenhok [2/9/2020, 3:28:26 PM] [eDomoticz] Temperatuur buiten [2/9/2020, 3:28:26 PM] [eDomoticz] Verlengkabel Temp (idx:34) excluded via config array [2/9/2020, 3:28:27 PM] [eDomoticz] Successfully connected to MQTT broker. [2/9/2020, 3:28:29 PM] [Config] Starting terminal session
Edit: and the IDX I excluded (34) is still in the Accessories and in Home-app on my iPhone
And I looks like something is going wrong with the excluded device. I made a room with all the devices I want exposed in Homekit, these are all the devices (18 in total)
And this are the accessories which are in Homebridge/Homekit after the update and adding 34 to the excluded devices:
As you can see the entire list of devices is the same order in the room in Domoticz as in the Accessories in Homebridge. But it stops after the excluded device (verlengkabel temp), and only adds one device after that. Maybe this info helps?
Edit; after deleting the entry in excluded devices and restarting (and deleting the cachedaccessories) all devices are visible again in both Homebridge and iPhone
You can’t dynamically update the excludedDevices array and restart. You need to remove cachedAccessories whenever you change the excludedDevices array, THEN restart.
Just to make sure we are on the same page:
Is this correct? Or do I need to change this order?
Bear with - am just pushing 2.1.31... (found a scope issue for a variable)
Grab 2.1.31 n’ give it a try now.
Seems to be working now, all devices (except the one I excluded) are visible. Thanks for your help and the effort you put in maintaining the plugin!
Have just pushed 2.1.32, which should fix purging cachedAccessories when excludedDevices is changed, so no need to remove cachedAccessories manually. Just update excludedDevices array via whichever method, then restart homebridge.
Just tested this and it works great!! Would be nice if you exclude an existing device (e.g. christmas lights), and include it again (e.g. around november when christmas lights come off the attic), the room and settings of the device are preserved in Homekit. But I guess this is a Homekit/Homebridge thing, and not Domoticz/Edomoticz? Once again, thanks for fixing the excluded devices.
Correct - not doable.
Rooms etc are stored in iCloud via HomeKit. Neither Homebridge nor eDomoticz can access this, only a HomeKit client app.
Thanks again, also for the explanation about the rooms!
This is my configuration. "excludedDevices": ["1","2","4","5","6","7","8","9","27","85","116","119","120","122"]
And my screenshot. (I have deleted cachedAccessories before)![Screenshot 2019-10-02 at 05 35 05](https://user-images.githubusercontent.com/18024918/66016312-66c79180-e4d6-11e9-87c8-cb4e089d0aed.png)
I think the problem is only for "Not Supported" device...
Thanks :)