Closed andig closed 2 years ago
@utsavanand2 could you take a look at the error messages? Looks like the backend status is not as expected?
Hallo Andi, wie mache ich Das Logfile? Muss ich da in der evcc.yaml etwas anpassen? Danke für die Mühe.
Hallo Andi, wie mache ich Das Logfile? Muss ich da in der evcc.yaml etwas anpassen? Danke für die Mühe.
Entweder log: trace
oder --log trace
.
Moin,
hoffe das ist die richtige Logdatei... Da sind noch ein paar Errors drin da ich nochmals versucht habe an der YAML rumzubasteln. Hat aber alles nichts geholfen. Habe heute 30.12 erneut versucht zu laden mit gleichem Ergebnis wie gestern. Das ist auch im Logfile sichtbar
Vielen Dank
Von: andig @. Gesendet: Mittwoch, 29. Dezember 2021 15:07 An: evcc-io/evcc @.> Cc: yeehman @.>; Comment @.> Betreff: Re: [evcc-io/evcc] Daheimladen: charging session aborts (Issue #2142)
Hallo Andi, wie mache ich Das Logfile? Muss ich da in der evcc.yaml etwas anpassen? Danke für die Mühe.
Entweder log: trace oder --log trace.
— Reply to this email directly, view it on GitHub https://github.com/evcc-io/evcc/issues/2142#issuecomment-1002610921 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOHU2SKFYOQ5UL537XZOXZLUTMIW5ANCNFSM5K572UHQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you commented. https://github.com/notifications/beacon/AOHU2SLMC3Q4EHTSLO2YD3LUTMIW5A5CNFSM5K572UH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHPBKB2I.gif Message ID: @. @.> >
@utsavanand2 the problem is that ChargePointStatus=FINISHING
is not mapped in the Status()
function. IMHO it should be either B
or C
. Could you please confirm which?
The logfile also has quite a number of
ERROR 2021/12/24 12:15:34 charger: Get "https://api.daheimladen.com/v1/cs/xxx/status": net/http: request canceled (Client.Timeout exceeded while awaiting headers)
ERROR 2021/12/24 12:15:44 charger: Get "https://api.daheimladen.com/v1/cs/xxx/status": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
ERROR 2021/12/24 12:15:55 charger: Get "https://api.daheimladen.com/v1/cs/xxx/status": context deadline exceeded
were there any problems with the backend API or do we need a longer timeout?
@utsavanand2 the problem is that
ChargePointStatus=FINISHING
is not mapped in theStatus()
function. IMHO it should be eitherB
orC
. Could you please confirm which?The logfile also has quite a number of
ERROR 2021/12/24 12:15:34 charger: Get "https://api.daheimladen.com/v1/cs/xxx/status": net/http: request canceled (Client.Timeout exceeded while awaiting headers) ERROR 2021/12/24 12:15:44 charger: Get "https://api.daheimladen.com/v1/cs/xxx/status": context deadline exceeded (Client.Timeout exceeded while awaiting headers) ERROR 2021/12/24 12:15:55 charger: Get "https://api.daheimladen.com/v1/cs/xxx/status": context deadline exceeded
were there any problems with the backend API or do we need a longer timeout?
Hi @andig. Yes you're correct, the FINISHING state is not mapped in the Status
function, the problem is that the charging stations do not start new charging sessions when they are stuck in Finishing state for long until the connector is reconnected. So your addition at #2156 returning Status B
for Finishing
makes a lot of sense but I would first like to test it out before merging it.
As for the context deadline exceeded errors, its interesting to see only calls to /status
that are timing out the most, even when the server doesn't have any internal errors (It is the same behavior we were getting when we set a timeout on the client), as to the best of my knowledge and looking up the code, I do not see any relevant changes to the code itself on the backend that might be affecting this, currently waiting up for Stephan to run these tests with him and try to reproduce this issue.
Hey Utsav,
this is Thorsten... you provided the Token for me in the past. If you want and if it makes sense I can test something.
Let me know I`m ready.
Thanks
@yeehman Du könntest einfach den PR auschecken und schauen ob es damit funktioniert?
@andig sorry alles noch ein wenig Neuland für mich... Was ist PR? und wie checke ich den aus?
Vielen Dank
@yeehman Don't worry I'll create an executable for you. Andreas just created another branch with the necessary changes, he meant if you could clone, checkout, build from source and then try running it. Give me a few minutes and I'll paste a link to an arm executable
@yeehman Can you try running this binary on your raspberry pi and see if this works? https://storage.googleapis.com/evcc-test/evcc
@yeehman This binary includes the fix that @andig made, with me trying a bigger timeout value to see if it plays well with the server. https://storage.googleapis.com/evcc-test/evcc-timeout-fix
Hello Utsav,
sorry all is really new for me…
Can you explain that a little bit more… “could clone, checkout, build from source and then try running it”
Thanks and Regards, Thorsten
Von: Kumar Utsav Anand @. Gesendet: Donnerstag, 30. Dezember 2021 17:48 An: evcc-io/evcc @.> Cc: yeehman @.>; Mention @.> Betreff: Re: [evcc-io/evcc] Daheimladen: charging session aborts (Issue #2142)
@yeehman https://github.com/yeehman Can you try running this binary on your raspberry pi and see if this works? https://storage.googleapis.com/evcc-test/evcc
— Reply to this email directly, view it on GitHub https://github.com/evcc-io/evcc/issues/2142#issuecomment-1003104978 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOHU2SOPKRR5BWZMA3T2TVTUTSENVANCNFSM5K572UHQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOHU2SNGZG7BMZPS6QQHEIDUTSENVA5CNFSM5K572UH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHPFCVUQ.gif Message ID: @. @.> >
@yeehman Don't worry, you don't have to do that now that I have compiled the binaries for you that you can download from here https://storage.googleapis.com/evcc-test/evcc
Just download it on your Raspberry Pi with
# To download evcc to your current directory
curl -L https://storage.googleapis.com/evcc-test/evcc -o evcc
# Give executable permission to your downloaded evcc binary
sudo chmod +x ./evcc
# Running evcc with the path to your yaml configuration specified
./evcc -c /path/to/your/evcc.yaml
Good Morning, tried it with the new binaries. This one is working: curl -L https://storage.googleapis.com/evcc-test/evcc -o evcc This one is also working: sudo chmod +x ./evcc
But the last one: ./evcc -c /path/to/your/evcc.yaml --> changed it to ./evcc -c /etc/evcc.yaml is not working. I restarted the EVCC then with --> sudo systemctl restart evcc and enable the function again with -->sudo systemctl enable evcc
Checked the status of EVCC and this looks fine.
I connected the Fiat 500E but same situation. Charging process stopped 30 seconds after it was connected with the same failure message:
New log file is here: evcc.log
Not sure if this is important. If I change in the webview the mode setting (OFF, NOW, minPV and PV) you can not see any difference. Also if I click on OFF the Wallbox starts loading directly when the plug is connected to the car. Same for minPV, PV and Now.
Thanks Thorsten
Hi @yeehman :)
It looks like you're still using the previously installed evcc binary not the new one with sudo systemctl restart evcc
What error did you see when running ./evcc -c /etc/evcc.yaml
?
Hey Utsav, this is the error message: pi@raspberrypi:~ $ ./evcc -c /etc/evcc.yaml -bash: ./evcc: Kann die Binärdatei nicht ausführen: Fehler im Format der Programmdatei
English --> Unable to run the binary: Error in the format of the program file Thanks
Hi @yeehman
Okay got it, this is because the compiled binary is not compatible with the architecture of the OS on the Pi.
Can you please run
uname -a
And tell me what does the output say?
Also which Raspberry Pi you're running?
Outcome of uname -a
Linux raspberrypi 5.10.63-v7l+ #1488 SMP Thu Nov 18 16:15:28 GMT 2021 armv7l GNU/Linux
And that is the Raspberry Pi
Raspberry Pi 4 Model B 4 GB Super Kit mit 64GB Micro SD-Karte, originaler Raspberry Pi 4 Cortex A72 1.5GHz unterstützt Dual Display 4K/1000Mbps/Bluetooth 5.0
Von: Kumar Utsav Anand @. Gesendet: Freitag, 31. Dezember 2021 10:04 An: evcc-io/evcc @.> Cc: yeehman @.>; Mention @.> Betreff: Re: [evcc-io/evcc] Daheimladen: charging session aborts (Issue #2142)
Hi @yeehman https://github.com/yeehman Okay got it, this is because the compiled binary is not compatible with the architecture of the OS on the Pi. Can you please run uname -a And tell me what does the output say? Also which Raspberry Pi you're running?
— Reply to this email directly, view it on GitHub https://github.com/evcc-io/evcc/issues/2142#issuecomment-1003314866 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOHU2SOOTK4QE2RSHKQVZQLUTVWXDANCNFSM5K572UHQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOHU2SOPE5IC7445TFT3EFLUTVWXDA5CNFSM5K572UH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHPGV5MQ.gif Message ID: @. @.> >
armv6 bzw. armhf
Hey Utsav, I run again this binary file and checked afterwards the status of the system. Status looks good but in the trace/debug I have a error to remove the evcc in the temp folder. The EVCC interface is not possible to open (ERR_CONNECTION_REFUSED). Not sure if this helps or if you need something more. Thanks Thorsten
{"charging_station_id":"84702913276859","status":"Available","active_power_import":0,"total_meter_value":34900,"voltage_phase_l1l2":228.3,"voltage_phase_l2l3":229,"voltage_phase_l3l1":230.8,"current_import_phase_l1":0,"current_import_phase_l2":0,"current_import_phase_l3":0,"charging_station_temperature":28,"current_time":"2022-01-02T09:29:09+01:00","transaction_start_at":"0","transaction_power_used":0} [site ] INFO 2022/01/02 09:29:09 site config: [site ] INFO 2022/01/02 09:29:09 meters: grid ✓ pv ✓ battery ✓ [cache ] DEBUG 2022/01/02 09:29:09 siteTitle: Zu Hause [cache ] DEBUG 2022/01/02 09:29:09 gridConfigured: true [site ] INFO 2022/01/02 09:29:09 grid: power ✓ energy ✗ currents ✗ [site ] INFO 2022/01/02 09:29:09 pv 0: power ✓ energy ✗ currents ✗ [site ] INFO 2022/01/02 09:29:09 battery 0: power ✓ energy ✗ currents ✗ soc ✓ [cache ] DEBUG 2022/01/02 09:29:09 pvConfigured: true [cache ] DEBUG 2022/01/02 09:29:09 batteryConfigured: true [lp-1 ] INFO 2022/01/02 09:29:09 loadpoint 1: [lp-1 ] INFO 2022/01/02 09:29:09 mode: now [lp-1 ] INFO 2022/01/02 09:29:09 charger: power ✓ energy ✓ currents ✓ timer ✗ [lp-1 ] INFO 2022/01/02 09:29:09 meters: charge ✓ [lp-1 ] INFO 2022/01/02 09:29:09 charge: power ✓ energy ✓ currents ✓ [lp-1 ] INFO 2022/01/02 09:29:09 vehicles: ✓ [lp-1 ] INFO 2022/01/02 09:29:09 car 0: range ✓ finish ✗ status ✓ climate ✗ [cache ] DEBUG 2022/01/02 09:29:09 prioritySoC: 50 [server] FATAL 2022/01/02 09:29:09 remove /tmp/evcc: operation not permitted [cache ] DEBUG 2022/01/02 09:29:09 chargeConfigured: true [main ] FATAL 2022/01/02 09:29:09 listen tcp 192.168.0.76:7070: bind: address already in use [site ] DEBUG 2022/01/02 09:29:09 ---- [cache ] DEBUG 2022/01/02 09:29:09 error: remove /tmp/evcc: operation not permitted pi@raspberrypi:~ $ sudo systemctl status evcc ● evcc.service - evcc Loaded: loaded (/etc/systemd/system/evcc.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2022-01-02 09:29:01 CET; 13s ago Main PID: 1932 (evcc) Tasks: 9 (limit: 4915) CPU: 522ms CGroup: /system.slice/evcc.service └─1932 /usr/local/bin/evcc --log error
Jan 02 09:29:01 raspberrypi systemd[1]: Started evcc.
Hi Thorsten
I believe you have an instance of evcc running already hence the error.
Can you please check the status of your systemd evcc process with sudo systemctl status evcc
?
On Sun, Jan 2, 2022, 14:05 yeehman @.***> wrote:
Hey Utsav, I run again this binary file and checked afterwards the status of the system. Status looks good but in the trace/debug I have a error to remove the evcc in the temp folder. The EVCC interface is not possible to open (ERR_CONNECTION_REFUSED). Not sure if this helps or if you need something more. Thanks Thorsten
{"charging_station_id":"84702913276859","status":"Available","active_power_import":0,"total_meter_value":34900,"voltage_phase_l1l2":228.3,"voltage_phase_l2l3":229,"voltage_phase_l3l1":230.8,"current_import_phase_l1":0,"current_import_phase_l2":0,"current_import_phase_l3":0,"charging_station_temperature":28,"current_time":"2022-01-02T09:29:09+01:00","transaction_start_at":"0","transaction_power_used":0} [site ] INFO 2022/01/02 09:29:09 site config: [site ] INFO 2022/01/02 09:29:09 meters: grid ✓ pv ✓ battery ✓ [cache ] DEBUG 2022/01/02 09:29:09 siteTitle: Zu Hause [cache ] DEBUG 2022/01/02 09:29:09 gridConfigured: true [site ] INFO 2022/01/02 09:29:09 grid: power ✓ energy ✗ currents ✗ [site ] INFO 2022/01/02 09:29:09 pv 0: power ✓ energy ✗ currents ✗ [site ] INFO 2022/01/02 09:29:09 battery 0: power ✓ energy ✗ currents ✗ soc ✓ [cache ] DEBUG 2022/01/02 09:29:09 pvConfigured: true [cache ] DEBUG 2022/01/02 09:29:09 batteryConfigured: true [lp-1 ] INFO 2022/01/02 09:29:09 loadpoint 1: [lp-1 ] INFO 2022/01/02 09:29:09 mode: now [lp-1 ] INFO 2022/01/02 09:29:09 charger: power ✓ energy ✓ currents ✓ timer ✗ [lp-1 ] INFO 2022/01/02 09:29:09 meters: charge ✓ [lp-1 ] INFO 2022/01/02 09:29:09 charge: power ✓ energy ✓ currents ✓ [lp-1 ] INFO 2022/01/02 09:29:09 vehicles: ✓ [lp-1 ] INFO 2022/01/02 09:29:09 car 0: range ✓ finish ✗ status ✓ climate ✗ [cache ] DEBUG 2022/01/02 09:29:09 prioritySoC: 50 [server] FATAL 2022/01/02 09:29:09 remove /tmp/evcc: operation not permitted [cache ] DEBUG 2022/01/02 09:29:09 chargeConfigured: true [main ] FATAL 2022/01/02 09:29:09 listen tcp 192.168.0.76:7070: bind: address already in use [site ] DEBUG 2022/01/02 09:29:09 ---- [cache ] DEBUG 2022/01/02 09:29:09 error: remove /tmp/evcc: operation not permitted @.***:~ $ sudo systemctl status evcc ● evcc.service - evcc Loaded: loaded (/etc/systemd/system/evcc.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2022-01-02 09:29:01 CET; 13s ago Main PID: 1932 (evcc) Tasks: 9 (limit: 4915) CPU: 522ms CGroup: /system.slice/evcc.service └─1932 /usr/local/bin/evcc --log error
Jan 02 09:29:01 raspberrypi systemd[1]: Started evcc.
— Reply to this email directly, view it on GitHub https://github.com/evcc-io/evcc/issues/2142#issuecomment-1003681113, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAYDRO4WRZYGKBV6WEHIF3UUAE5HANCNFSM5K572UHQ . You are receiving this because you were mentioned.Message ID: @.***>
Hey Utsav, this is the outcome of the status check: Could it be possible that the old and the new version running simultaneous? How can I stop the old version?
pi@raspberrypi:~ $ sudo systemctl status evcc ● evcc.service - evcc Loaded: loaded (/etc/systemd/system/evcc.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2022-01-02 09:29:01 CET; 13s ago Main PID: 1932 (evcc) Tasks: 9 (limit: 4915) CPU: 522ms CGroup: /system.slice/evcc.service └─1932 /usr/local/bin/evcc --log error
Jan 02 09:29:01 raspberrypi systemd[1]: Started evcc. pi@raspberrypi:~ $ evcc -l error [server] FATAL 2022/01/02 09:29:38 remove /tmp/evcc: operation not permitted pi@raspberrypi:~ $ sudo systemctl status evcc ● evcc.service - evcc Loaded: loaded (/etc/systemd/system/evcc.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2022-01-02 09:45:40 CET; 20min ago Main PID: 2150 (evcc) Tasks: 10 (limit: 4915) CPU: 6.328s CGroup: /system.slice/evcc.service └─2150 /usr/local/bin/evcc --log error
Jan 02 09:45:40 raspberrypi systemd[1]: Started evcc. pi@raspberrypi:~ $
@yeehman The command would be
sudo systemctl stop evcc
@andig I tried a test with @yeehman with the compiled binary of the pull request #2156 . The status error messages are gone.
@yeehman still gets the error messages charger logic error: disabled but charging
and charger out of sync: expected disabled, got enabled
.
Does the error mean that evcc didn't start the charging but the charging started on it's own? Hence out of sync?
I believe these errors are caused not by any errors not because of any issues but rather the setting of the charging station, if I'm correct @yeehman 's station is in plug and charge mode and not in RFID mode, which means the charging starts automatically as soon as you plug the connector into your car which is what plug & charge mode is supposed to do.
@yeehman also reports that after the charging is started (while the charger is in plug and charge mode), the charging gets stopped after 20 seconds. @andig I am wondering if the charging gets stopped by evcc itself as it sees the charger out of sync and tries to get it back into sync by stopping it? Please correct me if I'm wrong.
Does the error mean that evcc didn't start the charging but the charging started on it's own? Hence out of sync?
Possible.
@yeehman also reports that after the charging is started (while the charger is in plug and charge mode), the charging gets stopped after 20 seconds. @andig I am wondering if the charging gets stopped by evcc itself as it sees the charger out of sync and tries to get it back into sync by stopping it? Please correct me if I'm wrong.
Yes, evcc would try to establish the expected (disabled) state.
if I'm correct @yeehman 's station is in plug and charge mode and not in the RFID mode, which means the charging starts automatically as soon as you plug the connector into your car which is what plug & charge mode is supposed to do.
That would mean we would always need RFID mode? Should be documented or ensured by the plugin?
Can we merge the current PR?
Okay so this makes a lot of sense.
I think we need to document this, I don't think that at this point we can ensure it with the plugin as RFID mode can be enabled only by the user. Although we can add a field in the config yaml, where a user needs to specify if the plug and charge mode is enabled or not, if it is can we modify evcc to not try to sync with its own state, and just try to change the current settings and not start and stop charging sessions to fix the out of sync errors and making the charging stop?
But as it sits today, I think it's good to merge and ready for a new release to fix the issues on the server and evcc side.
@andig Is this where the documentation for the chargers live? I can add a PR as a comment in the configuration yaml itself.
https://github.com/evcc-io/config#charger-daheimladen-cloud-api
@DerAndereAndi we need to document the mode.
@utsavanand2 best place would probably be https://github.com/evcc-io/docs/blob/main/docs/devices/chargers.mdx
Also can we remove the comment "# an evcc sponsortoken is required for using this charger" ? This is causing some users to get confused making them add a sponsor token in the configuration which causes errors.
On Sun, Jan 2, 2022, 20:38 andig @.***> wrote:
@DerAndereAndi https://github.com/DerAndereAndi we beed to doxument the mode
— Reply to this email directly, view it on GitHub https://github.com/evcc-io/evcc/issues/2142#issuecomment-1003729798, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAYDRKQZBCLLNN2XYSOGTLUUBS7JANCNFSM5K572UHQ . You are receiving this because you were mentioned.Message ID: @.***>
Also can we remove the comment
For sure. Which location are you referring to?
For sure. Which location are you referring to? This comment? https://github.com/evcc-io/config/blob/f72415e57f509af89d049e1bbb51064f03494c52/README.md?plain=1#L1217
Never mind, we will deprecate the config repo in the near future 👍🏻
Thank you so much. Let me know if I can help you with a PR for the documentation :)
On Sun, Jan 2, 2022, 21:28 andig @.***> wrote:
Never mind, we will deprecate the config repo in the near future 👍🏻
— Reply to this email directly, view it on GitHub https://github.com/evcc-io/evcc/issues/2142#issuecomment-1003736859, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAYDRI6L7MAMHBPIM6URSDUUBYZXANCNFSM5K572UHQ . You are receiving this because you were mentioned.Message ID: @.***>
Discussed in https://github.com/evcc-io/evcc/discussions/2139