steilerDev / homebridge-openhab2-complete

A homebridge plugin for openHAB, that has the expectation to fully support all Services offered by Apple's Homekit Accessory Protocol (HAP)
GNU General Public License v3.0
52 stars 16 forks source link

Homebridge crashes: not a valid UUID #88

Closed nwpr closed 3 years ago

nwpr commented 3 years ago

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:

[10/29/2020, 9:34:21 PM] [HB Supervisor] Homebridge Storage Path: /homebridge
[10/29/2020, 9:34:21 PM] [HB Supervisor] Homebridge Config Path: /homebridge/config.json
[10/29/2020, 9:34:21 PM] [HB Supervisor] Logging to /homebridge/homebridge.log
[10/29/2020, 9:34:21 PM] [HB Supervisor] OS: Linux 4.19.150-2.ph3-esx x64
[10/29/2020, 9:34:21 PM] [HB Supervisor] Node.js v14.15.0 /usr/local/bin/node
[10/29/2020, 9:34:21 PM] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge
[10/29/2020, 9:34:21 PM] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[10/29/2020, 9:34:21 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /homebridge/node_modules
[10/29/2020, 9:34:21 PM] [HB Supervisor] Starting Homebridge with custom env: {"DEBUG":"ciao:*"}
[10/29/2020, 9:34:21 PM] [HB Supervisor] Started Homebridge v1.2.3 with PID: 452
[10/29/2020, 9:34:21 PM] Loaded config.json with 0 accessories and 2 platforms.
[10/29/2020, 9:34:21 PM] ---
[10/29/2020, 9:34:22 PM] Loaded plugin: homebridge-dummy@0.4.1
[10/29/2020, 9:34:22 PM] Registering accessory 'homebridge-dummy.DummySwitch'
[10/29/2020, 9:34:22 PM] ---
2020-10-29T20:34:21.653Z ciao:init Loading ciao v1.0.12...
[10/29/2020, 9:34:22 PM] [Homebridge UI] Homebridge Config UI X v4.31.0 is listening on 0.0.0.0 port 8581
[10/29/2020, 9:34:22 PM] Loaded plugin: homebridge-openhab2-complete@1.2.0
[10/29/2020, 9:34:22 PM] Registering platform 'homebridge-openhab2-complete.openHAB2-Complete'
[10/29/2020, 9:34:22 PM] ---
[10/29/2020, 9:34:22 PM] Loaded plugin: homebridge-config-ui-x@4.31.0
[10/29/2020, 9:34:22 PM] Registering platform 'homebridge-config-ui-x.config'
[10/29/2020, 9:34:22 PM] ---
[10/29/2020, 9:34:22 PM] Loading 2 platforms...
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Initializing openHAB2-Complete platform...
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading accessory types...
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type airpurifier
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type air
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type co2
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type co
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type contact
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type door
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type fan
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type faucet
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type filter
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type garage
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type heatercooler
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type humidifier
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type humidity
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type irrigation
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type leak
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type light
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type lux
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type lock
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type microphone
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type motion
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type occupancy
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type outlet
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type security
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type slat
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type smoke
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type speaker
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type switch
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type television
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type temp
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type thermostat
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type valve
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type window
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Loading and activating accessory type windowcovering
[10/29/2020, 9:34:22 PM] [openHAB2-Complete] Waiting for openHAB host (http://10.10.13.1) to come online...
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] openHAB host (http://10.10.13.1) is online, now syncing...
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Syncing all items & types from openHAB
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] 'OpenHAB2 - Complete Edition' plugin loaded - Version 1.2.0 - dev
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] ---
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Loading accessories from configuration, this might take a while...
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Wohnzimmer Onkyo (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Wohnzimmer Onkyo Lautstärke (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Created grouped accessory Wohnzimmer Onkyo (undefined) with 2 accessories and 2 services
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Küche Oben 1 (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Küche Oben 2 (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Created grouped accessory Küche Oben (undefined) with 2 accessories and 2 services
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory WeMo Motion (Type: motion)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Garage (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Wohnzimmer TV (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Heidi TV (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Heidi TV Lautstärke (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Created grouped accessory Heidi TV (undefined) with 2 accessories and 2 services
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Badezimmer-Dusche Decke (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Badezimmer-Wanne Waschtisch (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Badezimmer-Wanne Decke (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Terrasse Bewegung (Type: motion)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Terrasse Temperatur (Type: temp)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Terrasse Helligkeit (Type: lux)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Created grouped accessory Terrasse Hue Motion (undefined) with 3 accessories and 3 services
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Terrasse Bewegungsmelder (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Terrasse Licht (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory WC Licht (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory WC Licht Farbe (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Heidi Decke (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Heidi Decke Farbe (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Schlafzimmer Decke (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Schlafzimmer Decke Farbe (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Küche Licht (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Küche Licht Farbe (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Nikolaus LS TV (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Nikolaus LS Back (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Nikolaus LS Desk (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Nikolaus Decke (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Nikolaus TV (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Nikolaus Denon (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Nikolaus Denon Lautstärke (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Essen fertig (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Nikolaus Stehlampe (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Nikolaus Gelsenstecker (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Wohnzimmer Bewegung (Type: motion)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Wohnzimmer Links (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Wohnzimmer Rechts (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Wohnzimmer Esslampe (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Wohnzimmer Esslampe Farbe (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Wohnzimmer Kamin (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Heidi Stehlampe (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Schlafzimmer Nachtkasten Mama (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Schlafzimmer Nachtkasten Papa (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Unable to add accessory Küche Deckenleuchte: Error: Not configuring binary characteristic for Küche Deckenleuchte: Item type was not synced initially and is therefore not available, skipping
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Sonos Lautstärke (Type: light)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Einfahren (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Stopp (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Ausfahren (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Created grouped accessory Markise (undefined) with 3 accessories and 3 services
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Eingangstüre (Type: contact)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Wohnzimmer Terrassentüre (Type: contact)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Wohnzimmer Fenster (Type: contact)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Esszimmer Fenster Links (Type: contact)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Esszimmer Fenster Mitte (Type: contact)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Esszimmer Fenster Rechts (Type: contact)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Küche Fenster (Type: contact)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Wirtschaftsraum Fenster (Type: contact)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Nikolaus Türe (Type: contact)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Nikolaus Terrassentüre (Type: contact)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Nikolaus Fenster (Type: contact)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Heidi Terrassentüre (Type: contact)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Heidi Fenster (Type: contact)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Schlafzimmer Terrassentüre (Type: contact)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Terrasse Kühlschrank (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory Kohlegrill (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory H_N (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory H_H (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory H_A (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory H_R (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory H_K (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_HDS_1_S (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_HDS_1_L (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_HDS_2_S (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_HDS_2_L (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_HDS_3_S (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_HDS_3_L (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_HDS_4_S (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_HDS_4_L (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Created grouped accessory Nikolaus Switch Bett (undefined) with 8 accessories and 8 services
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_FOH_1 (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_FOH_2 (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_FOH_3 (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_FOH_4 (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_FOH_5 (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_FOH_6 (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Created grouped accessory Nikolaus Switch FOH (undefined) with 6 accessories and 6 services
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory WZ_FOH_1 (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory WZ_FOH_2 (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory WZ_FOH_3 (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory WZ_FOH_4 (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory WZ_FOH_5 (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory WZ_FOH_6 (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Created grouped accessory Wohnzimmer Switch FOH (undefined) with 6 accessories and 6 services
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_SZ_Fernsehen (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_SZ_SZ1 (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_SZ_Nacht (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_SZ_Festtagsbeleuchtung (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Added accessory N_SZ_Tageslicht (Type: switch)
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Created grouped accessory Nikolaus Scenes (undefined) with 5 accessories and 5 services
[10/29/2020, 9:34:34 PM] [openHAB2-Complete] Syncing all item values from openHAB
[10/29/2020, 9:34:35 PM] [Config] Initializing config platform...
[10/29/2020, 9:34:35 PM] [Config] Running in Service Mode
[10/29/2020, 9:34:35 PM] 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.
    at new Accessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:237:11)
    at new PlatformAccessory (/usr/local/lib/node_modules/homebridge/src/platformAccessory.ts:70:9)
    at Accessory.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/server.ts:418:24
    at new Promise (<anonymous>)
    at Server.loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/src/server.ts:412:12)
    at /usr/local/lib/node_modules/homebridge/src/server.ts:400:28
    at Array.forEach (<anonymous>)
    at Server.loadPlatforms (/usr/local/lib/node_modules/homebridge/src/server.ts:372:27)
[10/29/2020, 9:34:35 PM] Got SIGTERM, shutting down Homebridge...
[10/29/2020, 9:34:40 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Environment (please complete the following information):

Additional context Seems to be related to commit 3fe37367e05b095bb4ff1cc89eeb25bd4985b77d / 098d916bcd835e5f8505e5efc2e4eaac222195e9, as it worked before. (?)

maisun commented 3 years ago

Hi, I have the same problem, any idea how to fix it? Thanks!

sahnetorti commented 3 years ago

Hi, I have also the same issue it seems.

Hope s.o. can help :)

steilerDev commented 3 years ago

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.

sahnetorti commented 3 years ago

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 () 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 () at Server.loadPlatforms (/usr/local/lib/node_modules/homebridge/src/server.ts:372:27) [5/30/2021, 6:53:19 PM] Got SIGTERM, shutting down Homebridge...

sahnetorti commented 3 years ago

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.

sahnetorti commented 3 years ago

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.

sahnetorti commented 3 years ago

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?

steilerDev commented 3 years ago

Fixed with 1.3.0