Sroose / homebridge-loxone-ws

Websocket based Loxone plugin for homebridge
MIT License
39 stars 26 forks source link

No homebridge 1.0 Support #51

Open elmocito opened 4 years ago

elmocito commented 4 years ago

After updating to homebridge 1.0.1, I got the following error message:

4/27/2020, 3:35:06 PM] [Loxone] Platform - Retrieving initial config from http://NodeRed:HHL%24AQpCeN6qmkuYik@192.168.99.5:35000/data/LoxApp3.json [4/27/2020, 3:35:06 PM] [Loxone] Platform - The widget 'Lichtsteuerung' of type LightControllerV2 is an item not handled. [4/27/2020, 3:35:06 PM] [Loxone] Platform - The widget 'Master-Schalter of Lichtsteuerung' of type Lightbulb was skipped. [4/27/2020, 3:35:06 PM] TypeError: Class constructor PlatformAccessory cannot be invoked without 'new' at LightbulbItem.AbstractItem (/homebridge/node_modules/homebridge-loxone-ws-adv/items/AbstractItem.js:22:25) at LightbulbItem.SwitchItem (/homebridge/node_modules/homebridge-loxone-ws-adv/items/SwitchItem.js:12:23) at new LightbulbItem (/homebridge/node_modules/homebridge-loxone-ws-adv/items/LightbulbItem.js:6:26) at exports.Factory.parseSitemap (/homebridge/node_modules/homebridge-loxone-ws-adv/libs/ItemFactory.js:66:29) at Request._callback (/homebridge/node_modules/homebridge-loxone-ws-adv/index.js:88:38) at Request.self.callback (/homebridge/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:185:22) at Request.emit (events.js:223:5) at Request. (/homebridge/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:1154:10) at Request.emit (events.js:223:5) at IncomingMessage. (/homebridge/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:1076:12) [4/27/2020, 3:35:06 PM] Got SIGTERM, shutting down Homebridge...

Running in an DS718+II Container with a Loxone Miniserver.

reicee commented 4 years ago

+1. same error messages. Run on a Synology DS218+, Loxone Miniserver. Everything up to date.

19kirk79 commented 4 years ago

same here. with the loxone-ws-adv (successor plugin) too. will there be an update soon or better to rollback the homebridge installtion?

edit: rollback not working. seems to belong to dependencies, not homebride itself. very disappointing :/

Supereg commented 4 years ago

@Sroose you current "inherit" your AbstractItem from PlatformAccessory. Your using a so called "StaticPlatformPlugin" (exposing a method accessories, which returns a array of AccessoryPlugin objects). Your accessories returns an array of AbstractItem. They do NOT need to inherit from PlatfromAccessory. This inheritance is completely unnecessary. The only thing what is required by homebridge is that those "accessory objects" (so AbstracItem instances) define a method getServices and return all services which should be added. Nothing more. You may have a look at the homebridge-examples repo on how such a plugin should be implemented.

So to fix that you could correctly inherit from PlatfromAccessory, or just remove the inheritance altogether as there is not benefit, it's not used and it's just wasting memory. I don't know which mechanics you may abuse from the inhertiance, so other parts of the code may need to the adjusted.

EDIT: the examples are written in Typescript, but the functionality can be discovered nonetheless and be converted into regular Javascript code.

keuninkske commented 4 years ago

+1 same error here new setup on rpi 3b+ with loxone version 10.3.11.27

i am not that experienced programmer to find out myself how to solve this in your code if you have questions, feel free, i try to help you

but afterwards, explain me how to solve the problem thanks for all you guys efforts, fantastic piece of software you are making here

edit:

found in homebridge/homebridge#2545 to rollback to version 1.0.3, but that didnt helped me either, failure code completely identical to topic opener

Supereg commented 4 years ago

@keuninkske if you really want to rollback. You probably need to rollback to some 0.4.x version.

keuninkske commented 4 years ago

pff, i had an old instalation, stopped working somewhere in november or december (issue unknown, probably due to an update of the UI plugin) now i took the time to reinstall, but i'm not able to get it finished

