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

moin, bei mehr als 149 möglichen Items in Loxone stürzt Homebridge ab und startet neu bis man das plugin wieder deaktiviert #1

Closed
TommeDE opened this issue Apr 28, 2023 · 17 comments
Labels
bug Something isn't working

Comments

@TommeDE
Copy link

TommeDE commented Apr 28, 2023

[28/04/2023, 02:07:26] [LoxonePlatform] [mapLoxoneItems] Found item: [Schlafzimmer] Grün with type MoodSwitch
[28/04/2023, 02:07:26] [LoxonePlatform] [LoxoneAccesory] Adding new accessory: [Schlafzimmer] Grün
[28/04/2023, 02:07:26] Error: Cannot Bridge more than 149 Accessories
at Bridge.Accessory.addBridgedAccessory (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:683:13)
at Bridge.Accessory.addBridgedAccessories (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:707:12)
at BridgeService.handleRegisterPlatformAccessories (/var/lib/homebridge/node_modules/homebridge/src/bridgeService.ts:384:17)
at HomebridgeAPI.emit (node:events:513:28)
at HomebridgeAPI.registerPlatformAccessories (/var/lib/homebridge/node_modules/homebridge/src/api.ts:340:10)
at new LoxoneAccessory (/var/lib/homebridge/node_modules/homebridge-loxone-proxy/src/LoxoneAccessory.ts:75:25)
at LoxonePlatform.mapLoxoneItems (/var/lib/homebridge/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:151:7)
at LoxonePlatform.parseLoxoneConfig (/var/lib/homebridge/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:67:10)
at LoxonePlatform.LoxoneInit (/var/lib/homebridge/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:37:12)
ERROR: Socket Timeout fired! (timeout was 5ms)
[28/04/2023, 02:07:26] [LoxonePlatform] Socket closed 2004
[28/04/2023, 02:07:26] [LoxonePlatform] Reconnecting in 10 seconds...

@rudyberends rudyberends added the bug Something isn't working label Apr 28, 2023
@rudyberends
Copy link
Owner

Danke für die Rückmeldung. Ich habe das Plugin für den persönlichen Gebrauch erstellt und es wurde nie mit anderen Loxone-Umgebungen außer meiner eigenen getestet. Es gibt also wahrscheinlich noch mehr Fehler, auf die ich selbst nicht gestoßen bin. Aber wenn sie hier gemeldet werden, können wir immer sehen, ob wir sie lösen können.

Das Limit von 150 items ist ein HomeKit-Limit. Apple erlaubt nicht mehr als 150 items pro Bridge.

Ich habe eine Anpassung im Plugin vorgenommen, die jetzt die Zuordnung von Elementen stopt, wenn das Limit erreicht ist. Sind aber auch andere Plugins aktiv, dann kann das Limit trotzdem überschritten werden. Um dies zu verhindern, kann das Plugin als Child Bridge gestartet werden.

Ich habe auch eine Option hinzugefügt, um die Verwendung von MoodSwitches zu deaktivieren, wenn Sie sie nicht verwenden möchten. Auch das spart einiges an Items ein und bleibt so unter Umständen unter dem Limit.

Könnten Sie die neueste Version des Plugins testen, um zu sehen, ob es für Sie funktioniert? Sie müssen wahrscheinlich das zwischengespeicherte Zubehör in Homebridge leeren.

@TommeDE
Copy link
Author

TommeDE commented Apr 28, 2023

ich schaue gleich mal und wir können gern beim du bleiben ;)

@TommeDE
Copy link
Author

TommeDE commented Apr 28, 2023

mit dem switch habe ich weniger als 150 das läuft und ohne kommt gleich

@TommeDE
Copy link
Author

TommeDE commented Apr 28, 2023

weiterhin als child aber schmiert ab ... da steht 149 vielleicht liegt es daran?
[28/04/2023, 19:06:53] [homebridge-loxone-proxy] [LoxoneAccesory] Adding new accessory: [Keller] Lila Error: Cannot Bridge more than 149 Accessories at Bridge.Accessory.addBridgedAccessory (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:683:13) at Bridge.Accessory.addBridgedAccessories (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:707:12) at BridgeService.handleRegisterPlatformAccessories (/usr/lib/node_modules/homebridge/src/bridgeService.ts:384:17) at HomebridgeAPI.emit (node:events:513:28) at HomebridgeAPI.registerPlatformAccessories (/usr/lib/node_modules/homebridge/src/api.ts:340:10) at new LoxoneAccessory (/usr/lib/node_modules/homebridge-loxone-proxy/src/LoxoneAccessory.ts:54:25) at LoxonePlatform.mapLoxoneItems (/usr/lib/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:180:9) at LoxonePlatform.parseLoxoneConfig (/usr/lib/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:85:10) at LoxonePlatform.LoxoneInit (/usr/lib/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:56:10) [28/04/2023, 19:06:53] [homebridge-loxone-proxy] Child bridge process ended

@rudyberends
Copy link
Owner

Hast du die Homebridge "Cached Accessories" gelöscht? Wenn Sie die neueste Version verwenden, sollte das Plugin so aussehen, wenn es sein Limit erreicht;

_[4/28/2023, 4:17:25 PM] [LoxonePlatform] [mapLoxoneItems][Item 148] Found item: [Woonkeuken] Autopilot with type MoodSwitch [4/28/2023, 4:17:25 PM] [LoxonePlatform] [LoxoneAccesory] Adding new accessory: [Woonkeuken] AutoPilot [4/28/2023, 4:17:25 PM] [LoxonePlatform] [mapLoxoneitems] Maximum number of supported HomeKit items reached. Stop mapping Items._

@TommeDE
Copy link
Author

TommeDE commented Apr 28, 2023

hab das gefunden mit dem cache ... alles gelöscht und trotzdem ...

[28/04/2023, 19:40:37] [homebridge-loxone-proxy] [mapLoxoneItems][Item 108] Found item: [Keller] Rosa with type MoodSwitch [28/04/2023, 19:40:37] [homebridge-loxone-proxy] [LoxoneAccesory] Item already mapped. Restoring accessory from cache: [Keller] Rosa [28/04/2023, 19:40:38] [HomeConnect] Please authorise access to your appliances within 29 minutes 45 seconds using the associated Home Connect or SingleKey ID email address by visiting: [28/04/2023, 19:40:38] [HomeConnect] https://api.home-connect.com/security/oauth/device_verify?user_code=GSPY-TB2M [28/04/2023, 19:40:38] [homebridge-loxone-proxy] [mapLoxoneItems][Item 109] Found item: [Keller] Lila with type MoodSwitch [28/04/2023, 19:40:38] [homebridge-loxone-proxy] [LoxoneAccesory] Adding new accessory: [Keller] Lila Error: Cannot Bridge more than 149 Accessories at Bridge.Accessory.addBridgedAccessory (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:683:13) at Bridge.Accessory.addBridgedAccessories (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:707:12) at BridgeService.handleRegisterPlatformAccessories (/usr/lib/node_modules/homebridge/src/bridgeService.ts:384:17) at HomebridgeAPI.emit (node:events:513:28) at HomebridgeAPI.registerPlatformAccessories (/usr/lib/node_modules/homebridge/src/api.ts:340:10) at new LoxoneAccessory (/usr/lib/node_modules/homebridge-loxone-proxy/src/LoxoneAccessory.ts:54:25) at LoxonePlatform.mapLoxoneItems (/usr/lib/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:180:9) at LoxonePlatform.parseLoxoneConfig (/usr/lib/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:85:10) at LoxonePlatform.LoxoneInit (/usr/lib/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:56:10) [28/04/2023, 19:40:38] [homebridge-loxone-proxy] Child bridge process ended [28/04/2023, 19:40:38] [homebridge-loxone-proxy] Process Ended. Code: 1, Signal: null [28/04/2023, 19:40:45] [homebridge-loxone-proxy] Restarting Process...

@rudyberends
Copy link
Owner

Dies liegt daran, dass sich noch über 150 Items im Homebridge-Cache befinden. Der Cache muss einmal gelöscht werden, damit es funktioniert. Wenn Sie homebridge-ui verwenden, können Sie den Cache leeren, indem Sie auf "Homebridge-Einstellung" gehen und "Geräte aus dem Cache entfernen" auswählen. Das Entfernen des Plugins, Neustarten und Neuinstallieren des Plugins könnte ebenfalls funktionieren.

@TommeDE
Copy link
Author

TommeDE commented Apr 28, 2023

kann jetzt noch versuchen das plugin neu zu installieren den cache für alle geräte mit neustart hab ich gemacht schau mal der bricht bei 109 ab nicht bei 149

@TommeDE
Copy link
Author

TommeDE commented Apr 28, 2023

das kommt jetzt nach neuinstallation den Temperaturbereich sollte man größer machen -30 bis 100 mindestens ... weiß nicht warum ihn das vorher nicht interessiert hat
und nach der letzten meldung ist die bridge dann stehen geblieben

`[28/04/2023, 19:50:19] [homebridge-loxone-proxy] This plugin generated a warning from the characteristic 'Version': characteristic was supplied illegal value: number instead of string, supplying illegal values will throw errors in the future. See https://homebridge.io/w/JtMGR for more info.

[28/04/2023, 19:50:19] [homebridge-loxone-proxy] This plugin generated a warning from the characteristic 'Target Temperature': characteristic was supplied illegal value: number 45 exceeded maximum of 38. See https://homebridge.io/w/JtMGR for more info.

[28/04/2023, 19:50:20] [homebridge-loxone-proxy] This plugin generated a warning from the characteristic 'Version': characteristic was supplied illegal value: number instead of string, supplying illegal values will throw errors in the future. See https://homebridge.io/w/JtMGR for more info.

[28/04/2023, 19:50:20] [homebridge-loxone-proxy] This plugin generated a warning from the characteristic 'Target Temperature': characteristic was supplied illegal value: number 45 exceeded maximum of 38. See https://homebridge.io/w/JtMGR for more info.

[28/04/2023, 19:50:25] [homebridge-loxone-proxy] This plugin generated a warning from the characteristic 'Version': characteristic was supplied illegal value: number instead of string, supplying illegal values will throw errors in the future. See https://homebridge.io/w/JtMGR for more info.

[28/04/2023, 19:50:25] [homebridge-loxone-proxy] This plugin generated a warning from the characteristic 'Target Temperature': characteristic was supplied illegal value: number 45 exceeded maximum of 38. See https://homebridge.io/w/JtMGR for more info.`

@TommeDE
Copy link
Author

TommeDE commented Apr 28, 2023

[28/04/2023, 19:57:39] [homebridge-loxone-proxy] This plugin generated a warning from the characteristic 'Version': characteristic was supplied illegal value: number instead of string, supplying illegal values will throw errors in the future. See https://homebridge.io/w/JtMGR for more info.
[28/04/2023, 19:57:39] [homebridge-loxone-proxy] This plugin generated a warning from the characteristic 'Target Temperature': characteristic was supplied illegal value: number 45 exceeded maximum of 38. See https://homebridge.io/w/JtMGR for more info.
[28/04/2023, 19:57:48] [HomeConnect] Please authorise access to your appliances within 22 minutes 33 seconds using the associated Home Connect or SingleKey ID email address by visiting:
[28/04/2023, 19:57:48] [HomeConnect] https://api.home-connect.com/security/oauth/device_verify?user_code=1X9M-Z202
[28/04

@rudyberends
Copy link
Owner

rudyberends commented Apr 28, 2023

Ich werde diese Warnungen beheben, aber sie sollten das Plugin nicht daran hindern, zu funktionieren. Verhindert das Item limit, dass die Brücke abstürzt?

@TommeDE
Copy link
Author

TommeDE commented Apr 28, 2023

alles was ich sehen kann im log hab ich geschickt jetzt kommen nur noch nachrichten der anderen plugins

es hat einfach da aufgehört und ist aus gegangen weitere meldungen kamen nicht ... ich probiere es nochmal

@TommeDE
Copy link
Author

TommeDE commented Apr 28, 2023

nee jetzt nach neustart ist ne menge an geräten das sieht besser aus als bei dem anderen loxone adapter ... coooooool

aber wie kann man jetzt die farbe ändern von den lampen? was schaltet der jetzt? weiß 100%?

Ventilatoren funktionieren ... Intercom und Torantriebe werden angezeigt aber ohne Steuerfunktionen

Feuchte und Temperatur haut auch hin ... ein Umschalter °C/°F und %rF/%rH dann könnten das auch welche von der anderen Seite des großen Teichs nutzen ... haste schon mal fein gemacht! super

@rudyberends
Copy link
Owner

rudyberends commented Apr 28, 2023

Ist es möglich, für jedes Problem ein separates Problem zu erstellen, damit wir daran arbeiten und es separat testen können? Ich habe schon ein paar erstellt. Wenn das ursprüngliche Problem "149 Items" behoben ist, werde ich fortfahren, dieses Problem zu schließen.

@TommeDE
Copy link
Author

TommeDE commented Apr 28, 2023

leider nein nach der neuinstallation stand der schalter auf default sorry

[28/04/2023, 20:43:07] [homebridge-loxone-proxy] [mapLoxoneItems][Item 107] Found item: [Keller] Rot with type MoodSwitch [28/04/2023, 20:43:07] [homebridge-loxone-proxy] [LoxoneAccesory] Adding new accessory: [Keller] Rot [28/04/2023, 20:43:07] [homebridge-loxone-proxy] [mapLoxoneItems][Item 108] Found item: [Keller] Rosa with type MoodSwitch [28/04/2023, 20:43:07] [homebridge-loxone-proxy] [LoxoneAccesory] Adding new accessory: [Keller] Rosa [28/04/2023, 20:43:08] [homebridge-loxone-proxy] [mapLoxoneItems][Item 109] Found item: [Keller] Lila with type MoodSwitch [28/04/2023, 20:43:08] [homebridge-loxone-proxy] [LoxoneAccesory] Adding new accessory: [Keller] Lila Error: Cannot Bridge more than 149 Accessories at Bridge.Accessory.addBridgedAccessory (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:683:13) at Bridge.Accessory.addBridgedAccessories (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:707:12) at BridgeService.handleRegisterPlatformAccessories (/usr/lib/node_modules/homebridge/src/bridgeService.ts:384:17) at HomebridgeAPI.emit (node:events:513:28) at HomebridgeAPI.registerPlatformAccessories (/usr/lib/node_modules/homebridge/src/api.ts:340:10) at new LoxoneAccessory (/usr/lib/node_modules/homebridge-loxone-proxy/src/LoxoneAccessory.ts:54:25) at LoxonePlatform.mapLoxoneItems (/usr/lib/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:180:9) at LoxonePlatform.parseLoxoneConfig (/usr/lib/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:85:10) at LoxonePlatform.LoxoneInit (/usr/lib/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:56:10) [28/04/2023, 20:43:08] [homebridge-loxone-proxy] Child bridge process ended [28/04/2023, 20:43:08] [homebridge-loxone-proxy] Process Ended. Code: 1, Signal: null

@TommeDE
Copy link
Author

TommeDE commented Apr 28, 2023

hab nochmal den cache gelöscht und siehe da jetzt geht es ... vom feinsten!

@rudyberends
Copy link
Owner

fixed with commit d263e65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants