arteck / ioBroker.bydbatt

byd Battery get information from the BYD Battery Box solar batteries
MIT License
7 stars 3 forks source link

Problem #17

Closed NicolasHerzinger closed 6 months ago

NicolasHerzinger commented 1 year ago

Hallo,

ich bekomm den Adapter nicht zum laufen.

LOG: 2023-08-01 21:58:23.658 - info: host.VM-ioB-SRV-01 instance system.adapter.bydbatt.0 started with pid 46298 2023-08-01 21:58:27.218 - debug: bydbatt.0 (46298) Redis Objects: Use Redis connection: 127.0.0.1:6379 2023-08-01 21:58:27.440 - debug: bydbatt.0 (46298) Objects client ready ... initialize now 2023-08-01 21:58:27.455 - debug: bydbatt.0 (46298) Objects create System PubSub Client 2023-08-01 21:58:27.457 - debug: bydbatt.0 (46298) Objects create User PubSub Client 2023-08-01 21:58:27.907 - debug: bydbatt.0 (46298) Objects client initialize lua scripts 2023-08-01 21:58:27.919 - debug: bydbatt.0 (46298) Objects connected to redis: 127.0.0.1:6379 2023-08-01 21:58:27.925 - silly: bydbatt.0 (46298) redis psubscribe cfg.o.system.user. 2023-08-01 21:58:27.941 - silly: bydbatt.0 (46298) redis psubscribe cfg.o.enum. 2023-08-01 21:58:27.952 - silly: bydbatt.0 (46298) objectDB connected 2023-08-01 21:58:27.957 - debug: bydbatt.0 (46298) Redis States: Use Redis connection: 127.0.0.1:6379 2023-08-01 21:58:27.973 - debug: bydbatt.0 (46298) States create System PubSub Client 2023-08-01 21:58:27.976 - debug: bydbatt.0 (46298) States create User PubSub Client 2023-08-01 21:58:27.997 - debug: bydbatt.0 (46298) States connected to redis: 127.0.0.1:6379 2023-08-01 21:58:28.000 - silly: bydbatt.0 (46298) statesDB connected 2023-08-01 21:58:28.395 - info: bydbatt.0 (46298) starting. Version 1.0.8 in /opt/iobroker/node_modules/iobroker.bydbatt, node: v18.16.0, js-controller: 4.0.24 2023-08-01 21:58:28.496 - debug: bydbatt.0 (46298) psw BYDB-Box 2023-08-01 21:58:28.499 - debug: bydbatt.0 (46298) create state 2023-08-01 21:58:28.583 - silly: bydbatt.0 (46298) States system redis pmessage io.system.adapter.bydbatt.0.logLevel/io.system.adapter.bydbatt.0.logLevel:{"val":"silly","ack":true,"ts":1690927108504,"q":0,"from":"system.adapter.bydbatt.0","lc":1690927108504} 2023-08-01 21:58:35.255 - debug: bydbatt.0 (46298) get Information 2023-08-01 21:58:35.774 - error: bydbatt.0 (46298) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 2023-08-01 21:58:35.781 - error: bydbatt.0 (46298) unhandled promise rejection: Cannot read properties of undefined (reading '1') 2023-08-01 21:58:35.783 - error: bydbatt.0 (46298) TypeError: Cannot read properties of undefined (reading '1') at AxiosDigestAuth.request (/opt/iobroker/node_modules/@mhoc/axios-digest-auth/dist/index.js:28:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async bydbattControll.getDatenHome (/opt/iobroker/node_modules/iobroker.bydbatt/main.js:105:19) at async bydbattControll.getInfos (/opt/iobroker/node_modules/iobroker.bydbatt/main.js:78:27) at async bydbattControll.onReady (/opt/iobroker/node_modules/iobroker.bydbatt/main.js:52:9) 2023-08-01 21:58:35.788 - error: bydbatt.0 (46298) Cannot read properties of undefined (reading '1') 2023-08-01 21:58:35.828 - info: bydbatt.0 (46298) cleaned everything up... 2023-08-01 21:58:35.830 - info: bydbatt.0 (46298) terminating 2023-08-01 21:58:35.832 - warn: bydbatt.0 (46298) Terminated (UNCAUGHT_EXCEPTION): Without reason 2023-08-01 21:58:35.976 - info: admin.1 (346) <== Disconnect system.user.nicolas from ::ffff:192.168.111.251 admin 2023-08-01 21:58:36.477 - error: host.VM-ioB-SRV-01 instance system.adapter.bydbatt.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2023-08-01 21:58:36.478 - info: host.VM-ioB-SRV-01 Restart adapter system.adapter.bydbatt.0 because enabled 2023-08-01 21:58:37.952 - info: admin.1 (346) ==> Connected system.user.nicolas from ::ffff:192.168.111.251 2023-08-01 21:58:57.312 - info: host.VM-ioB-SRV-01 "system.adapter.bydbatt.0" disabled