i am hobby python programmer i took a look to the java code for this already, but seems above my level... nobody who can help us out?

19kirk79 commented 4 years ago

@keuninkske if you really want to rollback. You probably need to rollback to some 0.4.x version.

I tried to rollback to 0.4.x - working - but due to dependencies or somewhat else the loxone plugin does not work.

jmago17 commented 4 years ago

Just got this bug overnight... any news? Has someone found any solution?

daveainslie commented 4 years ago

Hi, I have updated this loxone plugin to the latest v1.0.9 (just committed) and i have homebridge v1.0.4 and i am still getting the looping/restarting error with the Platform Accessory error (below)

[5/5/2020, 6:31:33 PM] [Loxone] Platform - Retrieving initial config from http://homebridge:xxxx@192.168.1.100:7777/data/LoxApp3.json [5/5/2020, 6:31:33 PM] TypeError: Class constructor PlatformAccessory cannot be invoked without 'new' at DimmerItem.AbstractItem (/usr/lib/node_modules/homebridge-loxone-ws-adv/items/AbstractItem.js:22:25) at new DimmerItem (/usr/lib/node_modules/homebridge-loxone-ws-adv/items/DimmerItem.js:12:23) at exports.Factory.parseSitemap (/usr/lib/node_modules/homebridge-loxone-ws-adv/libs/ItemFactory.js:66:29) at Request._callback (/usr/lib/node_modules/homebridge-loxone-ws-adv/index.js:88:38) at Request.self.callback (/usr/lib/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:185:22) at Request.emit (events.js:310:20) at Request. (/usr/lib/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:1154:10) at Request.emit (events.js:310:20) at IncomingMessage. (/usr/lib/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:1076:12) at Object.onceWrapper (events.js:416:28) [5/5/2020, 6:31:34 PM] [Family Room TV] Opening handshake has timed out [5/5/2020, 6:31:38 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [5/5/2020, 6:31:43 PM] [HB Supervisor] Restarting Homebridge...

keuninkske commented 4 years ago

i just finished updating also but no solotion with this update i have been reading the update logs but it is not clear for me if they have been taking a look to this bug already

anyway, i am looking forward to the solution only thing i can do is saying thanks in advance for the efforts you guys are making

Supereg commented 4 years ago

This plugin needs an update. As already explained. Homebridge can’t really fix this.

daveainslie commented 4 years ago

This plugin needs an update. As already explained. Homebridge can’t really fix this.

Yes that is why we are posting on here to assist @lumoc with the issues and to inform him that we are having problems still with the latest updates he has committed today as he is the author. If it was an issue with homebridge we would post on the main homebridge pages?

keuninkske commented 4 years ago

so, what you are explaining is that: -the homebridge platform is has an update who causes problems! -the loxone-ws plugin is updated? -i have only one other plugin installed, and that is google gsh

what is very strange, i have only the loxone plugin metioned in the error i am having

TypeError: Class constructor PlatformAccessory cannot be invoked without 'new' at PushbuttonItem.AbstractItem (/usr/lib/node_modules/homebridge-loxone-ws-adv/items/AbstractItem.js:22:25) at PushbuttonItem.SwitchItem (/usr/lib/node_modules/homebridge-loxone-ws-adv/items/SwitchItem.js:12:23) at new PushbuttonItem (/usr/lib/node_modules/homebridge-loxone-ws-adv/items/PushbuttonItem.js:6:27) at exports.Factory.parseSitemap (/usr/lib/node_modules/homebridge-loxone-ws-adv/libs/ItemFactory.js:66:29) at Request._callback (/usr/lib/node_modules/homebridge-loxone-ws-adv/index.js:88:38) at Request.self.callback (/usr/lib/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:185:22) at Request.emit (events.js:310:20) at Request. (/usr/lib/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:1154:10) at Request.emit (events.js:310:20) at IncomingMessage. (/usr/lib/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:1076:12)

elmocito commented 4 years ago

Same here...

