Implemented Set Charging Profile API #44
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
Hello! I am on a team that is working on setting up software simulated demos for the charging software EVerest. These demos showcase how EVerest interacts with different CSMSs, especially using the latest protocols. One of the CSMSs that we really enjoy using is MaEVe, but we noticed that there wasn't any support for setting charging profiles just yet. This was one feature that we wanted to use to demonstrate EVerest's capabilities at the CharIn Testival, which just passed a few days ago, so we decided to implement it ourselves.
Implementation
For our use case, all we wanted was an API endpoint that, when called, would send a charging profile to EVerest. We made the API call accessible via
POST /cs/{csId}/setchargingprofile
, and theChargingProfileType
object would be provided in the body of the call.Testing Done
To test this new feature out, I used one of the software simulations demos that was setup to showcase EVerest during CharIn, which can be found here. These demos are meant to be plug and play as long as you have
Docker
anddocker-compose
installed. I'll walk through the steps here on how to run the demos and observe thesetChargingProfile
API request working.everest-demo
repo and run this script to call the newsetChargingProfile
API.We would love to integrate these changes into
maeve-csms
for future use and availability for anyone else whom may need it. Please let me know any changes that may need to be made to integrate this, thank you!