Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new example - charging speed modification #64

Open
EVhonza opened this issue Jul 27, 2023 · 7 comments
Open

new example - charging speed modification #64

EVhonza opened this issue Jul 27, 2023 · 7 comments

Comments

@EVhonza
Copy link

EVhonza commented Jul 27, 2023

Hello,
your code and examples are great. I was able to configure and remotely start or stop charging of my car using Node-red and your plugin. My PV plat currently also communicate with Node red. My final intention is to store excess PV energy inside EV battery. The excess energy varies in time, so I need to pause charging or modify charging current few times per hour.

... Such functionality should be possible, somehow, as:
"...the back office can send a charging profile or kW limit to the charging station via OCPP 1.6. More precisely, OCPP 1.6 gives you the possibility to send either a single limit or a time series of data (=charging profile)." ...source

I tryied myself a lot of various code variants, but I was not sucessfull. My unprofessional OCPP 1.6j code was refused by charger to modify charging speed limit. No answer. Maybe whole idea, code failiure or some other problem, I do not know...

The following code should change the charger current to 7A.
{ "connectorId": 1, "csChargingProfiles": [ { "chargingProfileId": 1, "chargingProfilePurpose": "TxProfile", "chargingProfileKind": "Absolute", "chargingSchedule": { "duration": 0, "startSchedule": "2023-07-13T10:00:00Z", "chargingRateUnit": "A", "chargingSchedulePeriod": [ { "startPeriod": 0, "limit": 7 } ] } } ] }

Please could you create for people like me a new, very basic but working example for the ability to change the charging speed / energy consumption of an EV? I have no idea, as if some ChargingProfiles defining is necessary. Is there a simplest way, for such case?
Thank you very much. Jan

@juliencarnot
Copy link

Hi, I'm looking forward to install a charge point that would support ocpp in order to throttle my charge current depending on the solar production. Did you manage to get further on this attempt?

@EVhonza
Copy link
Author

EVhonza commented Sep 12, 2023

No, I stuck on that. The command for to set a charging power/profile should be not correct - I was not able to change the charging current.

Basically all skilled PV+chargepoint "professional" technicians/installers tells you, there must be two "100% compatible" boxes, anyway the system not working. There is also a good, fast and simple way - to use analog power limitation using current sensors (on house main power imput) for your chargepoint. As soon as you have two chargepoints and you intent to prioritize some of them as of some rules, that is not trivial solution for that way.
By OCPP way you are free to programm it as you need, but my way to bring it into life is not working for me. I am awaiting help of the OCPP plugin author.

I will be happy to pay some OCPP skilled programmer to work for me and that idea. I am able to sucesfully regulate my charging power using manual regulation. Using OCPP there are milestones I need to overcome. OCPP is currently not my big friend. As I will have a few time for future development, I can ask by the OCPP authors (https://www.openchargealliance.org/) for help. Currenly I am out of free time for that.

@Nobby0815
Copy link

To change the charging current I'm using the following data
{ "command": "SetChargingProfile", "data":{ "connectorId": 0, "csChargingProfiles": {"chargingProfileId": 1, "stackLevel": 0, "chargingProfilePurpose": "TxDefaultProfile", "chargingProfileKind": "Relative", "chargingSchedule": { "chargingRateUnit": "A", "chargingSchedulePeriod": [ { "startPeriod": 0, "limit": 7, "numberPhases": 1 } ] } } } }

I just have one connector on my wallbox, this is why I'm using default connectorid 0. I understand profile kind "relative" is relative to transaction start (so whenever you start charging your car). I wanted to avoid the hassle of dynamically creating correct time references. For simplicity I just added a hard-coded limit of 7A to the statement above, but in reality this limit is calculated in my nodered based on the excess PV. You might as well just add a numeric slider on a dashboard and make the limit change based on changes coming from the slider.

@lwefq
Copy link

lwefq commented May 13, 2024

Hi, may I know how you managed to remotely start and stop your EV charger? I'm currently having troubles to configure that on Node-red.

@Nobby0815
Copy link

Nobby0815 commented May 13, 2024

Hi, I worked off of example1.json from github.
The stop transaction node needs to use the transactionId created by Start transaction node. See below minimalistic sample (no guarantee this will work as I haven't tested this sample specifically, as I don't want to risk my productive environment).

start-stop.json

@lwefq
Copy link

lwefq commented May 14, 2024

Hi, the sample doesn't work when I try to import it over. I'm rather new to OCPP and Node-red implementation ... may I know if there is any way to chat with you on this too?

@Nobby0815
Copy link

Corrected sample code and validated it now loads without issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants