# Charging openHAB with OCPP

**URL:** <https://community.openhab.org/t/charging-openhab-with-ocpp/135114>\
**Category:** Bindings\
**Tags:** evcs, ocpp\
**Created:** [April 14, 2022, 11:01am UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114 "2022-04-14T11:01:18Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![PRosenb](https://community.openhab.org/user_avatar/community.openhab.org/prosenb/32/89957_2.png) [@PRosenb](https://community.openhab.org/u/PRosenb)\
**Post date:** [December 4, 2025, 5:58am UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/101 "2025-12-04T05:58:16Z")

</div>

Hi @splatch , thanks for the link. Installed it and connected my Ocular IQ charger. On charger side logging shows an established connection. But I don’t see anything happening on openHAB side and the the charger thing is stuck in `initializing`. I tried different loggers but don’t see any logs.

Which logger can I enable to see what’s happening?

I configured the Things as follows. Is that correct?

```javascript
Bridge co7io-ocpp:server:ocppserver "OCPP Server" [port="9113", heartbeat="10"]
Thing co7io-ocpp:charger:OcularEvCharger "OCPP Charger" (co7io-ocpp:server:ocppserver) [serialNumber="xxx"]
Thing co7io-ocpp:connector:OcularConnector "OCPP Connector" (co7io-ocpp:charger:OcularEvCharger ) [connectorId="1"]

```

Thanks for some hints, cheers.

---

<div class="post-metadata">

**Author:** ![splatch](https://community.openhab.org/user_avatar/community.openhab.org/splatch/32/33925_2.png) [@splatch](https://community.openhab.org/u/splatch)\
**Post date:** [December 7, 2025, 9:47am UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/102 "2025-12-07T09:47:03Z")

</div>

Set debug log for `org.connectorio.addons.binding.ocpp` and `eu.chargetime.ocpp`. These two will show you binding and library level actions. The chargetime.ocpp is not very chatty. Some charges have different behavior and I am not really clear is there a one way to fetch their state which works for all of them.

---

<div class="post-metadata">

**Author:** ![PRosenb](https://community.openhab.org/user_avatar/community.openhab.org/prosenb/32/89957_2.png) [@PRosenb](https://community.openhab.org/u/PRosenb)\
**Post date:** [December 8, 2025, 11:25am UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/103 "2025-12-08T11:25:19Z")

</div>

Thank you @splatch. Is the Thing configuration correct?

The log is as follows.

```bash
22:11:37.063[DEBUG] [eu.chargetime.ocpp.WebSocketListener] - On connection open (resource descriptor: /xxxxxxxxxx)
22:11:37.069[INFO] [org.connectorio.addons.binding.ocpp.internal.server.OcppServer] - New OCPP connection yyyyyyyyyyyyy with identifier /xxxxxxxxxx from address /192.168.x.xx:46646.
22:11:37.074[DEBUG] [eu.chargetime.ocpp.Server] - Session created: yyyyyyyyyyyyy
22:11:55.674[DEBUG] [eu.chargetime.ocpp.WebSocketListener] - On connection close (resource descriptor: /xxxxxxxxxx, code: 1006, reason: Connection reset, remote: false)
22:11:55.677[INFO] [org.connectorio.addons.binding.ocpp.internal.server.OcppServer] - Terminated connection zzzzzzzzzzzzzzz.

```

---

<div class="post-metadata">

**Author:** ![splatch](https://community.openhab.org/user_avatar/community.openhab.org/splatch/32/33925_2.png) [@splatch](https://community.openhab.org/u/splatch)\
**Post date:** [December 8, 2025, 5:29pm UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/104 "2025-12-08T17:29:25Z")

</div>

Looks like a handshake issue - fourth line indicates that charger closed connection. Have you tried to connect charger to any other server before?

---

<div class="post-metadata">

**Author:** ![Nodiaque](https://community.openhab.org/letter_avatar_proxy/v4/letter/n/a87d85/32.png) [@Nodiaque](https://community.openhab.org/u/Nodiaque)\
**Post date:** [January 6, 2026, 2:35pm UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/105 "2026-01-06T14:35:26Z")

</div>

I’m getting an error when trying to follow that link.

---

<div class="post-metadata">

**Author:** ![splatch](https://community.openhab.org/user_avatar/community.openhab.org/splatch/32/33925_2.png) [@splatch](https://community.openhab.org/u/splatch)\
**Post date:** [January 6, 2026, 5:21pm UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/106 "2026-01-06T17:21:32Z")

</div>

I’ve updated link, it got some extra characters. KAR files are still there.

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/d/c/dc9a1465fcba1082335b94d310c98845dca69330.png)

---

<div class="post-metadata">

**Author:** ![PRosenb](https://community.openhab.org/user_avatar/community.openhab.org/prosenb/32/89957_2.png) [@PRosenb](https://community.openhab.org/u/PRosenb)\
**Post date:** [March 1, 2026, 10:27am UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/107 "2026-03-01T10:27:01Z")

</div>

I found the issue which prevented the charger from connecting and created a [PR](https://github.com/ConnectorIO/connectorio-addons/pull/122).

Thanks for having a look, cheers.

---

<div class="post-metadata">

**Author:** ![splatch](https://community.openhab.org/user_avatar/community.openhab.org/splatch/32/33925_2.png) [@splatch](https://community.openhab.org/u/splatch)\
**Post date:** [March 1, 2026, 11:33am UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/108 "2026-03-01T11:33:54Z")

</div>

Thanks for changes, I approved a build over github infrastructure, so there will be pr-122 build compatible with OH 5.0.x. Would be great if someone else could also test these changes with charger of different brand than yours. Can you give it a try @chris @jlikonen?

---

<div class="post-metadata">

**Author:** ![jlikonen](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/ee59a6/32.png) [@jlikonen](https://community.openhab.org/u/jlikonen)\
**Post date:** [March 1, 2026, 12:10pm UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/109 "2026-03-01T12:10:38Z")

</div>

Is this version compatible with 5.1.3 and where is the latest kar-file?

---

<div class="post-metadata">

**Author:** ![Nodiaque](https://community.openhab.org/letter_avatar_proxy/v4/letter/n/a87d85/32.png) [@Nodiaque](https://community.openhab.org/u/Nodiaque)\
**Post date:** [March 1, 2026, 1:50pm UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/110 "2026-03-01T13:50:16Z")

</div>

I’ll try eventually with mine. It’s a autel charger and I know they are normally different then other charger.

---

<div class="post-metadata">

**Author:** ![BrettLHolmes](https://community.openhab.org/user_avatar/community.openhab.org/brettlholmes/32/105286_2.png) [@BrettLHolmes](https://community.openhab.org/u/BrettLHolmes)\
**Post date:** [April 8, 2026, 3:19pm UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/111 "2026-04-08T15:19:06Z")

</div>

Hi @splatch

I wanted to followup to see if this binding was still available (openHAB 5.1.3) I followed the links above and on the repoisitory.connectorio.cloud “[ConnectorIO Binary Artifacts Repository](https://repository.connectorio.cloud/#browse/browse:co7io-public-snapshots:org%2Fconnectorio%2Faddons%2Forg.connectorio.addons.kar.ocpp%E2%80%9D) it says resource not found so I could not look for a 5.x release

Are you planning to put this as part of the Community bindings on the openHAB community page so that more people can find it. [Bundles - openHAB Community](https://community.openhab.org/c/marketplace/bundles/73)

If you are not continuing with it if you could let me know as well please so i can look fore another approach

thanks a million

Brett

---

<div class="post-metadata">

**Author:** ![splatch](https://community.openhab.org/user_avatar/community.openhab.org/splatch/32/33925_2.png) [@splatch](https://community.openhab.org/u/splatch)\
**Post date:** [April 8, 2026, 3:36pm UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/112 "2026-04-08T15:36:50Z")

</div>

Indeed, links have changed due to phasing out previous repository manager, please use this link: [ConnectorIO Binary Artifacts Repository](https://repository.connectorio.cloud/#/co7io-public-snapshots/org/connectorio/addons/org.connectorio.addons.kar.ocpp).

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/d/a/da4ec931bab151dd794bd4aabf374e1402cc145d.png)

I gonna update links in first post, so they will point to valid artifacts. There is one more pull request from @PRosenb which I should include in next successful deployment (infrastructure updates ongoing).

> [@BrettLHolmes](#):
>
> Are you planning to put this as part of the Community bindings on the openHAB community page so that more people can find it. [Bundles - openHAB Community](https://community.openhab.org/c/marketplace/bundles/73)

Sadly I have no time to maintain posts and links (as you can see).. I know it would help spread things around, but current marketplace form does not make it too easy.

---

<div class="post-metadata">

**Author:** ![BrettLHolmes](https://community.openhab.org/user_avatar/community.openhab.org/brettlholmes/32/105286_2.png) [@BrettLHolmes](https://community.openhab.org/u/BrettLHolmes)\
**Post date:** [April 8, 2026, 3:39pm UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/113 "2026-04-08T15:39:03Z")

</div>

Thanks a million for taking the time to reply - greatly appreciated

Will provide feedback - have a Zappi myenergy WallBox

Take care

---

<div class="post-metadata">

**Author:** ![Sascha987](https://community.openhab.org/user_avatar/community.openhab.org/sascha987/32/117662_2.png) [@Sascha987](https://community.openhab.org/u/Sascha987)\
**Post date:** [May 11, 2026, 8:52am UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/114 "2026-05-11T08:52:50Z")

</div>

Dears,

could you share with me the parameters which I´ve to put into Huawei SCharger Wallbox to have succesfull connection to openhab?

_Authentication mode: Insecure transmission with basic authentication  
Connect to Business Platform: IP  
IP Address: the IP address of my server  
Path: ???  
Port: 8887  
Username: ???  
Password: ???_

Thank you so much for your help and support 🙂

---

<div class="post-metadata">

**Author:** ![splatch](https://community.openhab.org/user_avatar/community.openhab.org/splatch/32/33925_2.png) [@splatch](https://community.openhab.org/u/splatch)\
**Post date:** [May 13, 2026, 5:32am UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/115 "2026-05-13T05:32:46Z")

</div>

Hello, leave path empty or set it to /. Username and password can be empty.  
OCPP server is separate component and does not share authentication with OH.

---

<div class="post-metadata">

**Author:** ![Nodiaque](https://community.openhab.org/letter_avatar_proxy/v4/letter/n/a87d85/32.png) [@Nodiaque](https://community.openhab.org/u/Nodiaque)\
**Post date:** [May 13, 2026, 12:06pm UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/116 "2026-05-13T12:06:19Z")

</div>

Hello, I was wondering if Autel charger support was added or how to help to have it? I’ve tried many OCPP alternative and while the charger connect no problem, they are not able to start/stop a charge, configure the charger for autostart, etc. For now, only EVCC is working and while I do like the project, it require a token for Autel at 150$ so no thanks.

---

<div class="post-metadata">

**Author:** ![splatch](https://community.openhab.org/user_avatar/community.openhab.org/splatch/32/33925_2.png) [@splatch](https://community.openhab.org/u/splatch)\
**Post date:** [May 13, 2026, 7:45pm UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/117 "2026-05-13T19:45:04Z")

</div>

If evcc is using custom code for that probability that plain OCPP will be sufficient is low. With PR started by @PRosenb things started look better, as he was able to plug a real charger he owns. Still its a different brand.

---

<div class="post-metadata">

**Author:** ![PRosenb](https://community.openhab.org/user_avatar/community.openhab.org/prosenb/32/89957_2.png) [@PRosenb](https://community.openhab.org/u/PRosenb)\
**Post date:** [May 13, 2026, 9:45pm UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/118 "2026-05-13T21:45:38Z")

</div>

I’m currently short on time to fully refactor [PR #129](https://github.com/ConnectorIO/connectorio-addons/pull/129).

Would it make sense to mark the new `initialOcularEcoMode` custom property as **temporary/experimental** and merge the PR as-is? This would unblock other users who are waiting on the generic improvements (current limit and start/stop support), while we schedule a follow-up to properly separate out the custom property.

Happy to hear thoughts — open to other approaches too.

---

<div class="post-metadata">

**Author:** ![splatch](https://community.openhab.org/user_avatar/community.openhab.org/splatch/32/33925_2.png) [@splatch](https://community.openhab.org/u/splatch)\
**Post date:** [May 14, 2026, 3:39am UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/119 "2026-05-14T03:39:02Z")

</div>

I think it is good to go in current form. I will squash merge it today or tomorrow so people with other equipment can test.

---

<div class="post-metadata">

**Author:** ![PRosenb](https://community.openhab.org/user_avatar/community.openhab.org/prosenb/32/89957_2.png) [@PRosenb](https://community.openhab.org/u/PRosenb)\
**Post date:** [May 14, 2026, 10:01am UTC](https://community.openhab.org/t/charging-openhab-with-ocpp/135114/120 "2026-05-14T10:01:01Z")

</div>

Thank you Łukasz. I just added `[EXPERIMENTIAL]` to the property description so that we can move it easily if needed.

[Previous page](https://community.openhab.org/t/charging-openhab-with-ocpp/135114.md?page=5)

[Next page](https://community.openhab.org/t/charging-openhab-with-ocpp/135114.md?page=7)
