evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Evcc Bluelink plugin erroneously thinks that climater is active

Open kariburger opened this issue 7 months ago • 10 comments

Description

My Hyundai is charged in underground car park without mobile Internet, so that Bluelink does not provide current information - the Bluelink server provides status information from before entering the underground. At the beginning of charging, evcc does not report active climater. Evcc interpolates the car SOC in a smart way.

But sometimes later evcc displays in web frontend, that the climater would be active. This leads to never stopping charging, even if PV power is reaches zero at night.

The attached log is from start of charging, where no active climater is reported.

Please provide possibility, to ignore the climater active status.

Steps to Reproduce

  1. Start charging in underground car park with Bluelink plugin
  2. Wait while car is charged
  3. Sometimes later evcc erroneously reports active climater
  4. Evcc does not stop charging, even at night in PV mode

Configuration (YAML)

no yaml configuration

Configuration (UI)

{
  "charger": [
    {"id":8,"name":"db:8","type":"template","config":{"baudrate":9600,"comset":"8N1","host":"192.168.10.62","id":255,"modbus":"tcpip","port":502,"template":"vestel"},"deviceProduct":"Vestel EVC04 Home Smart"}
  ],
  "experimental": true,
  "influx": {"url":"","database":"","token":"","org":"","user":"","password":"","insecure":false},
  "interval": 30,
  "loadpoints": [
    {"id":9,"name":"db:9","batteryBoostLimit":70,"charger":"db:8","defaultMode":"pv","limitEnergy":0,"limitSoc":0,"maxCurrent":16,"minCurrent":6,"phasesConfigured":0,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":0,"smartCostLimit":null,"smartFeedInPriorityLimit":null,"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true},"thresholds":{"enable":{"delay":60000000000,"threshold":0},"disable":{"delay":180000000000,"threshold":0}},"title":"Wallbox","vehicle":"db:10"}
  ],
  "messenger": [
    {"id":26,"name":"db:26","type":"template","config":{"from":"Achim Spangler","fromName":"Achim Spangler","host":"posteo.de","password":"***","port":"465","template":"email","to":["[email protected]"],"user":"***"},"deviceProduct":"E-Mail"}
  ],
  "meter": [
    {"id":28,"name":"db:28","type":"template","config":{"battery":"1","baudrate":9600,"comset":"8N1","host":"192.168.10.63","id":247,"maxacpower":6500,"maxchargepower":"10000","maxdischargepower":"10000","maxsoc":"100","minsoc":"10","modbus":"tcpip","port":502,"template":"goodwe-hybrid","usage":"pv"},"deviceProduct":"GoodWe ET/EH/BH/BT Hybrid Inverter","deviceTitle":"PV"},
    {"id":30,"name":"db:30","type":"template","config":{"battery":"1","baudrate":9600,"comset":"8N1","host":"192.168.10.63","id":247,"maxacpower":"0","maxchargepower":"10000","maxdischargepower":"10000","maxsoc":"100","minsoc":"10","modbus":"tcpip","port":502,"template":"goodwe-hybrid","usage":"grid"},"deviceProduct":"GoodWe ET/EH/BH/BT Hybrid Inverter"},
    {"id":29,"name":"db:29","type":"template","config":{"battery":"1","baudrate":9600,"capacity":15,"comset":"8N1","host":"192.168.10.63","id":247,"maxacpower":"0","maxchargepower":8450,"maxdischargepower":8450,"maxsoc":"100","minsoc":"10","modbus":"tcpip","port":502,"template":"goodwe-hybrid","usage":"battery"},"deviceProduct":"GoodWe ET/EH/BH/BT Hybrid Inverter","deviceTitle":"Batterie"}
  ],
  "mqtt": {"broker":"","user":"","password":"","clientID":"","insecure":false,"caCert":"","clientCert":"","clientKey":"","topic":"evcc"},
  "residualPower": 0,
  "shm": {"vendorId":"","deviceId":"","deviceSerial":""},
  "site": {"title":"Kariburg4Ioniq5","grid":"db:30","pv":["db:28"],"battery":["db:29"],"aux":null,"ext":null},
  "tariff": [
    {"id":4,"name":"db:4","type":"template","config":{"price":0.08,"template":"fixed"},"deviceProduct":"Fester Preis"},
    {"id":13,"name":"db:13","type":"template","config":{"charges":0.15,"region":"DE","tax":0.19,"template":"epex-predictor","uri":"***"},"deviceProduct":"EPEX Predictor Predicted EPEX spot prices"},
    {"id":11,"name":"db:11","type":"template","config":{"ac":6500,"alphatemp":"-0.004","az":0,"de":"0","dec":30,"dm":"0","efficiency":99,"interval":"1h","kwp":5.88,"lat":"***","lon":"***","rossmodel":0.0563,"template":"open-meteo"},"deviceProduct":"Open-Meteo","deviceTitle":"Open-Meteo"}
  ],
  "tariffRefs": {"grid":"db:13","feedIn":"db:4","co2":"","planner":"","solar":["db:11"]},
  "vehicle": [
    {"id":10,"name":"db:10","type":"template","config":{"cache":"15m","capacity":77.4,"icon":"car","identifiers":["210913e6"],"language":"de","mode":"pv","password":"***","phases":"","template":"hyundai","title":"Ioniq5","user":"***"},"deviceProduct":"Hyundai Bluelink"},
    {"id":31,"name":"db:31","type":"template","config":{"capacity":72.6,"coarsecurrent":true,"icon":"car","mode":"pv","phases":"","priority":0,"template":"offline","title":"Gast"},"deviceProduct":"Generisches Fahrzeug (ohne API)"}
  ]
}

