evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.39k stars 619 forks source link

Add NrgKick 2nd Gen (new API Released) #14786

Closed Ahhpaddy closed 1 month ago

Ahhpaddy commented 2 months ago

Is your feature request related to a problem? Please describe.

should now possible to add.

wobu commented 2 months ago

i started an implementation, which is untested yet but i have a running NRGKick gen2 charger with an activated JSON api, so i could double check the used types, values and endpoints

Ahhpaddy commented 2 months ago

Hello I can test, I have 2 Nrgkick 's. But I don't know how to setup my evcc.yaml Can you maybe explain how to do that?

I'm on v0.128.2

wobu commented 2 months ago

Hi @Ahhpaddy ,

if u want to test the implementation, currently you need to compile the project locally with my feature branch, because my implementation hasn't been merged and released with official EVCC yet.

Also you need to have an activated JSON API in your nrgkicks.

WhatsApp Bild 2024-07-20 um 10 36 29_30471024

Configuration in Evcc.yaml would look like

chargers:
  - name: nrgkick-gen2
    type: template
    template: nrgkick-gen2
    host: <ip or host name of your nrgkick-gen2> 
Ahhpaddy commented 2 months ago

I already activated the API to get some values into Iobroker.

How can I compile locally?

Can you pls give me short Instructions?

Thank you

wobu commented 2 months ago

you have to check out my https://github.com/wobu/evcc/tree/feature/nrgkick-gen2-charger

then follow the instruction in CONTRIBUTING.md.

If you use Windows its gets bit complicated. I couldn't use a working Make installation for windows so i had to execute the build commandy manually.

this needs to be done once:

npm ci
go install github.com/dmarkham/enumer
go install go.uber.org/mock/mockgen

then for compiling evcc after every code change

npm run build
go build

then u will get an executable of evcc which u can run

JornHermans commented 1 month ago

I used this config template and it works perfect, using the nightly build!

chargers:
  - name: NRGKickG2
    type: template
    template: nrggen2
    host: 192.168.1.23

Change the host to you're own ip 😉