no supporter feture fork of evcc.io
Find a file
Timo Reimann 9846275912
Add possibility to pass sqlite flag using Home Assistant Addon config.json (#4884)
* Add possibility to pass sqlite flag using
Home Assistant Addon config.json

* Update CONFIG initialisation, as the current grep-cut-sed
does not support more than one entry inside options.json
update to pure regex grep

* Fix updated CONFIG initialisation

* Swapped if-else-Statement as suggested by @Hofyyy

Co-authored-by: Reimann, Timo <timo.reimann@eventim.de>
2022-10-21 19:43:21 +02:00
.github Revert "EEbus: simplify build" 2022-10-21 08:29:40 +02:00
.storybook Visualise Vehicle SoC Limit (#4245) 2022-09-02 14:21:40 +02:00
api Vehicle: let capacity accept float values (#4875) 2022-10-19 18:02:55 +02:00
assets Sessions: translate csv column names (#4761) 2022-10-13 12:58:00 +02:00
charger Ocpp: set default idtag 2022-10-19 08:53:06 +02:00
cmd Vehicle: let capacity accept float values (#4875) 2022-10-19 18:02:55 +02:00
core Vehicle: let capacity accept float values (#4875) 2022-10-19 18:02:55 +02:00
detect Require Go 1.18 and use generics (#2116) 2022-04-02 12:47:26 +02:00
dist Sessions: translate csv column names (#4761) 2022-10-13 12:58:00 +02:00
docker/bin Add possibility to pass sqlite flag using Home Assistant Addon config.json (#4884) 2022-10-21 19:43:21 +02:00
docs updated screenshots 2022-08-19 17:25:58 +02:00
hems Replace machine-id errors by configuration hint (#4591) 2022-09-26 23:18:08 +02:00
meter Templates: simplify rendering of instances 2022-09-25 12:05:26 +02:00
mock Vehicle: let capacity accept float values (#4875) 2022-10-19 18:02:55 +02:00
packaging Automate Hassio releases (#4461) 2022-09-16 13:25:20 +02:00
patch Add support for Elli chargers (#4207) 2022-09-30 10:52:17 +02:00
provider Calc: fix config validation 2022-09-18 19:41:17 +02:00
push Push: add script plugin (#4353) 2022-09-09 14:28:40 +02:00
server Mqtt: support settting guest vehicle by using negative value 2022-10-17 10:13:44 +02:00
tariff Ersparnisanzeige (#2105) 2022-01-02 22:58:13 +01:00
templates Huawei: handle NaN battery power (#4886) 2022-10-21 16:49:02 +02:00
util Extend decoding of int NaN values to include MaxInt (#4885) 2022-10-21 16:48:33 +02:00
vehicle Vehicle: let capacity accept float values (#4875) 2022-10-19 18:02:55 +02:00
.dockerignore chore: ignore zipped images 2022-10-17 20:11:28 +02:00
.editorconfig Revert undesired markdown changes 2021-02-24 11:53:00 +01:00
.eslintrc.js Fix: small UI improvements; formatting consistancy, typo, npm deps (#3763) 2022-07-03 16:03:15 +02:00
.gitignore chore: ignore zipped images 2022-10-17 20:11:28 +02:00
.golangci.yml Yaml: apply prettier (#3023) 2022-03-29 15:54:02 +02:00
.goreleaser-nightly.yml Add session log (#4162) 2022-10-05 13:12:24 +02:00
.goreleaser.yml Add session log (#4162) 2022-10-05 13:12:24 +02:00
.prettierrc.js Refactor UI into single file components (#491) 2020-12-02 08:29:54 +01:00
Dockerfile Docker: cache modules when Makefile is updated 2022-10-17 20:00:43 +02:00
evcc.dist.yaml chore: better log defaults 2022-10-14 15:46:30 +02:00
go.mod chore: upgrade libraries 2022-10-20 15:59:02 +02:00
go.sum chore: upgrade libraries 2022-10-20 15:59:02 +02:00
icon.png Implement basic hardware detection (#435) 2020-11-21 17:13:59 +01:00
jest.config.js Visualisation of Site Energy Flow (#1148) 2021-08-04 14:53:51 +02:00
LICENSE Update license 2021-01-25 17:27:08 +01:00
main.go chore: apply asn1 patch to GOROOT (#4694) 2022-10-02 17:51:22 +02:00
Makefile Revert "EEbus: simplify build" 2022-10-21 08:29:40 +02:00
package-lock.json Lithuanian translation update (#4764) 2022-10-09 10:55:16 +02:00
package.json Change translations from js to toml (#4755) 2022-10-08 19:10:23 +02:00
postcss.config.js UI: Add Light- and Dark-Mode (#3720) 2022-06-27 16:18:58 +02:00
README.md chore: add Elli 2022-10-18 13:54:12 +02:00
schema.json Remove loadpoint vehicles, min/target soc 2022-09-17 11:03:04 +02:00
tools.go chore: upgrade unmaintained alvaroles/enumer (#4092) 2022-08-10 17:30:36 +02:00
vite.config.js Change translations from js to toml (#4755) 2022-10-08 19:10:23 +02:00

evcc 🚘☀️

Build Status Code Quality Open in Visual Studio Code OSS hosting by cloudsmith Latest Version

evcc is an extensible EV Charge Controller with PV integration implemented in Go. Featured in PV magazine.

Screenshot

Features

  • simple and clean user interface
  • wide range of supported chargers:
    • ABL eMH1, Alfen (Eve), Bender (CC612/613), cFos (PowerBrain), Daheimladen, Ebee (Wallbox), Ensto (Chago Wallbox), EVSEWifi/ smartWB, Garo (GLB, GLB+, LS4), go-eCharger, HardyBarth (eCB1, cPH1, cPH2), Heidelberg (Energy Control), Innogy (eBox), Juice (Charger Me), KEBA/BMW, Menneckes (Amedio, Amtron Premium/Xtra, Amtron ChargeConrol), NRGkick, openWB (includes Pro), Optec (Mobility One), PC Electric (includes Garo), TechniSat (Technivolt), Tinkerforge Warp Charger, Ubitricity (Heinz), Vestel, Wallbe, Webasto (Live), Mobile Charger Connect
    • experimental EEBus support (Elli, PMCC)
    • experimental OCPP support
    • Build-your-own: Phoenix (includes ESL Walli), EVSE DIN
    • Smart-Home outlets: FritzDECT, Shelly, Tasmota, TP-Link
  • wide range of supported meters for grid, pv, battery and charger:
    • ModBus: Eastron SDM, MPM3PM, ORNO WE, SBC ALE3 and many more, see https://github.com/volkszaehler/mbmd#supported-devices for a complete list
    • Integrated systems: SMA Sunny Home Manager and Energy Meter, KOSTAL Smart Energy Meter (KSEM, EMxx)
    • Sunspec-compatible inverter or home battery devices: Fronius, SMA, SolarEdge, KOSTAL, STECA, E3DC, ...
    • and various others: Discovergy, Tesla PowerWall, LG ESS HOME, OpenEMS (FENECON)
  • vehicle integration (state of charge, remote charge, battery and preconditioning status):
    • Audi, BMW, Citroën, Dacia, Fiat, Ford, Hyundai, Jaguar, Kia, Landrover, Mercedes, Mini, Nissan, Opel, Peugeot, Porsche, Renault, Seat, Smart, Skoda, Tesla, Volkswagen, Volvo
    • Services: OVMS, Tronity
    • Scooters: Niu, Silence
  • plugins for integrating with any charger/ meter/ vehicle:
    • Modbus, HTTP, MQTT, Javascript, WebSockets and shell scripts
  • status notifications using Telegram, PushOver and many more
  • logging using InfluxDB and Grafana
  • granular charge power control down to mA steps with supported chargers (labeled by e.g. smartWB als OLC)
  • REST and MQTT APIs for integration with home automation systems
  • HomeAssistant add-on

Getting Started

You'll find everything you need in our documentation (German).

Contribute

To build evcc from source, Go 1.18 and Node 16 are required.

Build and run go backend. The UI becomes available at http://127.0.0.1:7070/

make
./evcc

For frontend development start the Vue toolchain in dev-mode. Open http://127.0.0.1:7071/ to get to the livelreloading development server. It pulls its data from port 7070 (see above).

npm install
npm run start

Code formatting

We use linters (golangci-lint, Prettier) to keep a coherent source code formatting. It's recommended to use the format-on-save feature of your editor. For VSCode use the Go, Prettier and Veture extension. You can manually reformat your code by running:

make lint
make lint-ui

Changing UI code

To ensure reproducability the build frontend artifacts are part of the source code repository. If you've made changes to frontend code, please make sure to rebuild the production assets before you commit.

make ui

Changing templates

evcc supports a massive amount of different devices. To keep our documentation and website in sync with the latest software the core project (this repo) generates meta-data that's pushed to the docs and evcc.io repository. Make sure to update this meta-data every time you make changes to a templates.

make docs

If you miss one of the above steps Gitub Actions will likely trigger a Porcelain error.

Sponsorship

evcc believes in open source software. We're committed to provide best in class EV charging experience. Maintaining evcc consumes time and effort. With the vast amount of different devices to support, we depend on community and vendor support to keep evcc alive.

While evcc is open source, we would also like to encourage vendors to provide open source hardware devices, public documentation and support open source projects like ours that provide additional value to otherwise closed hardware. Where this is not the case, evcc requires "sponsor token" to finance ongoing development and support of evcc.

The personal sponsor token requires a Github Sponsorship and can be requested at cloud.evcc.io. A sponsor token is valid for one year and can be renewed any time with active sponsorship.

Background

evcc is heavily inspired by OpenWB. However, in 2019, I found OpenWB's architecture slightly intimidating with everything basically global state and heavily relying on shell scripting. On the other side, especially the scripting aspect is one that contributes to OpenWB's flexibility.

Hence, for a simplified and stricter implementation of an EV charge controller, the design goals for evcc were:

  • typed language with ability for systematic testing - achieved by using Go
  • structured configuration - supports YAML-based config file
  • avoidance of feature bloat, simple and clean UI - utilizes Vue.js and Bootstrap
  • containerized operation beyond Raspberry Pi - provide multi-arch Docker Image