LembkeM / ioBroker.echarge_cpu2

ioBroker Adapter to control to your Hardy Barth eCharge WallBox
MIT License
0 stars 0 forks source link

support for cPH1 wallbox? #31

Open elmer0815 opened 9 months ago

elmer0815 commented 9 months ago

I tried this adapter with my cPH1 wallbox which also uses the eCB1 controller. I thought the web API is the same but unfortunately the adapter doesn't work.

Do you plan to support the cPH1 wallbox? Or do you have any ideas why it doesn't work in my environment?

I run iobroker in docker:

Plattform docker Betriebssystem linux Architektur x64 CPUs 4 Geschwindigkeit 3202 MHz Modell Intel(R) Core(TM) i5-7500T CPU @ 2.70GHz RAM 7.65 GB System-Betriebszeit 12 T. 22:21:12 Node.js v18.18.2

Thanks in advance!

elmer0815 commented 9 months ago

additional info: This is the error I get in iobroker:

[onReady]  error: Invalid URL, stack: TypeError [ERR_INVALID_URL]: Invalid URL     at new NodeError (node:internal/errors:405:5)    at new URL  (node:internal/url:637:13)    at new SaliaHttpService  (/opt/iobroker/node_modules/iobroker.echarge_cpu2/build/saliahttpservice.js:83:22)     at EchargeCpu2.onReady  (/opt/iobroker/node_modules/iobroker.echarge_cpu2/build/main.js:39:31)     at EchargeCpu2.emit (node:events:517:28)    at  EchargeCpu2._callReadyHandler  (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:9108:18)     at  /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:9087:26

edit: I looked at your source code and found out that the cpu2 wallbox has a different API than the cPH1 wallbox :-( The cpu2 uses the salia http server and the cPH1 uses the ecb1 smartmeter with its own API (documented here: http://apidoc.ecb1.de/) So I think its not easy to support both wallboxes :-/

LembkeM commented 7 months ago

Hi Elmer0815, this is a good idea. I will have a look how to implement it. Currently i'm very busy, so i hope i will have time in February or March.

Best Rgards

LembkeM commented 7 months ago

Hi Elmer, can you describe, what features should be implemented?