flobz / psa_car_controller

Control psa car with connected_car v4 API.
GNU General Public License v3.0
439 stars 235 forks source link

Controller crashes with ConnectionError in Home Assistant. #999

Open grahamrjuk opened 1 week ago

grahamrjuk commented 1 week ago

Describe the bug I don't like adding to the list of difficulties with the PSA controller, but I can't start the controller in Home Assistant, always getting: ConnectionError, see log below. The controller tries to start several times and gives up. Since the controller fails to start I can't try to configure it again.

To Reproduce Steps to reproduce the behavior:

  1. what command did you use - Home Assistant
  2. when the bug happend ? - about a week ago (around 2024-11-10)
  3. Does it persist after restarting the program? - Yes
  4. Does it persist after recreate config by going to http://server_address:port/config? - The system doesn't start so I can't go and recreate the config. I have cleared the config file I had, in case it was preventing the system starting.

Config file Config file is essentially empty:

{
    "abrp": {
        "abrp_enable_vin": [],
        "token": ""
    },
    "client_id": "",
    "client_secret": "",
    "co2_signal_api": null,
    "country_code": "GB",
    "customer_id": "",
    "proxies": {
        "http": "",
        "https": ""
    },
    "realm": "clientsB2CVauxhall",
    "refresh_token": null,
    "remote_refresh_token": "",
    "weather_api": ""
}

Environment (please complete the following information):

Additional context