PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 43 forks source link

UUID error on restart #242

Closed GravityRZ closed 2 years ago

GravityRZ commented 2 years ago

This is an error which has been there for a long time after restart homebridge complains that it can not add a device wih the same UUID somehow it thinks an already added device is a new device

Analysis Homebridge v1.3.8 Edomoticz plugin 2.1.38 Homebridge UI v4.41.4

everytime i restart homebridge it generated an error. it seems to think it has a new device but in fact it is an alleady configured devices thus giving an error that it can not configure. the only way to get rid of it is to stop the container, remove the cached accesories file and start the container

[12/14/2021, 10:22:23 PM] Homebridge v1.3.8 (HAP v0.9.7) (Homebridge) is running on port 51826. [12/14/2021, 10:22:24 PM] [eDomoticz] Device: Woonkamertemp (332) [12/14/2021, 10:22:24 PM] [eDomoticz] Could not register platform accessory! (Woonkamertemp) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: d4d6b916-dcde-4f2d-87c2-cf937e5f2036

image

Expected Behavior no errors on reboot there are no new devices so old devices should not be recognised as new

Steps To Reproduce reboot the homebridge docker container

Logs [12/14/2021, 10:20:48 PM] Homebridge v1.3.8 (HAP v0.9.7) (Homebridge) is running on port 51826. [12/14/2021, 10:20:48 PM] [eDomoticz] Successfully connected to MQTT broker. [12/14/2021, 10:21:05 PM] [Homebridge UI] [admin] Accessory layout changes saved. [12/14/2021, 10:22:11 PM] [Homebridge UI] Homebridge restart request received [12/14/2021, 10:22:11 PM] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process [12/14/2021, 10:22:11 PM] [Homebridge UI] Sending SIGTERM to Homebridge [12/14/2021, 10:22:11 PM] Got SIGTERM, shutting down Homebridge... [12/14/2021, 10:22:16 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [12/14/2021, 10:22:21 PM] [HB Supervisor] Restarting Homebridge... [12/14/2021, 10:22:21 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /homebridge/node_modules [12/14/2021, 10:22:21 PM] [HB Supervisor] Started Homebridge v1.3.8 with PID: 1511 [12/14/2021, 10:22:22 PM] Loaded config.json with 0 accessories and 2 platforms. [12/14/2021, 10:22:22 PM] Loaded 13 cached accessories from cachedAccessories. [12/14/2021, 10:22:22 PM] --- [12/14/2021, 10:22:23 PM] Loaded plugin: homebridge-dummy@0.5.0 [12/14/2021, 10:22:23 PM] Registering accessory 'homebridge-dummy.DummySwitch' [12/14/2021, 10:22:23 PM] --- [12/14/2021, 10:22:23 PM] Loaded plugin: homebridge-edomoticz@2.1.38 [12/14/2021, 10:22:23 PM] Registering platform 'homebridge-edomoticz.eDomoticz' [12/14/2021, 10:22:23 PM] --- [12/14/2021, 10:22:23 PM] Loaded plugin: homebridge-config-ui-x@4.41.4 [12/14/2021, 10:22:23 PM] Registering platform 'homebridge-config-ui-x.config' [12/14/2021, 10:22:23 PM] --- [12/14/2021, 10:22:23 PM] Loading 2 platforms... [12/14/2021, 10:22:23 PM] [eDomoticz] Initializing eDomoticz platform... [12/14/2021, 10:22:23 PM] [Config] Initializing config platform... [12/14/2021, 10:22:23 PM] [Config] Running in Service Mode [12/14/2021, 10:22:23 PM] [eDomoticz] Could not unregister cached platform accessory! Error: Cannot find the bridged Accessory to remove. [12/14/2021, 10:22:23 PM] [eDomoticz] synchronizeAccessories in progress... Setup Payload: X-HM://xxxxxxxxxxP Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ xxxxxxxxxx │     
└────────────┘     

[12/14/2021, 10:22:23 PM] Homebridge v1.3.8 (HAP v0.9.7) (Homebridge) is running on port 51826. [12/14/2021, 10:22:24 PM] [eDomoticz] Device: Woonkamertemp (332) [12/14/2021, 10:22:24 PM] [eDomoticz] Could not register platform accessory! (Woonkamertemp) Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: d4d6b916-dcde-4f2d-87c2-cf937e5f2036 [12/14/2021, 10:22:24 PM] [eDomoticz] Successfully connected to MQTT broker.

GravityRZ commented 2 years ago

i installed another plugin and now the error does not appear anymore when rebooting

go figure