[5/5/2020, 9:19:31 PM] [Loxone] LOXONE WS: connect [5/5/2020, 9:19:39 PM] [Loxone] Platform - Retrieving initial config from http://*****:*****@192.168.*****.*****:*****/data/LoxApp3.json [5/5/2020, 9:19:39 PM] [Loxone] Platform - The widget 'Lichtsteuerung' of type LightControllerV2 is an item not handled. [5/5/2020, 9:19:39 PM] [Loxone] Platform - The widget 'Master-Schalter of Lichtsteuerung' of type Lightbulb was skipped. [5/5/2020, 9:19:39 PM] TypeError: Class constructor PlatformAccessory cannot be invoked without 'new' at LightbulbItem.AbstractItem (/homebridge/node_modules/homebridge-loxone-ws-adv/items/AbstractItem.js:22:25) at LightbulbItem.SwitchItem (/homebridge/node_modules/homebridge-loxone-ws-adv/items/SwitchItem.js:12:23) at new LightbulbItem (/homebridge/node_modules/homebridge-loxone-ws-adv/items/LightbulbItem.js:6:26) at exports.Factory.parseSitemap (/homebridge/node_modules/homebridge-loxone-ws-adv/libs/ItemFactory.js:66:29) at Request._callback (/homebridge/node_modules/homebridge-loxone-ws-adv/index.js:88:38) at Request.self.callback (/homebridge/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:185:22) at Request.emit (events.js:223:5) at Request. (/homebridge/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:1154:10) at Request.emit (events.js:223:5) at IncomingMessage. (/homebridge/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:1076:12) [5/5/2020, 9:19:39 PM] Got SIGTERM, shutting down Homebridge...

elmocito commented 4 years ago

Lumoc was so kind to update homebridge-loxone-ws-adv, but his update did not work yet. I think it would help if @Sroose supports. He did not update since 2018 :-/

jmago17 commented 4 years ago

It seems that there's a new version of Lumoc's ported plugin (1.0.17?), but I am not able to install it. Can someone confirm it that version is working? Thanks in advance

elmocito commented 4 years ago

I uninstalled the plugin (1.0.7) and reinstalled it (UI said 1.0.11?). Did not work. I saw that Lumoc updated and I assume that he is still working on it. It would really help if we got any feedback from @Sroose :-/

LLPP65 commented 4 years ago

I just installed a fresh Homebridge and homebridge-loxone-adv (.17) and it does not work. "TypeError: Class constructor PlatformAccessory cannot be invoked without 'new' "

daveainslie commented 4 years ago

There were several updates from Lumoc yesterday i tried each one that came in, some threw new errors, one of them did connect to Loxone but couldn't handle any of the accessories & the latest version 1.0.17 still doesn't work with the same error (TypeError: Class constructor PlatformAccessory cannot be invoked without 'new' at PushbuttonItem.AbstractItem) looks like Lumoc is still working on it from all the updates so i'm going to wait a few days/week before i downgrade homebridge to get back up and running (if you run 'sudo npm install -g --unsafe-perm homebridge@0.4.53' this will downgrade homebridge to v0.4.53 which does work, however some other plugins you have may have been updated to only work with homebridge v1+ so they may stop working by doing this, so if you have homebridge and only use the loxone plugin i would advise downgrading and checking this page until a stable release is made)

jmago17 commented 4 years ago

I guess that there are no good news yet... I was afraid that this may eventually happend...

daveainslie commented 4 years ago

You can have multiple instances of homebridge bridges running under HomeKit, and one instance only supports 100 accessories anyway so i was going to have to add another for loxone anyway soon as I have around 90 accessories in my loxone setup. For the sake of £40-60 you can buy another Pi and install homebridge v0.4.53 with loxone-we-adv which works fine, then use the other homebridge instance for the most up to date homebridge version for all other plugins ... this is what I’m going to do it is a relatively cheap way to get around the problem until this is fixed. Hope this helps

LLPP65 commented 4 years ago

It’s a bit of a hack, but I believe you can run multiple homebridge instances on the same server.

daveainslie commented 4 years ago

