I am trying to connect to the WiNet Extractor Integration V 0.2.2
I have a Sungrow Inverter SH5.0RS and a battery SBR096
I have been trying this for months and is my biggest project hurdle.
I now get this error. Apart from the time being wrong, does anyone know what the issue might be. I have search google but find nothing similar.
Any ideas would really be appreciated.
> cli
> node build/src/index.js
2025-03-27 06:53:35 info: Connected to MQTT broker
2025-03-27 06:53:48 info: Fetched i18n properties.
2025-03-27 06:53:51 error: Websocket error: Unexpected server response: 400 {
stack: 'Error: Unexpected server response: 400\n' +
' at ClientRequest.<anonymous> (/usr/src/app/node_modules/ws/lib/websocket.js:912:7)\n' +
' at ClientRequest.emit (node:events:519:28)\n' +
' at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:698:27)\n' +
' at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)\n' +
' at TLSSocket.socketOnData (node:_http_client:540:22)\n' +
' at TLSSocket.emit (node:events:519:28)\n' +
' at addChunk (node:internal/streams/readable:559:12)\n' +
' at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n' +
' at Readable.push (node:internal/streams/readable:390:5)\n' +
' at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)',
[Symbol(level)]: 'error',
[Symbol(splat)]: [
Error: Unexpected server response: 400
at ClientRequest.<anonymous> (/usr/src/app/node_modules/ws/lib/websocket.js:912:7)
at ClientRequest.emit (node:events:519:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:698:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
at TLSSocket.socketOnData (node:_http_client:540:22)
at TLSSocket.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)
]
}
I tried turning off the SSL and rebuild. So now I get a different error on restart
> cli
> node build/src/index.js
2025-03-27 07:56:30 info: Connected to MQTT broker
2025-03-27 07:56:39 info: Fetched i18n properties.
2025-03-27 07:56:40 info: Connected to a older Winet-S device
2025-03-27 07:56:40 info: Connected to Winet, logging in
2025-03-27 07:56:40 error: Invalid login message: {
data: {
result_code: 102,
result_msg: 'I18N_COMMON_ROM_UPDATE_ERROR2',
result_data: { service: 'login' }
},
[Symbol(level)]: 'error',
[Symbol(splat)]: [ { data: [Object] } ]
}
/usr/src/app/build/src/winetHandler.js:400
this.currentDevice = this.devices[0].dev_id;
^
TypeError: Cannot read properties of undefined (reading 'dev_id')
at winetHandler.scanDevices (/usr/src/app/build/src/winetHandler.js:400:50)
at Timeout._onTimeout (/usr/src/app/build/src/winetHandler.js:121:22)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)
Node.js v20.15.1
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
Had the Solar guy update the firmware as that seemed to be the earlier issue.
Now I get a error. Paswords etc have not changed.
Any ideas?
> node build/src/index.js
2025-03-28 02:04:55 info: Connected to MQTT broker
2025-03-28 02:04:56 info: Fetched i18n properties.
2025-03-28 02:04:57 info: Connected to a Winet-S2 device with newer firmware
2025-03-28 02:04:57 info: Connected to Winet, logging in
2025-03-28 02:04:57 error: Invalid login message: {
data: {
result_code: 114,
result_msg: 'I18N_COMMON_USR_ACCOUNT_LOCK',
result_data: { service: 'login', errorcnt: 0, unlocktime: 1 }
},
[Symbol(level)]: 'error',
[Symbol(splat)]: [ { data: [Object] } ]
}
/usr/src/app/build/src/winetHandler.js:400
this.currentDevice = this.devices[0].dev_id;
^
TypeError: Cannot read properties of undefined (reading 'dev_id')
at winetHandler.scanDevices (/usr/src/app/build/src/winetHandler.js:400:50)
at Timeout._onTimeout (/usr/src/app/build/src/winetHandler.js:121:22)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)
Node.js v20.15.1
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped