Replies: 4 comments 2 replies
-
Somehow attempting to answer my own question, I had a look at https://assets.vector.com/cms/content/products/vcharm/docs/WhitePaper_Identification_of_ElectricVehicles_in_CSMS_via_OCPP.pdf And it seems that the EV is supposed to send its MAC that will be used to fill the IdToken OCPP field. So if we can retrieve it we could compare it with either a hardcoded list of EV MACs or a small SQL DB with those; thereby allowing a plug n charge experience with a bit of Jinja 2 templating ... in theory Would love to hear any experience on those IdToken. As I haven't bought the car charger yet (as I struggle deeply to find any reseller willing to comment on OCPP capabilities or even if a server can be configured on the OCPP compliant models they sell) - would anyone know if the IdToken field is returned with an EV identifier ? |
Beta Was this translation helpful? Give feedback.
-
Yes it seems a pity that enabling OCPP disables the plug n charge capability and we have to resort to workarounds such as constantly monitoring the charger status as mentioned elsewhere. In my case I envisage using HA to automate my charging for about 6 months of the year when solar power is sufficient. Here in New Zealand that is from mid September until April. During the other months it's much easier to disable OCPP and resort to the app, selecting charge current to max and setting a timer. Once I have managed to get my charger connected via OCPP I'm happy to inspect the packets coming from the charger and see if any vehicle ID is being passed. For now I'm stuck at first base unable to get my charger (Wallbox Pulsar Plus) communicating to HA. Marten has given me a suggestion so I'll follow that up and try to make sense of what is going on. It's good to hear your idea of making a list of authorised vehicles at a BnB. Makes a lot of sense for your particular use case. Throwing ideas around in a specialised forum like this is a great way to add value for all participants. It can spark ideas for others, and as time goes by, we will have a template for various different use cases which can be built on and adapted to suit pretty much anybody who wants to experiment with OCPP-compliant EV chargers and HA. Kind regards, Grant. |
Beta Was this translation helpful? Give feedback.
-
My Wallbox Pulsar Plus does not automatically start charging in OCPP mode. It will send a StatusNotification with status 'Preparing'. You then need to start the charging remotely, using a RemoteStartTransaction. This can be triggered manually (with the Charge_Control switch) or with an automation. The RemoteStartTransaction will trigger the charger to send a StartTransaction message, which contains the IdTag you mention. The Wallbox Pulsar sets it to the name of the charger, it does not contain any vehicle or RFID tag related information. Here's a log fragment that shows the relevant messages:
|
Beta Was this translation helpful? Give feedback.
-
@lbbrhzn - Thanks for posting the log fragment showing the sequence of messages. Taking the first 2 messages as an example, one of which is sent by HA to the charger and the following one which is the reply from the charger, I've tried to do a simulation in Weasel... Have I got everything correct there? |
Beta Was this translation helpful? Give feedback.
-
Dear all,
I will soon purchase an OCPP compliant car charger - and installed and am reviewing this add-on (connected to nothing yet). To be honest I feel selecting a car charger ahead of its integration to HA to be painful, as all resellers I talk to are all electricians and literally none have heard of OCPP, ModBus or even APIs ... but ok I keep talking to vendors of OCPP 1.6 certified car charger resellers and hope that one day someone will be able to answer my basic questions. I observe pretty well no OCPP 2.x chargers are available yet on the market (at least in Spain where I live)
In the meantime I have a question for this fine team. My wife runs a bed n breakfast - and I'd like to only grant access to (smart) EV charging only to approved cars. I understand that with OCPP 2.x this comes in directly built in as plug n charge. Is there a way to somehow achieve the same result with this HA OCPP add-on with an OCPP 1.6 capable charger? Ideally could I receive the id of a car that just plugged in, compare it to my list of approved vehicles and only then grant charging ? Ideally reading the car's VIN or any other mechanism ?
Thanks in advance! Karim.
Beta Was this translation helpful? Give feedback.
All reactions