Logs

[lp-1  ] DEBUG 2026/04/28 13:34:49 charge currents: [15.4 0.018 0.022]A
[site  ] DEBUG 2026/04/28 13:34:49 grid power: -16W
[site  ] DEBUG 2026/04/28 13:34:49 battery 1 power: -86W
[site  ] DEBUG 2026/04/28 13:34:49 grid powers: [2335 -1147 -1202]W
[site  ] DEBUG 2026/04/28 13:34:49 battery 1 soc: 53%
[site  ] DEBUG 2026/04/28 13:34:50 pv 1 power: 4049W
[site  ] DEBUG 2026/04/28 13:34:50 !! solar production: accumulate set db:28 20307.100kWh meter total (was: Accumulated: 303.500kWh pos, 0.000kWh neg, updated: 2026-04-28 13:34:20 +0200 CEST meter:  20307.000kWh pos)
[site  ] DEBUG 2026/04/28 13:34:50 !! solar production: accumulate moved db:28 from 303.500 to 303.600
[site  ] DEBUG 2026/04/28 13:34:50 grid currents: [10.4 -4.9 -5.2]A
[site  ] DEBUG 2026/04/28 13:34:50 site power: -102W
[lp-1  ] DEBUG 2026/04/28 13:34:50 charge voltages: [227 234 236]V
[lp-1  ] DEBUG 2026/04/28 13:34:50 detected active phases: 1p
[lp-1  ] DEBUG 2026/04/28 13:34:50 session energy: 54.880kWh
[lp-1  ] DEBUG 2026/04/28 13:34:50 charge total import: 263.800kWh
[lp-1  ] DEBUG 2026/04/28 13:34:50 charger status: C
[lp-1  ] DEBUG 2026/04/28 13:34:50 vehicle soc: 22%
[lp-1  ] DEBUG 2026/04/28 13:34:50 vehicle soc limit: 100%
[lp-1  ] DEBUG 2026/04/28 13:34:50 vehicle range: 69km
[lp-1  ] DEBUG 2026/04/28 13:34:50 soc estimated: 22.09% (vehicle: 22.00%)
[lp-1  ] DEBUG 2026/04/28 13:34:50 vehicle soc (estimator): 22%
[lp-1  ] DEBUG 2026/04/28 13:34:50 !! plan: plan time zero
[lp-1  ] DEBUG 2026/04/28 13:34:50 pv charge current: 16.4A = 16A + 0.443A (-102W @ 1p)
[site  ] DEBUG 2026/04/28 13:34:50 solar forecast: accumulated 0.037Wh from 2026-04-28 13:34:20 +0200 CEST to 2026-04-28 13:34:50 +0200 CEST
[site  ] DEBUG 2026/04/28 13:34:50 solar forecast: produced 303.600
[site  ] DEBUG 2026/04/28 13:34:50 solar forecast: accumulated 439.295kWh, produced 303.600kWh, scale 0.691

