yoziru / esphome-tesla-ble

Interact with Tesla vehicles over BLE using ESPHome and Home Assistant
GNU Affero General Public License v3.0
88 stars 17 forks source link

There is no possibility to check if charging process was sucessfull. #62

Open pszabaciuk opened 3 months ago

pszabaciuk commented 3 months ago

Hello. In official tesla ble api (vehicle command git repository), when there is let say charging limit set to 50%, and vehicle is battery level is 60%, while try to start charging, there is a special return indicating, the battery is charged. When I switch charging state in esphome, I get 200 but in logs I can see: [setChargingSwitch] Received CarServer ERROR message, retrying command. Could you provide state of charging? Or at least some feedback, that we should not try to start charging because of battery is charged?

mrd0n commented 3 months ago

Two thoughts:

1) You can see success of the charging commands with the Tesla mobile app.

2) If you haven't looked into Home Assistant, it offers the ability to see charging status and many other Tesla attributes via the "Tesla Custom Integration". Basically with the ESP32 adopted and integrated, the charging can be controlled by Home Assistant either manually or using an automation.