functionpointer / home-assistant-chargecloud-integration

Fetches real-time status of public ev chargers from chargecloud.de
6 stars 2 forks source link

Incorrect status of chargers #5

Open KoenvanH opened 10 months ago

KoenvanH commented 10 months ago

There seems to be an error in the free/busy display of (some) charging station IDs. For example, NLLMSE1000092125*1, this has been showing with status 'charging' for a very long time, but it is indeed free at many moments 😊 The status of this charging station is correct on ladenetz.de.

LagaV commented 8 months ago

I have a similar challenge. Some of the TankE charging outlets are no longer individually available, just showing "Unavailable" in Homeassistant, but also in their TankE app, but in their app they show the aggregate status of the the charging station (two charging outlets) correctly. Onsite both charging outlets operate fine.

Is there a way to access this aggregate state?

My example (one charging point with two charging outlets): DETNKE0026201 DETNKE0026202

LagaV commented 8 months ago

Deleted my TankE sensors and wanted to add them again which is unfortunately not possible.

Might this be also related to the operator ID?

Inspecting their website I can extract this URL:

https://api.chargecloud.de/rest:contract/d018c2c8d1c8f63be6923a6282eec650/getEmobilityLocationsDataDetails?offset=0&limit=100&evseId=DE*TNK*E00262*01

With this return:

{"success":true,"errorCode":null,"messageLocalized":null,"dataType":"array","data":[{"id":"1504715","name":"[LIS-K] Pf\u00e4lzer Stra\u00dfe 1B","status":"active","address":"Pf\u00e4lzer Stra\u00dfe 1B","city":"K\u00f6ln","postal_code":"50677","country":"DE","directions":"Nach Auswahl eines untenstehenden Ladepunktes erhalten Sie detaillierte Informationen zum Tarif und zu den Zeitgeb\u00fchren.","coordinates":{"latitude":"50.924235","longitude":"6.943530"},"distance_in_m":"0","operator":{"operatorId":"TNK","name":"TankE GmbH","hotline":"+498004393030"},"opening_times":{"twentyfourseven":true},"owner":null,"roaming":false,"evses":[{"uid":"4718971","id":"DE*TNK*E00262*01","status":"CHARGING","reservable":false,"capabilities":["RFID_READER","REMOTE_START_STOP_CAPABLE"],"physical_reference":null,"floor_level":"","vehicle_type":"four_wheeled","chargePointPosition":null,"chargePointPublicComment":null,"chargePointParkingSpaceNumbers":null,"chargingStationPosition":null,"roaming":false,"connectors":[{"id":"267564419","status":"CHARGING","standard":"IEC_62196_T2","format":"SOCKET","power_type":"AC_3_PHASE","ampere":"32","voltage":"400","max_power":22,"tariff_id":"24295ac"}]}],"tariffZones":["7111"]}]}

OperatorID TNK also added to pychargecloud and tested locally. TankE stations no again fully visbile in Home Assistant - change commited to GitHub TNK --> d018c2c8d1c8f63be6923a6282eec650

functionpointer commented 8 months ago

Thanks for the PR https://github.com/functionpointer/pychargecloud/pull/2. I have made new releases both for pychargecloud and the integration

LagaV commented 8 months ago

There seems to be an error in the free/busy display of (some) charging station IDs. For example, NLLMSE1000092125*1, this has been showing with status 'charging' for a very long time, but it is indeed free at many moments 😊 The status of this charging station is correct on ladenetz.de.

@KoenvanH can you provide some more details on the mentioned charging station / the charging network, as per https://[www.benelux-idro.eu/en/id-register](https://www.benelux-idro.eu/en/id-register) "LMS" is not mentioned as network provider.

arievanderwende commented 3 weeks ago

@LagaV, I have the same issue with multiple chargers of Allego, e.g., NLALLEGO0002571 and NLALLEGO0002572. The first is reporting OCCUPIED and the second is reporting AVAILABLE at the moment, but checking ladenetz.de both are reported to be in use, which is correct. It seems like the sensors are not updating.