I noticed we are having again log-in issues.
On 2026-08-11,00:08:05 Irish time (2026-08-10,23:08:05 UTC) I started automatically my car charge my Kona-odo script worked fine, but on 2026-08-11,07:58:03 Irish time (2026-08-11,06:58:03 UTC) when I stopped the charge, the script failed and it is failing ever since.
Traceback (most recent call last):
File "/cinemateka/scripts/Kona-odo.py", line 22, in <module>
vm.check_and_refresh_token()
File "/usr/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 196, in check_and_refresh_token
if self.login() is True:
^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 98, in login
result = self.api.login(
^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 182, in login
access_token, refresh_token, expires_in = self._login_with_password(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 293, in _login_with_password
raise AuthenticationError(
hyundai_kia_connect_api.exceptions.AuthenticationError: Authentication failed — returned to login page. Check username and password.
root@cinemateka:[system-connections]#
The script is very simply and has not changed for a while:
root@cinemateka:[scripts]# cat Kona-odo.py
#!/usr/bin/python3
from datetime import datetime
from pytz import timezone
import sys
import logging
from hyundai_kia_connect_api import *
import importlib.util
spec = importlib.util.spec_from_file_location("libKona", "/cinemateka/libs/libKona.py")
libKona = importlib.util.module_from_spec(spec)
sys.modules["libKona"] = libKona
spec.loader.exec_module(libKona)
force_refresh_interval = 3600
Start = datetime.now(timezone('UTC'))
TimeFormat = "%Y-%m-%d,%H:%M:%S"
vm = VehicleManager(region=1, brand=2, username=libKona.Uname, password=libKona.Password, pin=libKona.Pin)
vm.check_and_refresh_token()
vm.update_all_vehicles_with_cached_state()
for vehicle_id in vm.vehicles.keys():
vehicle = vm.get_vehicle(vehicle_id)
if vehicle.last_updated_at is not None:
if ( Start - vehicle.last_updated_at ).total_seconds() > force_refresh_interval:
vm.force_refresh_vehicle_state(vehicle_id)
vm.update_all_vehicles_with_cached_state()
kona = vm.get_vehicle(libKona.CarId)
print(f"{Start.astimezone(timezone('IST')).strftime(TimeFormat)},{kona._odometer}")
root@cinemateka:[scripts]#
I noticed we are having again log-in issues.
On 2026-08-11,00:08:05 Irish time (2026-08-10,23:08:05 UTC) I started automatically my car charge my Kona-odo script worked fine, but on 2026-08-11,07:58:03 Irish time (2026-08-11,06:58:03 UTC) when I stopped the charge, the script failed and it is failing ever since.
The script is very simply and has not changed for a while: