evcc-io / evcc

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

Problem mit onIdentify / evcc friert ein #3849

Closed andig closed 2 years ago

andig commented 2 years ago

Discussed in https://github.com/evcc-io/evcc/discussions/3840

Originally posted by **VolkerK62** July 14, 2022 Seit der Implementierung von #3805 friert evcc beim Fahrzeugwechsel ein. Ich habe mittlerweile herausgefunden, dass es an `onIdentify` liegt. Ist der Parameter `targetSoC: 55` auskommentiert, funktioniert es ohne Probleme. Vehicle: ``` - name: WP type: custom title: Warmwasser capacity: 10 phases: 1 soc: # SoC = Wassertemeratur source: script cmd: cat /home/pi/pi-share/WPTemp.soc onIdentify: #mode: off #minSoC: 45 targetSoC: 55 ``` Loadpoint: ``` - title: Wärmepumpe charger: WP_sg vehicles: WP meter: WP_power mode: off phases: 1 mincurrent: 1 maxcurrent: 3 enable: threshold: 0 delay: 0m disable: threshold: 50 delay: 15m guardduration: 15m soc: poll: mode: always interval: 5m ``` Log vom Fahrzeugwechsel ``` Jul 14 10:10:41 raspberrypi evcc[20382]: [lp-2 ] INFO 2022/07/14 10:10:41 vehicle updated: unknown -> Warmwasser Jul 14 10:10:41 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:10:41 lp-2/vehiclePresent: true Jul 14 10:10:41 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:10:41 lp-2/vehicleTitle: Warmwasser Jul 14 10:10:41 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:10:41 lp-2/vehicleCapacity: 10 Jul 14 10:10:42 raspberrypi evcc[20382]: [modbus] TRACE 2022/07/14 10:10:42 modbus: closing connection due to idle timeout: 5.000453406s Jul 14 10:10:47 raspberrypi evcc[20382]: [site ] DEBUG 2022/07/14 10:10:47 ---- Jul 14 10:10:47 raspberrypi evcc[20382]: [daheim] TRACE 2022/07/14 10:10:47 GET https://api.daheimladen.com/v1/cs/329461803080248/metervalue Jul 14 10:10:47 raspberrypi evcc[20382]: [daheim] TRACE 2022/07/14 10:10:47 {"charging_station_id":"329461803080248","connector_id":1,"active_power_import":0,"current_import_phasel1":0,"current_import_phasel2":0,"current_import_phasel3":0,"energy_active_import_register":786.4,"timestamp":"2022-07-14T08:10:07Z"} Jul 14 10:10:47 raspberrypi evcc[20382]: [lp-1 ] DEBUG 2022/07/14 10:10:47 charge power: 0W Jul 14 10:10:47 raspberrypi evcc[20382]: [http ] TRACE 2022/07/14 10:10:47 GET http://192.168.178.21/emeter/1 Jul 14 10:10:47 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:10:47 lp-1/chargePower: 0 Jul 14 10:10:47 raspberrypi evcc[20382]: [http ] TRACE 2022/07/14 10:10:47 {"power":0.00,"reactive":0.00,"pf":0.00,"voltage":234.20,"is_valid":true,"total":67152.3,"total_returned":0.5} Jul 14 10:19:34 raspberrypi evcc[20382]: [lp-1 ] INFO 2022/07/14 10:19:34 vehicle updated: (T)Raumschiff -> unknown Jul 14 10:19:34 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:19:34 lp-1/vehiclePresent: false Jul 14 10:19:34 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:19:34 lp-1/vehicleTitle: Jul 14 10:19:34 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:19:34 lp-1/vehicleCapacity: 0 Jul 14 10:19:34 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:19:34 lp-1/vehicleOdometer: 0 Jul 14 10:19:34 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:19:34 lp-1/vehicleSoC: 0 Jul 14 10:19:34 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:19:34 lp-1/vehicleRange: 0 Jul 14 10:19:48 raspberrypi evcc[20382]: [lp-1 ] DEBUG 2022/07/14 10:19:48 set charge mode: minpv Jul 14 10:19:48 raspberrypi evcc[20382]: [lp-1 ] DEBUG 2022/07/14 10:19:48 pv timer elapse Jul 14 10:19:48 raspberrypi evcc[20382]: [lp-1 ] DEBUG 2022/07/14 10:19:48 pv timer inactive Jul 14 10:19:48 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:19:48 lp-1/mode: minpv Jul 14 10:19:48 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:19:48 lp-1/pvAction: inactive Jul 14 10:19:48 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:19:48 lp-1/pvRemaining: 0s Jul 14 10:19:52 raspberrypi evcc[20382]: [lp-1 ] DEBUG 2022/07/14 10:19:52 set charge mode: off Jul 14 10:19:52 raspberrypi evcc[20382]: [lp-1 ] DEBUG 2022/07/14 10:19:52 pv timer elapse Jul 14 10:19:52 raspberrypi evcc[20382]: [lp-1 ] DEBUG 2022/07/14 10:19:52 pv timer inactive Jul 14 10:19:52 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:19:52 lp-1/mode: off Jul 14 10:19:52 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:19:52 lp-1/pvAction: inactive Jul 14 10:19:52 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:19:52 lp-1/pvRemaining: 0s Jul 14 10:20:27 raspberrypi evcc[20382]: [lp-1 ] INFO 2022/07/14 10:20:27 vehicle updated: unknown -> (T)Raumschiff Jul 14 10:20:27 raspberrypi evcc[20382]: [lp-1 ] DEBUG 2022/07/14 10:20:27 vehicle odometer: 9114km Jul 14 10:20:27 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:20:27 lp-1/vehiclePresent: true Jul 14 10:20:27 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:20:27 lp-1/vehicleTitle: (T)Raumschiff Jul 14 10:20:27 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:20:27 lp-1/vehicleCapacity: 72 Jul 14 10:20:27 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:20:27 lp-1/vehicleOdometer: 9114.2 Jul 14 10:20:27 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:20:27 lp-1/vehicleSoC: 0 Jul 14 10:20:27 raspberrypi evcc[20382]: [cache ] TRACE 2022/07/14 10:20:27 lp-1/vehicleRange: 0 ``` Ab 10:10:47 wird (erstmal) nichts mehr ins Log geschrieben. Die Meter-Werte im UI sind eingefroren. Im UI wird angezeigt: "Keine Verbindung zum Server. Reload? Allerdings kann ich am zweiten Loadpoint trotzdem noch Änderungen (10:19:43) vornehmen, die auch angenommen werden.
andig commented 2 years ago

friert evcc beim Fahrzeugwechsel

Nur beim manuellen oder auch beim automatischen Wechsel?

VolkerK62 commented 2 years ago

Nur beim manuellen oder auch beim automatischen Wechsel?

Ich habe an beiden loadpoints jetzt mit vehicle (ohne s am Ende) ein Standardfahrzeug definiert. Wenn bei diesem Fahrzeug z.B. targetSoC definiert ist und ich evcc neu starte, friert es kurz nach dem Start ein. Also nicht nur beim manuellen Wechsel.