Closed TheFreaker86 closed 1 year ago
Bad Request sollte eigentlich nicht sein. Bitte trace log. /cc @GrimmiMeloni
Ein Testtoken bekommst Du hier: https://docs.evcc.io/docs/sponsorship
Wow,
danke vielmals für die schnelle Antwort! Hab das Loglevel von 'charger' auf trace gesetzt. Und ich habe mal weil im Log steht unten Username or password is invalid
in der evcc.yaml jeweils mal das !secret XYZ
durch die eigentlichen Zugangsdaten ersetzt und auch die Zugangsdaten anhand eines Logins auf https://easee.cloud getestet. Die Logindaten sind korrekt. Hat aber alles nix genützt, EVCC startet nicht. Hab übrigens noch battery3 aus der evcc.yaml gelöscht, das war redundant.
Using config file: /config/evcc.yaml
starting evcc: 'EVCC_DATABASE_DSN=/data/evcc.db evcc --config /config/evcc.yaml'
[main ] INFO 2023/09/10 14:16:06 evcc 0.119.5
[main ] INFO 2023/09/10 14:16:06 using config file: /config/evcc.yaml
[main ] INFO 2023/09/10 14:16:06 starting ui and api at :7070
[db ] INFO 2023/09/10 14:16:06 using sqlite database: /data/evcc.db
[db ] TRACE 2023/09/10 14:16:06 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="settings" -1 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "settings" AND sql IS NOT NULL order by type = "table" desc 1 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT * FROM `settings` LIMIT 1 -1 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT * FROM `settings` 6 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="devices" -1 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="device_details" -1 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="configs" -1 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "configs" AND sql IS NOT NULL order by type = "table" desc 1 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT * FROM `configs` LIMIT 1 -1 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="config_details" -1 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "config_details" AND sql IS NOT NULL order by type = "table" desc 2 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT * FROM `config_details` LIMIT 1 -1 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "config_details" AND (sql LIKE "%CONSTRAINT \"fk_configs_details\" %" OR sql LIKE "%CONSTRAINT fk_configs_details %" OR sql LIKE "%CONSTRAINT `fk_configs_details`%" OR sql LIKE "%CONSTRAINT [fk_configs_details]%" OR sql LIKE "%CONSTRAINT fk_configs_details %") -1 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "config_details" AND name = "idx_unique" -1 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "config_details" AND (sql LIKE "%CONSTRAINT \"fk_devices_details\" %" OR sql LIKE "%CONSTRAINT fk_devices_details %" OR sql LIKE "%CONSTRAINT `fk_devices_details`%" OR sql LIKE "%CONSTRAINT [fk_devices_details]%" OR sql LIKE "%CONSTRAINT fk_devices_details %") -1 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "config_details" AND (sql LIKE "%\"device_id\" %" OR sql LIKE "%device_id %" OR sql LIKE "%`device_id`%" OR sql LIKE "%[device_id]%" OR sql LIKE "% device_id %") -1 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT * FROM `configs` WHERE `configs`.`class` = 2 ORDER BY id 0 <nil>
[db ] TRACE 2023/09/10 14:16:06 SELECT * FROM `configs` WHERE `configs`.`class` = 1 ORDER BY id 0 <nil>
[easee ] TRACE 2023/09/10 14:16:06 POST https://api.easee.com/api/accounts/login
[easee ] TRACE 2023/09/10 14:16:06 {"userName":"***","password":"***"}
--
{"errorCode":100,"errorCodeName":"InvalidUserPassword","type":null,"title":"Username or password is invalid","status":400,"detail":"[Empty in production]","instance":null,"extensions":{}}
[main ] FATAL 2023/09/10 14:16:06 cannot create charger 'wallbox5': cannot create charger 'template': cannot create charger 'easee': unexpected status: 400 (Bad Request)
[main ] FATAL 2023/09/10 14:16:06 will attempt restart in: 5m0s
Na dann isses klar- u/p kommen nicht korrekt an. Vmtl in der yaml fehlerhaft angegeben. Ohne die echten Daten hier nicht zu beantworten. Wenn Du Hilfe brauchst bitte Zugangsdaten an info@evcc.io.
Seltsamerweise funktioniert die EVCC GUI wieder. Dabei habe ich wieder !secret in der evcc.yaml stehen.
/ Dafür funktioniert der MODBUS-Zugriff nicht mehr seufz pv 2 power: unexpected status: 401 (Unauthorized)
Also weiter debuggen, mal sehen was ich finde. Das soll erstmal keine Aufforderung für Hilfe sein.
Describe the bug
EVCC won't start. I did not change the evcc.yaml since I got EVCC to start about 2 weeks ago. The PV guided charging did not work (It charged with full power of 22 kW no matter what) in 0.119.3 but at least the GUI of EVCC worked. In the meantime I have installed Home Assistant with the two new releases that were published in the last few days. Currently I am running HA version 2023.9.1. I also tried to revert to previous releases of EVCC (0.119.4, 0.119.3, and 0.119.2) to no avail, as expected. The logfile shows the same as with 0.119.5 which I am running now. I have also increased the timeout in the charger config from 10s to 30s and after that to 60s like it was recommended in #9815. As expected, this did nothing as well. The error message seemed unrelated to that to begin with. But as stated in #9815 increasing the timeout anyway is a good idea for this charger.
I have read about the known issue that mincurrent has to be 8A. Is this still a thing and maybe causing the issue? Seems unlikely to me, but I can only take an educated guess.
It's a little bit frustrating since my sponsor token is about to expire and I haven't been able so far to test PV guided charging :-(
please advise. Thank you very much for your effort!
Steps to reproduce
Don't know what to tell you here.
Configuration details
Log details
What type of operating system are you running?
HomeAssistant Add-on
Version
0.119.4 and 0.119.5