Easee: API changes prevents evcc from connecting [fixed in nightly]
Hello,
Easee performed maintenance on their API. After the maintenance Evcc is no longer able to connect to the Easee. This is what I find in the log:
[main ] INFO 2023/05/09 11:08:33 evcc 0.116.7 (fc6a1a9c)
[main ] INFO 2023/05/09 11:08:33 using config file: /etc/evcc.yaml
[main ] INFO 2023/05/09 11:08:33 starting ui and api at :7070
[db ] INFO 2023/05/09 11:08:43 using sqlite database: /db/evcc.db
[mqtt ] INFO 2023/05/09 11:08:43 connecting evcc at tcp://server2.seboto.net:1883
[easee ] TRACE 2023/05/09 11:08:43 POST https://api.easee.cloud/api/accounts/login
[easee ] TRACE 2023/05/09 11:08:47 {"userName":"***","password":"***"}
--
{"accessToken":"ey*****","expiresIn":86400,"accessClaims":["User"],"tokenType":"Bearer","refreshToken":"2U**********"}
[easee ] TRACE 2023/05/09 11:08:47 GET https://api.easee.cloud/api/chargers/EH*******/site
[easee ] TRACE 2023/05/09 11:08:47 {"id":20****,"siteKey":"BX*****","name":"Carport","levelOfAccess":1,"address":{"street":"","buildingNumber":"","zip":"","area":"","country":null,"latitude":null,"longitude":null,"altitude":null},"contactInfo":{"installerName":"H****** Elektrotechnik ","installerPhoneNumber":"04*****","ownerName":"Jens H****","ownerPhoneNumber":"+49******","company":null},"costPerKWh":0.308,"costPerKwhExcludeVat":0.2588,"currencyId":"EUR","siteType":1,"ratedCurrent":50.0,"vat":19.0,"partnerId":20,"installerId":null,"useDynamicMaster":false,"circuits":[{"id":193111,"siteId":2****,"circuitPanelId":1,"panelName":"1","ratedCurrent":16.0,"chargers":[{"id":"EH*****","name":"Carport","color":1,"createdOn":"2021-10-05T15:57:40.701536","updatedOn":"2021-11-25T11:44:21.499875","backPlate":{"id":"806F6FCA23B304","masterBackPlateId":"806F6FCA23B304","name":"","features":[]},"levelOfAccess":1,"productCode":1,"userRole":1,"isTemporary":false}],"masterBackplate":null,"useDynamicMaster":false,"parentCircuitId":null}],"equalizers":[],"createdOn":"2021-11-25T11:38:02.849452","updatedOn":"2023-04-25T16:11:12.531421","userRole":1,"allowedSiteActions":["AllowToConfigureLevelOfAccess"]}
[easee ] TRACE 2023/05/09 11:08:47 POST https://api.easee.cloud/hubs/chargers/negotiate
[easee ] TRACE 2023/05/09 11:08:47 The "/hubs" endpoint is moved from api.easee.cloud to streaming.easee.com
[easee ] TRACE 2023/05/09 11:08:47 level=info connect=POST https://api.easee.cloud/hubs/chargers/negotiate -> 410 Gone
[easee ] TRACE 2023/05/09 11:08:48 POST https://api.easee.cloud/hubs/chargers/negotiate
[easee ] TRACE 2023/05/09 11:08:48 The "/hubs" endpoint is moved from api.easee.cloud to streaming.easee.com
[easee ] TRACE 2023/05/09 11:08:48 level=info connect=POST https://api.easee.cloud/hubs/chargers/negotiate -> 410 Gone
[easee ] TRACE 2023/05/09 11:08:49 POST https://api.easee.cloud/hubs/chargers/negotiate
[easee ] TRACE 2023/05/09 11:08:49 The "/hubs" endpoint is moved from api.easee.cloud to streaming.easee.com
[easee ] TRACE 2023/05/09 11:08:49 level=info connect=POST https://api.easee.cloud/hubs/chargers/negotiate -> 410 Gone
[easee ] TRACE 2023/05/09 11:08:50 POST https://api.easee.cloud/hubs/chargers/negotiate
[easee ] TRACE 2023/05/09 11:08:50 The "/hubs" endpoint is moved from api.easee.cloud to streaming.easee.com
[easee ] TRACE 2023/05/09 11:08:50 level=info connect=POST https://api.easee.cloud/hubs/chargers/negotiate -> 410 Gone
[easee ] TRACE 2023/05/09 11:08:51 POST https://api.easee.cloud/hubs/chargers/negotiate
[easee ] TRACE 2023/05/09 11:08:51 The "/hubs" endpoint is moved from api.easee.cloud to streaming.easee.com
[easee ] TRACE 2023/05/09 11:08:51 level=info connect=POST https://api.easee.cloud/hubs/chargers/negotiate -> 410 Gone
[easee ] TRACE 2023/05/09 11:08:53 POST https://api.easee.cloud/hubs/chargers/negotiate
[easee ] TRACE 2023/05/09 11:08:53 The "/hubs" endpoint is moved from api.easee.cloud to streaming.easee.com
[easee ] TRACE 2023/05/09 11:08:53 level=info connect=POST https://api.easee.cloud/hubs/chargers/negotiate -> 410 Gone
[easee ] TRACE 2023/05/09 11:08:55 POST https://api.easee.cloud/hubs/chargers/negotiate
[easee ] TRACE 2023/05/09 11:08:55 The "/hubs" endpoint is moved from api.easee.cloud to streaming.easee.com
[easee ] TRACE 2023/05/09 11:08:55 level=info connect=POST https://api.easee.cloud/hubs/chargers/negotiate -> 410 Gone
[easee ] TRACE 2023/05/09 11:09:00 POST https://api.easee.cloud/hubs/chargers/negotiate
[easee ] TRACE 2023/05/09 11:09:00 The "/hubs" endpoint is moved from api.easee.cloud to streaming.easee.com
[easee ] TRACE 2023/05/09 11:09:00 level=info connect=POST https://api.easee.cloud/hubs/chargers/negotiate -> 410 Gone
[main ] FATAL 2023/05/09 11:09:07 cannot create charger 'wallbox4': cannot create charger 'template': cannot create charger 'easee': i/o timeout
[main ] FATAL 2023/05/09 11:09:07 will attempt restart in: 5m0s
[easee ] TRACE 2023/05/09 11:09:12 POST https://api.easee.cloud/hubs/chargers/negotiate
[easee ] TRACE 2023/05/09 11:09:13 The "/hubs" endpoint is moved from api.easee.cloud to streaming.easee.com
[easee ] TRACE 2023/05/09 11:09:13 level=info connect=POST https://api.easee.cloud/hubs/chargers/negotiate -> 410 Gone
^C
jens@server2:/opt/evcc$
Basically the endpoint has moved:
[easee ] TRACE 2023/05/09 11:08:49 The "/hubs" endpoint is moved from api.easee.cloud to streaming.easee.com
Best regards
Jens
nach einem neustart von evcc funktioniert nun auch meine easse/evcc gar nicht mehr (vorher lief alles), nur der neustart machte es kaputt:
[easee ] TRACE 2023/05/09 11:38:28 POST https://api.easee.cloud/hubs/chargers/negotiate [easee ] TRACE 2023/05/09 11:38:28 The "/hubs" endpoint is moved from api.easee.cloud to streaming.easee.com [easee ] TRACE 2023/05/09 11:38:28 level=info connect=POST https://api.easee.cloud/hubs/chargers/negotiate -> 410 Gone [main ] FATAL 2023/05/09 11:38:28 cannot create charger 'easeeRechts': cannot create charger 'template': cannot create charger 'easee': i/o timeout
https://developer.easee.cloud/changelog doesn't mention any changes.
https://developer.easee.cloud/changelog doesn't mention any changes.
This seems not to be well maintainted since the latest entry is 3 months old. :-(
Neither Google, Bing nor Twitter know "streaming.easee.com" - that's strange. By the way, it still worked this morning, including restart.
I have the exact same issue
I have also the exact same issue :-(
Neither Google, Bing nor Twitter know "streaming.easee.com" - that's strange. By the way, it still worked this morning, including restart.
a ping and https://streaming.easee.com/hubs/chargers/negotiate also not work... looks like eassee problem
ich habe mal ein ticket eröffnet bei denen, mal schauen was zurück kommt.
return signalr.NewHTTPConnection(ctx, "https://streams.easee.com/hubs/chargers",
hilft
wie oben geschrieben: deren eigene web-app unter https://easee.cloud macht den call zu streams.easee.com. ich weis nicht, ob das nun so fix ist, oder ob es ein offizielles statement von easee gibt.
aber wenn ich evcc damit patche, kann ich es wieder starten.
wie oben geschrieben: deren eigene web-app unter
https://easee.cloudmacht den call zustreams.easee.com. ich weis nicht, ob das nun so fix ist, oder ob es ein offizielles statement von easee gibt.aber wenn ich evcc damit patche, kann ich es wieder starten.
Kannst du es nur starten oder funktioniert auch die Steuerung der Wallbox wieder? Und wie kann ich das als Normalo-Nutzer selbst patchen?
Dito bei mir gleicher Fehler! Wie kann ich als Laie das patchen?
als laie kaum .muss man den source ändern und neu kompilieren. und @Schlichi83 ob steuerung geht kann ich nicht sagen, ich hab grad nix zum laden, aber ich krieg wieder die daten von easee über den stream:
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: CABLE_LOCKED false
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: SELF_TEST_RESULT {"status":"3","timestamp":1653663925,"backplateId":"8072D692C05204"}
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: CHARGER_OP_MODE 1
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: SESSION_ENERGY 18.126087188720703
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: SMART_CHARGING true
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: TOTAL_POWER 0
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: ENERGY_PER_HOUR 6.67385196685791
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: WI_FI_RSSI -69
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: CELL_RSSI -73
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: OUTPUT_PHASE 0
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: DYNAMIC_CIRCUIT_CURRENT_P1 16
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: DYNAMIC_CIRCUIT_CURRENT_P2 16
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: DYNAMIC_CIRCUIT_CURRENT_P3 16
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: SOFTWARE_RELEASE 310
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: TEMP_MAX 31
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: CHARGER_RAT 1
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: LOCK_CABLE_PERMANENTLY false
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: IN_CURRENT_T2 0
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: IN_CURRENT_T3 0
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: IN_CURRENT_T4 0
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: IN_CURRENT_T5 0
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: OUTPUT_CURRENT 0
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: IN_VOLT_T2_T4 239.44500732421875
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: IN_VOLT_T2_T3 245.32400512695312
[easee ] TRACE 2023/05/09 12:41:23 ProductUpdate xxxxx: IN_VOLT_T2_T5 232.01499938964844
Könnte es funktionieren, über das hosts file (bei mir unter Windows) rezudirecten, also für api.easee.cloud die IP von streams.easee.com zurückzugeben? Ich vermute mal wegen ssl geht es nicht.
einerseits denk ich, dass deren system anhand des host-headers dispatched und der name dann eben streams.easee.com sein muss. und andererseits ist das cert von dort halt auch nicht passend:
* Server certificate:
* subject: CN=*.easee.com
* start date: Apr 19 00:00:00 2023 GMT
* expire date: May 17 23:59:59 2024 GMT
* subjectAltName: host "streams.easee.com" matched cert's "*.easee.com"
* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02
* SSL certificate verify ok.
*
Wäre es evtl. möglich übergangsweise zwei EASEE Module einzubauen? Eins mit der alten URL, eins mit der neuen? Dann könnte man zurückswitchen, falls die das wieder zurück ändern und wäre flexibel. Ich merke jedenfalls immer mehr, dass es ein Fehler war, die EASEE zu kaufen und keine Wallbox die komplett lokal läuft.
@ulrichSchreiner PR wäre Klasse!
@andig würde ja gerne, aber ich konnte meinen uralt-fork nicht updaten. hab ihn gelöscht und jetzt lässt mich github nich forken, sondern liefert nen 500er. laut status auf https://www.githubstatus.com/ haben die grad probleme ...
tja, würde gerne, kann aber nicht :smile:
gleiches Problem bei mir. Kann EVCC nicht mehr starten. Ist während dem überschussladen nach deren Maintenance hängen geblieben und nu geht nichts mehr. Für eine Lösung wäre ich sehr dankbar....
da github grad nicht geht: wenn jemand evcc mit docker unter linux nutzt, kann er/sie temporär das image registry.gitlab.com/ulrichschreiner/evcc:latest probieren (https://gitlab.com/ulrichSchreiner/evcc/container_registry)
es sind hier drei patches drin:
- einmal, dass es mit gitlabci baut (https://gitlab.com/ulrichSchreiner/evcc/-/jobs/4250575022)
- im Dockerfile musste ich das tool
patchreinpatchen - und der o.g. easee-patch
https://gitlab.com/ulrichSchreiner/evcc/-/commits/usc?ref_type=heads