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.
| State | Values | Note |
|---|---|---|
loadpoint.X.control.off / .now / .smart | button | set mode |
loadpoint.X.control.alwaysCharge | off, on, once | evcc >= 0.316.0 only, once resets when the vehicle is disconnected |
loadpoint.X.control.pvControl | 0 off, 1 smart, 2 smart + always charge, 3 now | now also reflects the current evcc mode |
loadpoint.X.control.pv / .min | button | deprecated, 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:
| State | Meaning |
|---|---|
plan.active | true creates/updates the plan, false deletes it. Reads back whether a plan is set in evcc. |
plan.time | target time (timestamp in ms). Past or empty: now + 24 h |
plan.soc | target SoC in % – used when a vehicle is assigned to the loadpoint (soc plan of that vehicle, same as vehicle.<name>.plan.*) |
plan.energy | target 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/disableThresholdcould not be set - (Schimi1983) fix: global
control.smartCostLimitwas sent to loadpointundefined - (Schimi1983) fix:
smartCostLimit/batteryGridChargeLimit= 0 now removes the limit (DELETE), negative limits are allowed - (Schimi1983) fix:
chargeDuration/connectedDurationare 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
thisinstead 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.smartandcontrol.alwaysCharge,pvControlreflects 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.