Yes you can but I’m not sure if you can ru. Different versions of homebridge as multiple instances, for example I have the ring doorbell plugin which requires homebridge v1+ so I don’t think I can home that aswell as homebridge v0.4.53 on the same server (easily) ?

jmago17 commented 4 years ago

I've seen that homebridge has updated to version 1.1.0. Has someone tried, or has someone any good news? Regards,

elmocito commented 4 years ago

Just tried it. Same issue. Loading Loxone for a while and then the error pops up... 👎

Lumoc commented 4 years ago

Fix is here with v1.0.18 of my plugin

sudo -E -n npm install homebridge-loxone-ws-adv@latest

keuninkske commented 4 years ago

thanks allot to @lumoc and @geilername for helping out

elmocito commented 4 years ago

Fix is here with v1.0.18 of my plugin

sudo -E -n npm install homebridge-loxone-ws-adv@latest

Awesome! It worked. Thanks for your effort @Lumoc !!

LLPP65 commented 4 years ago

Fix is here with v1.0.18 of my plugin

sudo -E -n npm install homebridge-loxone-ws-adv@latest

I just installed it with a fresh homebridge. It works and I’m testing before replacing the main system. I’ve seen a few disconnects from the miniserver but I’ll advise of any problems.

Thanks for your work!

Update:

It has been working for over a week now. Thanks again!

Masegi commented 3 years ago

Hi,

I'm trien to get Loxone Ws Adv 1.0.18 running.

We are using: Node.js Version v14.16.0 Npm Version: v7.6.2

So, basicly it will first connect once, show rooms and accessories, but after 1 sec it starts spamming:

Loading logs using native method...
File: /var/lib/homebridge/homebridge.log

r: undefined ERR_STREAM_WRITE_AFTER_END
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006

WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:33:59] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:01] TypeError: Cannot read property 'closeDescription' of undefined
    at Connection.<anonymous> (/usr/local/lib/node_modules/homebridge-loxone-ws-adv/node_modules/node-lox-ws-api/lib/Connection.js:62:62)
    at WebSocketClient.emit (events.js:315:20)
    at WebSocketClient.failHandshake (/usr/local/lib/node_modules/homebridge-loxone-ws-adv/node_modules/websocket/lib/WebSocketClient.js:339:10)
    at ClientRequest.<anonymous> (/usr/local/lib/node_modules/homebridge-loxone-ws-adv/node_modules/websocket/lib/WebSocketClient.js:278:18)
    at ClientRequest.emit (events.js:315:20)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:641:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)
    at HTTPParser.execute (<anonymous>)
    at Socket.socketOnData (_http_client.js:509:22)
    at Socket.emit (events.js:315:20)
[13/03/2021, 13:34:01] Got SIGTERM, shutting down Homebridge...
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END

WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:06] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[13/03/2021, 13:34:11] [HB Supervisor] Restarting Homebridge...
[13/03/2021, 13:34:11] [HB Supervisor] Starting Homebridge with extra flags: -I
[13/03/2021, 13:34:11] [HB Supervisor] Started Homebridge v1.3.3 with PID: 939
Initializing HAP-NodeJS v0.9.3...
[13/03/2021, 13:34:12] Loaded config.json with 0 accessories and 2 platforms.
[13/03/2021, 13:34:12] Loaded 0 cached accessories from cachedAccessories.
[13/03/2021, 13:34:12] ---
[13/03/2021, 13:34:13] Loaded plugin: homebridge-config-ui-x@4.40.0
[13/03/2021, 13:34:13] Registering platform 'homebridge-config-ui-x.config'
[13/03/2021, 13:34:13] ---
[13/03/2021, 13:34:13] Loaded plugin: homebridge-loxone-ws-adv@1.0.18
homebridge API version: 2.7
[13/03/2021, 13:34:13] Registering platform 'homebridge-loxone-ws-adv.LoxoneWs'
[13/03/2021, 13:34:13] ---
[13/03/2021, 13:34:13] Loading 2 platforms...
[13/03/2021, 13:34:13] [Config] Initializing config platform...
[13/03/2021, 13:34:13] [Config] Running in Service Mode
[13/03/2021, 13:34:13] [Loxone] Initializing LoxoneWs platform...
[13/03/2021, 13:34:13] [Loxone] Info: rooms array not configured. Adding every room.
[13/03/2021, 13:34:13] [Loxone] object
New WS: 192.168.0.150:49000
[13/03/2021, 13:34:13] [Loxone] Platform - Waiting 8 seconds until initial state is retrieved via WebSocket.
[13/03/2021, 13:34:13] [Loxone] LOXONE WS: connect
Websocket Connection closed:  1000 normally closed
[13/03/2021, 13:34:15] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:15] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:17] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:17] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:20] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:20] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:21] [Loxone] Platform - Retrieving initial config from http://hannes:mypass@192.168.0.150:49000/data/LoxApp3.json
[13/03/2021, 13:34:21] [Loxone] Platform - There was a problem connecting to Loxone.
[13/03/2021, 13:34:22] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:22] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:24] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:24] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:25] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:25] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:26] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:26] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:28] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:28] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:28] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:28] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
Websocket Connection closed:  4003 Forbidden - IP 192.168.0.212 temporarily blocked, too many failed login attempts (120)
[13/03/2021, 13:34:30] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:30] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:30] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:30] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:32] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:32] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:32] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:32] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:32] [Homebridge UI] Rebooting linux server with command: "sudo -n shutdown -r now"
[13/03/2021, 13:34:33] [HB Supervisor] Stopping services...
[13/03/2021, 13:34:33] Got SIGTERM, shutting down Homebridge...
[13/03/2021, 13:34:33] [homebridge-loxone-ws-adv] This plugin is taking long time to load and preventing Homebridge from starting. See https://git.io/JtMGR for more info.
[13/03/2021, 13:34:34] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:34] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:34] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:34] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
Websocket Connection closed:  4003 Forbidden - IP 192.168.0.212 temporarily blocked, too many failed login attempts (114)
[13/03/2021, 13:34:36] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:36] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:36] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:36] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:36] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:36] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:38] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:38] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:38] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:38] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:38] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:34:38] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:34:38] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[13/03/2021, 13:34:58] [HB Supervisor] OS: Linux 5.10.17-v7l+ arm
[13/03/2021, 13:34:58] [HB Supervisor] Node.js v14.16.0 /usr/local/bin/node
[13/03/2021, 13:34:58] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge
[13/03/2021, 13:34:58] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[13/03/2021, 13:35:03] [Homebridge UI] Homebridge Config UI X v4.40.0 is listening on :: port 8581
[13/03/2021, 13:35:04] [HB Supervisor] Starting Homebridge with extra flags: -I
[13/03/2021, 13:35:04] [HB Supervisor] Started Homebridge v1.3.3 with PID: 763
Initializing HAP-NodeJS v0.9.3...
[13/03/2021, 13:35:05] Loaded config.json with 0 accessories and 2 platforms.
[13/03/2021, 13:35:05] Loaded 0 cached accessories from cachedAccessories.
[13/03/2021, 13:35:05] ---
[13/03/2021, 13:35:06] Loaded plugin: homebridge-config-ui-x@4.40.0
[13/03/2021, 13:35:06] Registering platform 'homebridge-config-ui-x.config'
[13/03/2021, 13:35:06] ---
[13/03/2021, 13:35:07] Loaded plugin: homebridge-loxone-ws-adv@1.0.18
homebridge API version: 2.7
[13/03/2021, 13:35:07] Registering platform 'homebridge-loxone-ws-adv.LoxoneWs'
[13/03/2021, 13:35:07] ---
[13/03/2021, 13:35:07] Loading 2 platforms...
[13/03/2021, 13:35:07] [Config] Initializing config platform...
[13/03/2021, 13:35:07] [Config] Running in Service Mode
[13/03/2021, 13:35:07] [Loxone] Initializing LoxoneWs platform...
[13/03/2021, 13:35:07] [Loxone] Info: rooms array not configured. Adding every room.
[13/03/2021, 13:35:07] [Loxone] object
New WS: 192.168.0.150:49000
[13/03/2021, 13:35:07] [Loxone] Platform - Waiting 8 seconds until initial state is retrieved via WebSocket.
[13/03/2021, 13:35:07] [Loxone] LOXONE WS: connect
Websocket Connection closed:  1000 normally closed
[13/03/2021, 13:35:09] [Loxone] LOXONE WS: connect
Websocket Connection closed:  1002 Control frames must not be fragmented.
[13/03/2021, 13:35:12] [Loxone] LOXONE WS: connect
Websocket Connection closed:  1002 Control frames must not be fragmented.
[13/03/2021, 13:35:29] [Loxone] LOXONE WS: connect
Websocket Connection closed:  1002 Control frames must not be fragmented.
[13/03/2021, 13:35:30] [Loxone] Platform - Retrieving initial config from http://hannes:mypass@192.168.0.150:49000/data/LoxApp3.json
[13/03/2021, 13:35:30] [Loxone] Platform - There was a problem connecting to Loxone.
[13/03/2021, 13:35:31] [Loxone] LOXONE WS: connect
Websocket Connection closed:  1002 Control frames must not be fragmented.
[13/03/2021, 13:35:33] [Loxone] LOXONE WS: connect
Websocket Connection closed:  1002 Control frames must not be fragmented.
[13/03/2021, 13:35:35] [Loxone] LOXONE WS: connect
Websocket Connection closed:  1002 Control frames must not be fragmented.
[13/03/2021, 13:35:37] [Loxone] LOXONE WS: connect
Websocket Connection closed:  1000 normally closed
[13/03/2021, 13:35:40] [Loxone] LOXONE WS: connect
Websocket Connection closed:  1002 Control frames must not be fragmented.
[13/03/2021, 13:35:42] [Loxone] LOXONE WS: connect
Websocket Connection closed:  1002 Control frames must not be fragmented.
``

Then after a while it will loop like this:
`
[13/03/2021, 13:31:58] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:31:58] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
[13/03/2021, 13:31:58] [Loxone] LOXONE WS: connect
WebSocket error:  Socket Error: undefined ERR_STREAM_WRITE_AFTER_END 1006
[13/03/2021, 13:31:58] [Loxone] LOXONE WS: connection error, reconnecting...Error [ERR_STREAM_WRITE_AFTER_END]: write after end
Websocket Connection closed:  1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END
Websocket Connection closed:  4003 Forbidden - IP 192.168.0.212 temporarily blocked, too many failed login attempts (1)
[13/03/2021, 13:31:59] [Loxone] LOXONE WS: connect
Websocket Connection closed:  1002 Control frames must not be fragmented.
Websocket Connection closed:  1002 Control frames must not be fragmented.
Websocket Connection closed:  4003 Forbidden - IP 192.168.0.212 temporarily blocked, too many failed login attempts (105)
Websocket Connection closed:  4003 Forbidden - IP 192.168.0.212 temporarily blocked, too many failed login attempts (105)

When we change IP we can connect again once for 1 sec, then it loops again into error.

Can somebody please help us?

Config is like this:
{
    "bridge": {
        "name": "Homebridge B0BD",
        "username": "D2:E7:AE:B7:E9:38",
        "port": 51773,
        "pin": "237-62-852"
    },
    "description": "Your config file.",
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "platform": "LoxoneWs",
            "name": "Loxone",
            "host": "192.168.0.150",
            "port": "49000",
            "username": "hannes",
            "password": "mypass"
        }
    ]
}
LukasLicko commented 2 years ago

@Masegi I have the same issue. Do you have solved it?

Masegi commented 2 years ago

no actually not :(

Macjon commented 2 years ago

I've did a clean install and having this issue too. Any fixes?

Masegi commented 2 years ago

well, I switched to another loxone plugin, that's working fine.

Macjon commented 2 years ago

@Masegi which one?

Masegi commented 2 years ago

https://github.com/ActiveByte/homebridge-loxone-connect