EVCC

Control evcc over REST API

Current Release
0.3.1
Developer
Newan
License
MIT

evcc adapter for ioBroker

Controll evcc over rest api

Forum: https://forum.iobroker.net/topic/49165/neuer-adapter-iobroker-evcc

Charge mode (evcc >= 0.316.0)

evcc 0.316.0 renamed the mode pv to smart and replaced minpv with the separate setting alwaysCharge (evcc PR #32490). The adapter detects the evcc version automatically and keeps working with older versions.

StateValuesNote
loadpoint.X.control.off / .now / .smartbuttonset mode
loadpoint.X.control.alwaysChargeoff, on, onceevcc >= 0.316.0 only, once resets when the vehicle is disconnected
loadpoint.X.control.pvControl0 off, 1 smart, 2 smart + always charge, 3 nownow also reflects the current evcc mode
loadpoint.X.control.pv / .minbuttondeprecated, mapped to smart + alwaysCharge off / on

Breaking for scripts/visualizations: with evcc >= 0.316.0, loadpoint.X.status.mode reports smart instead of pv/minpv. Use loadpoint.X.status.alwaysCharge or loadpoint.X.control.pvControl to distinguish the former min+pv mode.

Charging plan

A static charging plan can be set per loadpoint under loadpoint.X.control.plan:

StateMeaning
plan.activetrue creates/updates the plan, false deletes it. Reads back whether a plan is set in evcc.
plan.timetarget time (timestamp in ms). Past or empty: now + 24 h
plan.soctarget SoC in % – used when a vehicle is assigned to the loadpoint (soc plan of that vehicle, same as vehicle.<name>.plan.*)
plan.energytarget energy in kWh – used when no vehicle is assigned (energy plan, e.g. vehicle without SoC / guest vehicle)

Values written while plan.active is false are only stored and used when the plan is activated, so set time and soc/energy first, then active = true. Note: evcc's own status.planActive means "currently charging according to plan", not "a plan is set".

Changelog

WORK IN PROGRESS

  • (Schimi1983) fix: polls took longer than the interval with many states (e.g. weather forecast) – values are now written in batches
  • (Schimi1983) fix: no errors in the log when the adapter is stopped during a poll
  • (Schimi1983) fix unit tests: chai-as-promised is no longer loaded in test setup (not a direct dependency anymore)
  • (Schimi1983) charging plan per loadpoint: control.plan.active/time/soc/energy (soc plan of the assigned vehicle or energy plan of the loadpoint), closes #73 and #18
  • (Schimi1983) repository checker (#135): remove test dependencies already provided by @iobroker/testing, CHANGELOG_OLD.md in .npmignore, consistent formatting of admin/jsonConfig.json

0.3.1 (2026-10-10)

  • (arteck) Dependencies have been updated
  • (Schimi1983) fix: enableThreshold / disableThreshold could not be set
  • (Schimi1983) fix: global control.smartCostLimit was sent to loadpoint undefined
  • (Schimi1983) fix: smartCostLimit / batteryGridChargeLimit = 0 now removes the limit (DELETE), negative limits are allowed
  • (Schimi1983) fix: chargeDuration / connectedDuration are reported by evcc in seconds (were treated as nanoseconds)
  • (Schimi1983) fix: vehicle plan (plan.active, plan.planSoc, plan.time) is read from and written to evcc again
  • (Schimi1983) remove unused calls to removed evcc endpoints
  • (Schimi1983) fix: control actions were called with the adapter as this instead of the evcc client
  • (Schimi1983) performance: objects are created once per runtime instead of being rewritten on every poll, polls no longer overlap
  • (Schimi1983) add units and roles (W, Wh, kWh, A, %, km, s, €/kWh, g/kWh, °C) for known evcc status values, indicator role for booleans

0.3.0 (2026-10-02)

  • (Schimi1983) support evcc 0.316 mode redesign: new control.smart and control.alwaysCharge, pvControl reflects the evcc mode
  • (Schimi1983) fix: request timeout was sent as POST body and never applied
  • (arteck) Dependencies have been updated

0.2.10 (2026-07-15)

  • (arteck) add configurable weather forcast grid

0.2.9 (2026-07-15)

  • (arteck) add grid request

0.2.8 (2026-03-09)

  • (arteck) reduce read request, static dp read only once

License

MIT License

Copyright (c) 2025-2026 Newan info@newan.de

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and asSociated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.