Version

v0.305.1

System

linux/amd64, CEST +02:00

kariburger avatar Apr 28 '26 11:04 kariburger

Needs trace log, closing until available.

andig avatar Apr 29 '26 09:04 andig

How can I get suitable logging data? - the webfrontend provides only the download of messages from the last hour. But the problem, where evcc starts thinking, that the climater would be active, occurs at a time which is far in the past. I tried journalctl - but this provides me only error and info log entries - but no DEBUG messages, which would be very important.

So how can I access those old log data? - How can I prepare/config evcc or journalctl, so that I can search for relevant log entries?

Or please provide a possibility to configure evcc, so that ignores the climater information.

kariburger avatar Apr 29 '26 10:04 kariburger

journalctl provides all log levels which are configured: https://docs.evcc.io/en/docs/reference/configuration/log

StefanSchoof avatar Apr 29 '26 13:04 StefanSchoof

I set the log-level of the "hyundai" plugin to "trace" in /etc/evcc.yaml I hope, that the values for "heating1" and "defrost" are going to contain relevant information, which could indicate the reason for the erroneous "climater active" status. Should I set also specific log levels for the charger, or other components - is there any other component involved in derivation of status "climater active" ?

kariburger avatar Apr 30 '26 11:04 kariburger

No

andig avatar Apr 30 '26 11:04 andig

Yesterday it happened again. I used the following debug-settings in /etc/evcc.yaml log: info levels: site: debug lp-1: debug lp-2: debug cache: error db: error hyundai: trace

I had to manually stop the PV-mode charging. At the beginning, evcc didn't display active heating/climater. At the end, the symbols for climater and ventillator were displayed. Thus the charging didn't stop, even if the battery of the house were below the configured limit.

Should I change the debug level of "site" from "debug" to "info" to get the interpretation of car status? - or what else provides this summary status?

EvccHyundai.log

kariburger avatar May 04 '26 07:05 kariburger

Its perfectly correct:

"airCtrlOn":true

Only thing tbd would be to remove the climater if not reliable.

andig avatar May 04 '26 10:05 andig

Oh - then I can not use the bluelink-plugin for my Hyundai Ioniq 5 (2021), as the climate control is automatically activated during driving. At least in my case, this doesn't lead to permanently heating the car, during parked in the underground parking. Could you add an special option in the bluelink plugin, to ignore airCtrlOn, so that charging can get stopped, if PV power is getting too low for PV-Mode charging?

Otherwise I can only use the generic plugin for my car.

kariburger avatar May 04 '26 11:05 kariburger

as the climate control is automatically activated during driving

During driving your vehicle is not attached to the wallbox so this should not matter?!

andig avatar May 04 '26 11:05 andig

As dMopp posted already in https://github.com/evcc-io/evcc/issues/18367 - it would be very helpful to provide a possibility to enable ignoring the "airCtrlOn" state - i.e. avoid activation of wallbox when the charging conditions disallow charging.

Otherwise users like me have to use the generic car plugin, as the last status at Bluelink servers is from car while it is running (engine is ON, car in front of the door of the underground parking). Thus the "AirCtrlOn" value does really not indicate, that the wallbox has to get active to enable heating the car ("Standheizung").

kariburger avatar May 04 '26 12:05 kariburger