Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

excludedDevices don't Work #182

Closed
TheReiner opened this issue Oct 2, 2019 · 19 comments
Closed

excludedDevices don't Work #182

TheReiner opened this issue Oct 2, 2019 · 19 comments

Comments

@TheReiner
Copy link

TheReiner commented Oct 2, 2019

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

I think the problem is only for "Not Supported" device...

Thanks :)

@JHurk
Copy link

JHurk commented Feb 8, 2020

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:
Schermafbeelding 2020-02-08 om 16 17 09
Schermafbeelding 2020-02-08 om 16 17 48 1
Schermafbeelding 2020-02-08 om 16 18 40

@PatchworkBoy
Copy link
Owner

rm -rf .homebridge/accessories/cachedAccessories, update to v2.1.27 & restart

@JHurk
Copy link

JHurk commented Feb 8, 2020

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.

@JHurk
Copy link

JHurk commented Feb 8, 2020

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.

@JHurk
Copy link

JHurk commented Feb 8, 2020

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.

@PatchworkBoy
Copy link
Owner

PatchworkBoy commented Feb 8, 2020 via email

@JHurk
Copy link

JHurk commented Feb 9, 2020

Correct I am using that plugin.
I have three plugins installed and am running Homebridge in Docker on a Synology.

32817959-48FB-4FEF-B9A6-E9B1A5D38927

@PatchworkBoy PatchworkBoy reopened this Feb 9, 2020
PatchworkBoy added a commit that referenced this issue Feb 9, 2020
PatchworkBoy added a commit that referenced this issue Feb 9, 2020
PatchworkBoy added a commit that referenced this issue Feb 9, 2020
PatchworkBoy added a commit that referenced this issue Feb 9, 2020
@PatchworkBoy
Copy link
Owner

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.

@JHurk
Copy link

JHurk commented Feb 9, 2020

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

@JHurk
Copy link

JHurk commented Feb 9, 2020

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)
Schermafbeelding 2020-02-09 om 15 37 21

And this are the accessories which are in Homebridge/Homekit after the update and adding 34 to the excluded devices:
Schermafbeelding 2020-02-09 om 15 37 54

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

@PatchworkBoy
Copy link
Owner

You can’t dynamically update the excludedDevices array and restart. You need to remove cachedAccessories whenever you change the excludedDevices array, THEN restart.

@JHurk
Copy link

JHurk commented Feb 9, 2020

Just to make sure we are on the same page:

  1. I add a device to the excluded devices and save the plugin settings
  2. I stop Homebridge in Docker
  3. I delete the CachedAccessories file
  4. I start Homebridge in Docker

Is this correct? Or do I need to change this order?

@PatchworkBoy
Copy link
Owner

PatchworkBoy commented Feb 9, 2020

Bear with - am just pushing 2.1.31... (found a scope issue for a variable)

@PatchworkBoy PatchworkBoy reopened this Feb 9, 2020
@PatchworkBoy
Copy link
Owner

  1. Update excludedDevices via config-ui-x or manually in config.json
  2. Remove cachedAccessories
  3. Restart or stop/start homebridge

Grab 2.1.31 n’ give it a try now.

@JHurk
Copy link

JHurk commented Feb 9, 2020

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!

PatchworkBoy added a commit that referenced this issue Feb 9, 2020
…Accessories after changing excludedDevices array. Just update the array and restart homebridge.
@PatchworkBoy
Copy link
Owner

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.

@JHurk
Copy link

JHurk commented Feb 10, 2020

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.

@PatchworkBoy
Copy link
Owner

PatchworkBoy commented Feb 10, 2020 via email

@JHurk
Copy link

JHurk commented Feb 10, 2020

Thanks again, also for the explanation about the rooms!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants