Closed nwpr closed 3 years ago
Hi, I have the same problem, any idea how to fix it? Thanks!
Hi, I have also the same issue it seems.
Hope s.o. can help :)
Hi All,
UUID is generated from the accessory name and type, therefore if you have the same "name" and "type" for two items, there will be a conflict.
I haven't checked you configure, but is that the case? If yes, please rename the item in the homebridge config, you can rename the Item later in the Home.app (and only there), when adding the Item.
I have checked but cannot see any conflicts. To be sure here is my config (not so big luckily): { "platform": "openHAB2-Complete", "name": "openHAB2-Complete", "host": "http://192.168.x.x", "port": "8080", "accessories": [ { "type": "thermostat", "items": [ { "name": "Heizung Büro", "currentTempItem": "Buero_HK_1_ActTemp", "targetTempItem": "Buero_HK_1_SetTemp", "item": "Buero_HK_1_HeatOnOff", "heatingItem": "Buero_HK_1_HeatOnOff", "inverted": "false", "modeItem": "Buero_HK_1_HomeKitMode", "modeItemCharacteristic": "Heating", "minTemp": "10", "maxTemp": "30", "minTempStep": "0.1" } ] }, { "type": "temp", "items": [ { "name": "Temperatur Wohnzimmer", "currentTempItem": "WZ_TH_1_Temp" }, { "name": "Temperatur Waschküche", "currentTempItem": "WK_TH_1_Temp" }, { "name": "Temperatur Kinderzimmer Sensor", "currentTempItem": "Kinder1_TH_1_Temp" }, { "name": "Temperatur Schlafzimmer Sensor", "currentTempItem": "SZ_TH_1_Temp" }, { "name": "Temperatur Eingang", "currentTempItem": "EG_TH_1_Temp" } ] }, { "type": "humidity", "items": [ { "name": "Luftfeuchtigkeit Wohnzimmer", "item": "WZ_TH_1_Hum" }, { "name": "Luftfeuchtigkeit Waschküche", "item": "WK_TH_1_Hum" }, { "name": "Luftfeuchtigkeit Kinderzimmer", "item": "Kinder1_TH_1_Hum" }, { "name": "Luftfeuchtigkeit Schlafzimmer", "item": "SZ_TH_1_Hum" }, { "name": "Luftfeuchtigkeit Eingang", "item": "EG_TH_1_Hum" } ] }, { "type": "fan", "items": [ { "name": "Lüftung Keller", "item": "WK_Dim_1_State" } ] } ] }
Log file:
[5/30/2021, 6:53:01 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[5/30/2021, 6:53:06 PM] [HB Supervisor] Restarting Homebridge...
[5/30/2021, 6:53:06 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /homebridge/node_modules
[5/30/2021, 6:53:06 PM] [HB Supervisor] Started Homebridge v1.3.4 with PID: 44184
Initializing HAP-NodeJS v0.9.4...
[5/30/2021, 6:53:06 PM] Loaded config.json with 0 accessories and 2 platforms.
[5/30/2021, 6:53:06 PM] Loaded 0 cached accessories from cachedAccessories.
[5/30/2021, 6:53:06 PM] ---
[5/30/2021, 6:53:06 PM] Loaded plugin: homebridge-dummy@0.5.0
[5/30/2021, 6:53:06 PM] Registering accessory 'homebridge-dummy.DummySwitch'
[5/30/2021, 6:53:06 PM] ---
[5/30/2021, 6:53:07 PM] Loaded plugin: homebridge-openhab2-complete@1.2.0
[5/30/2021, 6:53:07 PM] Registering platform 'homebridge-openhab2-complete.openHAB2-Complete'
[5/30/2021, 6:53:07 PM] ---
[5/30/2021, 6:53:07 PM] Loaded plugin: homebridge-config-ui-x@4.41.1
[5/30/2021, 6:53:07 PM] Registering platform 'homebridge-config-ui-x.config'
[5/30/2021, 6:53:07 PM] ---
[5/30/2021, 6:53:07 PM] Loading 2 platforms...
[5/30/2021, 6:53:07 PM] [Config] Initializing config platform...
[5/30/2021, 6:53:07 PM] [Config] Running in Service Mode
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Initializing openHAB2-Complete platform...
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading accessory types...
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type airpurifier
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type air
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type co2
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type co
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type contact
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type door
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type fan
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type faucet
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type filter
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type garage
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type heatercooler
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type humidifier
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type humidity
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type irrigation
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type leak
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type light
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type lux
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type lock
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type microphone
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type motion
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type occupancy
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type outlet
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type security
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type slat
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type smoke
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type speaker
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type switch
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type television
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type temp
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type thermostat
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type valve
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type window
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Loading and activating accessory type windowcovering
[5/30/2021, 6:53:07 PM] [openHAB2-Complete] Waiting for openHAB host (http://192.168.0.66) to come online...
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] openHAB host (http://192.168.0.66) is online, now syncing...
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Syncing all items & types from openHAB
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] 'OpenHAB2 - Complete Edition' plugin loaded - Version 1.2.0 - dev
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] ---
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Loading accessories from configuration, this might take a while...
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Added accessory Heizung Büro (Type: thermostat)
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Added accessory Temperatur Wohnzimmer (Type: temp)
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Added accessory Temperatur Waschküche (Type: temp)
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Added accessory Temperatur Kinderzimmer Sensor (Type: temp)
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Added accessory Temperatur Schlafzimmer Sensor (Type: temp)
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Added accessory Temperatur Eingang (Type: temp)
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Added accessory Luftfeuchtigkeit Wohnzimmer (Type: humidity)
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Added accessory Luftfeuchtigkeit Waschküche (Type: humidity)
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Added accessory Luftfeuchtigkeit Kinderzimmer (Type: humidity)
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Added accessory Luftfeuchtigkeit Schlafzimmer (Type: humidity)
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Added accessory Luftfeuchtigkeit Eingang (Type: humidity)
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Added accessory Lüftung Keller (Type: fan)
[5/30/2021, 6:53:19 PM] [openHAB2-Complete] Syncing all item values from openHAB
[5/30/2021, 6:53:19 PM] AssertionError [ERR_ASSERTION]: UUID '9A24F51BC3177EF31ABE2' is not a valid UUID. Try using the provided 'generateUUID' function to create a valid UUID from any arbitrary string, like a serial number.
at new Accessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:402:11)
at new PlatformAccessory (/usr/local/lib/node_modules/homebridge/src/platformAccessory.ts:70:9)
at ThermostatAccessory.getAccessory (/homebridge/node_modules/homebridge-openhab2-complete/util/Accessory.js:153:25)
at OpenHABComplete.accessories (/homebridge/node_modules/homebridge-openhab2-complete/index.js:107:98)
at /usr/local/lib/node_modules/homebridge/src/bridgeService.ts:529:24
at new Promise (
I forgot to mention: With version 1.1.0 (released) everything works. Since I wanted to use the new Thermostat features (modeItemCharacteristic) I pulled today from master (commit d0081eb4171e38b7c45452eb1ecfe22d1b7608db), that was when the issue popped up.
I reduced the above config to just one accessory, the thermostat. Unfortunately the issue persists. I also removed the umlaut from the name, just in case, but that did not help either.
I poked around a bit and replaced the regex in SerialNuberGenerator.js so it will output a UUID syntax. It did not help much, as I ran into the next error:
/30/2021, 10:22:41 PM] TypeError: service.on is not a function
at Accessory.setupServiceEventHandlers (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1896:13)
at Accessory.addService (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:472:10)
at PlatformAccessory.addService (/usr/local/lib/node_modules/homebridge/src/platformAccessory.ts:93:41)
at ThermostatAccessory.getAccessory (/homebridge/node_modules/homebridge-openhab2-complete/util/Accessory.js:154:19)
at OpenHABComplete.accessories (/homebridge/node_modules/homebridge-openhab2-complete/index.js:107:98)
at /usr/local/lib/node_modules/homebridge/src/bridgeService.ts:529:24
at new Promise (<anonymous>)
at BridgeService.loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/src/bridgeService.ts:523:12)
at /usr/local/lib/node_modules/homebridge/src/server.ts:445:42
at Array.forEach (<anonymous>)
Was there a breaking change in Homebridge maybe?
Fixed with 1.3.0
Describe the bug Homebridge crashes with the error message:
AssertionError [ERR_ASSERTION]: UUID '4B300DE544FEA451B3650' is not a valid UUID. Try using the provided 'generateUUID' function to create a valid UUID from any arbitrary string, like a serial number.
Expected behavior Homebridge doesn't crash.
Logs:
Environment (please complete the following information):
Additional context Seems to be related to commit 3fe37367e05b095bb4ff1cc89eeb25bd4985b77d / 098d916bcd835e5f8505e5efc2e4eaac222195e9, as it worked before. (?)