NEWS
Konfiguration systeminfo Abfrage AC ELWA 2
-
Hallo,
ich möchte gerne die Daten meiner AC ELWA 2 per Systeminfo-Adapter abfragen.
Über die IP-Adresse der AC ELWA 2 mit angehängtem "/data.jsn" bekommt man eine Webseite mit einem JSON angezeigt.
Darin sind die Werte als Map (Key/Value) aufgelistetIch habe eine Instanz des Systeminfo-Adapters entsprechend konfiguriert, um das json abzufragen.
Aber irgend etwas stimmt noch nicht.
TypeError: Cannot read private member from an object whose class did not declare it
Anbei die Konfiguration der Instanz des Systeminfo-Adapters und das Log beim starten des Adapters.
Hat jemand einen Tipp, was ich wie ändern muss?
Danke und Gruß
Hartmut
-
Hallo,
ich habe den Loglevel auf 'debug' gestellt.
Jetzt kommt die MeldungTypeError [ERR_INVALID_ARG_VALUE]: The argument 'file' cannot be empty. Received ''
Was bedeutet das?
Danke und Gruß
Hartmut
-
Hier die Ausgabe des Befehls zum Thema Lösung für Fehler: TypeError [ERR_INVALID_ARG_VALUE]
hru@pinas:~ $ cd /opt/iobroker hru@pinas:/opt/iobroker $ npm list @iobroker/adapter-core iobroker.inst@3.0.0 /opt/iobroker ├─┬ iobroker.admin@6.13.16 │ ├── @iobroker/adapter-core@3.1.0 │ └─┬ @iobroker/socket-classes@1.5.0 │ └── @iobroker/adapter-core@3.1.0 deduped ├─┬ iobroker.backitup@2.11.0 │ └── @iobroker/adapter-core@3.1.0 deduped ├─┬ iobroker.discovery@4.4.0 │ └── @iobroker/adapter-core@3.1.0 deduped ├─┬ iobroker.influxdb@4.0.2 │ └── @iobroker/adapter-core@3.1.0 deduped ├─┬ iobroker.modbus@6.1.0 │ └── @iobroker/adapter-core@3.1.0 deduped └─┬ iobroker.systeminfo@1.1.0 └── @iobroker/adapter-core@3.1.0 deduped
Das bedeutet doch, dass ich von diesem Fehler nicht betroffen bin oder?
Vielen Dank vorab für Eure Hilfe.
Gruß Hartmut
-
Leider funktioniert die Abfrage des JSON der Webseite der AC ELWA 2 per systeminfo-Adapter immer noch nicht.
hier das Log2024-05-07 22:47:59.420 - info: host.pinas "system.adapter.systeminfo.0" enabled 2024-05-07 22:47:59.511 - info: host.pinas instance system.adapter.systeminfo.0 started with pid 5884 2024-05-07 22:48:01.163 - debug: systeminfo.0 (5884) Redis Objects: Use Redis connection: 127.0.0.1:9001 2024-05-07 22:48:01.194 - debug: systeminfo.0 (5884) Objects client ready ... initialize now 2024-05-07 22:48:01.196 - debug: systeminfo.0 (5884) Objects create System PubSub Client 2024-05-07 22:48:01.198 - debug: systeminfo.0 (5884) Objects create User PubSub Client 2024-05-07 22:48:01.220 - debug: systeminfo.0 (5884) Objects client initialize lua scripts 2024-05-07 22:48:01.229 - debug: systeminfo.0 (5884) Objects connected to redis: 127.0.0.1:9001 2024-05-07 22:48:01.246 - debug: systeminfo.0 (5884) Redis States: Use Redis connection: 127.0.0.1:9000 2024-05-07 22:48:01.254 - debug: systeminfo.0 (5884) States create System PubSub Client 2024-05-07 22:48:01.255 - debug: systeminfo.0 (5884) States create User PubSub Client 2024-05-07 22:48:01.267 - debug: systeminfo.0 (5884) States connected to redis: 127.0.0.1:9000 2024-05-07 22:48:01.371 - info: systeminfo.0 (5884) starting. Version 1.1.0 in /opt/iobroker/node_modules/iobroker.systeminfo, node: v18.20.2, js-controller: 5.0.19 2024-05-07 22:48:01.393 - debug: systeminfo.0 (5884) Adapter systeminfo.0 starting. 2024-05-07 22:48:01.396 - error: systeminfo.0 (5884) err from getObjectList: TypeError: Cannot read private member from an object whose class did not declare it 2024-05-07 22:48:01.397 - debug: systeminfo.0 (5884) systeminfo received no objects with config startup,items 2024-05-07 22:48:01.405 - info: systeminfo.0 (5884) Startup Systeminfo Adapter systeminfo.0: { startup: '', items: [ { name: 'AC ELWA 2', type: 'web', source: 'http://192.168.178.43/data.jsn', regexp: '[device,power_elwa2,power_solar,power_grid,temp1,date,loctime,unixtime,surplus,temp_ps]', conv: 'json', role: 'json', write: '', sched: '10s' } ]} 2024-05-07 22:48:01.408 - warn: systeminfo.0 (5884) Invalid item name in { name: 'AC ELWA 2', type: 'web', source: 'http://192.168.178.43/data.jsn', regexp: '[device,power_elwa2,power_solar,power_grid,temp1,date,loctime,unixtime,surplus,temp_ps]', conv: 'json', role: 'json', write: '', sched: '10s'} 2024-05-07 22:48:01.410 - debug: systeminfo.0 (5884) TypeError [ERR_INVALID_ARG_VALUE]: The argument 'file' cannot be empty. Received '' 2024-05-07 22:48:01.433 - warn: systeminfo.0 (5884) Unhandled error in main: TypeError: Cannot read private member from an object whose class did not declare it 2024-05-07 22:48:53.604 - info: admin.0 (5831) ==> Connected system.user.admin from ::ffff:192.168.178.40 2024-05-07 22:49:12.418 - info: admin.0 (5831) <== Disconnect system.user.admin from ::ffff:192.168.178.40 2024-05-07 22:49:39.515 - info: admin.0 (5831) ==> Connected system.user.admin from ::ffff:192.168.178.40 2024-05-07 22:50:03.629 - info: admin.0 (5831) <== Disconnect system.user.admin from ::ffff:192.168.178.40
Hat jemand einen Tipp für mich?
Danke und Gruß
Hartmut
-
hier noch die Konfiguration des systeminfo-Adapters
{ "startup": "", "items": [ { "name": "AC ELWA 2", "type": "web", "source": "http://192.168.178.43/data.jsn", "regexp": "[device,power_elwa2,power_solar,power_grid,temp1,date,loctime,unixtime,surplus,temp_ps]", "conv": "json", "role": "json", "write": "", "sched": "10s" } ], "converted": "Tue May 07 2024 22:54:18 GMT+0200 (Mitteleuropäische Sommerzeit)" }
Danke vorab für jeden Tipp.
-
Hallo zusammen,
ich habe den Namen des Eintrages geändert (so dass er keine Leerzeichen mehr enthält).
Jetzt kommen anscheinend Werte, aber irgend etwas klemmt immer noch:Hier das Log
2024-05-09 02:13:32.353 - info: host.pinas Delete log file iobroker.2024-05-01.log.gz 2024-05-09 14:03:44.672 - info: admin.0 (5831) ==> Connected system.user.admin from ::ffff:192.168.178.40 2024-05-09 14:05:26.829 - info: admin.0 (5831) ==> Connected system.user.admin from ::ffff:192.168.178.40 2024-05-09 14:12:42.789 - info: admin.0 (5831) <== Disconnect system.user.admin from ::ffff:192.168.178.40 2024-05-09 14:12:45.976 - info: host.pinas "system.adapter.systeminfo.0" enabled 2024-05-09 14:12:46.070 - info: host.pinas instance system.adapter.systeminfo.0 started with pid 30858 2024-05-09 14:12:47.595 - debug: systeminfo.0 (30858) Redis Objects: Use Redis connection: 127.0.0.1:9001 2024-05-09 14:12:47.626 - debug: systeminfo.0 (30858) Objects client ready ... initialize now 2024-05-09 14:12:47.629 - debug: systeminfo.0 (30858) Objects create System PubSub Client 2024-05-09 14:12:47.631 - debug: systeminfo.0 (30858) Objects create User PubSub Client 2024-05-09 14:12:47.651 - debug: systeminfo.0 (30858) Objects client initialize lua scripts 2024-05-09 14:12:47.661 - debug: systeminfo.0 (30858) Objects connected to redis: 127.0.0.1:9001 2024-05-09 14:12:47.678 - debug: systeminfo.0 (30858) Redis States: Use Redis connection: 127.0.0.1:9000 2024-05-09 14:12:47.686 - debug: systeminfo.0 (30858) States create System PubSub Client 2024-05-09 14:12:47.687 - debug: systeminfo.0 (30858) States create User PubSub Client 2024-05-09 14:12:47.699 - debug: systeminfo.0 (30858) States connected to redis: 127.0.0.1:9000 2024-05-09 14:12:47.800 - info: systeminfo.0 (30858) starting. Version 1.1.0 in /opt/iobroker/node_modules/iobroker.systeminfo, node: v18.20.2, js-controller: 5.0.19 2024-05-09 14:12:47.822 - debug: systeminfo.0 (30858) Adapter systeminfo.0 starting. 2024-05-09 14:12:47.825 - error: systeminfo.0 (30858) err from getObjectList: TypeError: Cannot read private member from an object whose class did not declare it 2024-05-09 14:12:47.826 - debug: systeminfo.0 (30858) systeminfo received no objects with config startup,items 2024-05-09 14:12:47.835 - info: systeminfo.0 (30858) Startup Systeminfo Adapter systeminfo.0: { startup: '', items: [ { name: 'AC_ELWA_2', type: 'web', source: 'http://192.168.178.43/data.jsn', regexp: '[device,power_elwa2,power_solar,power_grid,temp1,date,loctime,unixtime,surplus,temp_ps]', conv: 'json', role: 'json', write: '', sched: '10s' } ]} 2024-05-09 14:12:47.839 - debug: systeminfo.0 (30858) TypeError [ERR_INVALID_ARG_VALUE]: The argument 'file' cannot be empty. Received '' 2024-05-09 14:12:47.920 - debug: systeminfo.0 (30858) AC_ELWA_2 received { device: 'AC ELWA 2', fwversion: 'e0000901', psversion: 'ep105', coversion: 'ec103', fsetup: 0, p1_s: 240, p1_v: '0000500', p2_s: 240, p2_v: '0000901', p_co_s: 240, p_co_v: 'ec103', p_ps_s: 240, p_ps_v: 'ep105', power_system: null, screen_mode_flag: 3, power_elwa2: 0, power_solar: 0, power_grid: 0, power1_solar: 0, power1_grid: 0, power2_solar: 0, power2_grid: 0, power3_solar: 0, power3_grid: 0, rel1_out: 0, rel_selv: 0, temp1: 751, temp2: 0, boostactive: 0, legboostnext: 'null', date: '09.05.24', loctime: '14:12:47', unixtime: 1715256767, uptime: 362, ctrlstate: 'Conn. to Adj.Modbus. P=-9606', blockactive: 0, meter1_id: null, meter1_ip: 'null', meter2_id: null, meter2_ip: 'null', meter3_id: null, meter3_ip: 'null', meter4_id: null, meter4_ip: 'null', meter5_id: null, meter5_ip: 'null', meter6_id: null, meter6_ip: 'null', meter_ss: null, meter_ssid: 'null', surplus: 9606, m0sum: 9606, m0l1: null, m0l2: null, m0l3: null, m0bat: null, m1sum: null, m1l1: null, m1l2: null, m1l3: null, m1devstate: null, m2sum: null, m2l1: null, m2l2: null, m2l3: null, m2soc: null, m2state: null, m2devstate: null, m3sum: null, m3l1: null, m3l2: null, m3l3: null, m3soc: null, m3devstate: null, m4sum: null, m4l1: null, m4l2: null, m4l3: null, m4devstate: null, ecarstate: 'null', ecarboostctr: null, mss2: 'null', mss3: 'null', mss4: 'null', mss5: 'null', mss6: 'null', mss7: 'null', mss8: 'null', mss9: 'null', mss10: 'null', mss11: 'null', volt_mains: 234, volt_aux: 5, freq: 50081, temp_ps: 531, fan_speed: 22, ps_state: 0, ctrl_errors: 0, warnings: 0, fwversionlatest: 'e0000901', coversionlatest: 'ec103', psversionlatest: 'ep106', upd_state: 0, ps_upd_state: 1, co_upd_state: 0, cur_eth_mode: 0, wifi_signal: 0, wifi_list: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object] ], cur_ip: '192.168.178.43', cur_sn: '255.255.255.0', cur_gw: '192.168.178.1', cur_dns: '192.168.178.1', cloudstate: 4, debug_ip: '0.0.0.0'} 2024-05-09 14:12:47.929 - debug: systeminfo.0 (30858) MS TypeError: this._extendObject is not a function at MyAdapter.extendObject (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:2065:21) at /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js:431:96 at new Promise () at MyAdapter.extendObject (/opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js:430:20) at MyAdapter.makeState (/opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js:667:21) at setItem (/opt/iobroker/node_modules/iobroker.systeminfo/systeminfo.js:467:14) at /opt/iobroker/node_modules/iobroker.systeminfo/systeminfo.js:594:58 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 2024-05-09 14:12:47.933 - warn: systeminfo.0 (30858) Unhandled error in main: TypeError: Cannot read private member from an object whose class did not declare it 2024-05-09 14:14:54.895 - info: host.pinas "system.adapter.systeminfo.0" disabled 2024-05-09 14:14:54.896 - info: host.pinas stopInstance system.adapter.systeminfo.0 (force=false, process=true) 2024-05-09 14:14:54.903 - info: systeminfo.0 (30858) Got terminate signal TERMINATE_YOURSELF 2024-05-09 14:14:54.905 - debug: systeminfo.0 (30858) Adapter disconnected and stopped with dostop(false) and callback(true) 2024-05-09 14:14:54.907 - info: systeminfo.0 (30858) terminating 2024-05-09 14:14:54.908 - info: systeminfo.0 (30858) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason 2024-05-09 14:14:54.944 - info: host.pinas stopInstance system.adapter.systeminfo.0 send kill signal 2024-05-09 14:14:55.407 - info: systeminfo.0 (30858) terminating 2024-05-09 14:14:55.456 - info: host.pinas instance system.adapter.systeminfo.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
Und hier die Konfiguration:
{ "startup": "", "items": [ { "name": "AC_ELWA_2", "type": "web", "source": "http://192.168.178.43/data.jsn", "regexp": "[device,power_elwa2,power_solar,power_grid,temp1,date,loctime,unixtime,surplus,temp_ps]", "conv": "json", "role": "json", "write": "", "sched": "10s" } ], "converted": "Thu May 09 2024 14:18:57 GMT+0200 (Mitteleuropäische Sommerzeit)" }
Kann mir bitte jemand helfen, das Auslesen des JSON hinzubekommen?
Danke und Gruß
Hartmut