Ich hatte auch das Wochenende Probleme, dass er nicht alle Trips und Ladevorgänge aufgezeichnet hatte und habe deshalb mal die Container durchgetreten. Im Log kommt bei mir auch der Fehler mit dem Unknown attribute climatisationTemperatureOutside.
Ein paar Zeilen weiter unten kommt ein StackTrace, der glaube ich aber wegen was anderem kommt. Ich hatte seit gestern die Warnlampe wegen Wischwasser nachfüllen an.
2024-09-08T19:08:42+0000:INFO:warning_light_agent:Vehicle WVWZZZE1XXXXXXXXX has still 0 warning lights on in the database.
2024-09-08T19:08:42+0000:INFO:warning_light_agent:Warning light 0xA227 in vehicle WVWZZZE1XXXXXXXXX turned on
Traceback (most recent call last):
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context
self.dialect.do_execute(
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 924, in do_execute
cursor.execute(statement, parameters)
psycopg2.errors.InvalidTextRepresentation: invalid input value for enum category: "OTHER"
LINE 1: ...timestamptz, 18184, NULL, NULL, 'TEXT_NOT_FOUND', 'OTHER', '...
^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/venv/bin/vwsfriend", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/venv/lib/python3.12/site-packages/vwsfriend/vwsfriend_base.py", line 519, in main
weConnect.update(updateCapabilities=True, updatePictures=True, force=True, selective=[Domain.ACCESS,
File "/opt/venv/lib/python3.12/site-packages/weconnect/weconnect.py", line 197, in update
self.updateComplete()
File "/opt/venv/lib/python3.12/site-packages/weconnect/addressable.py", line 533, in updateComplete
child.updateComplete()
File "/opt/venv/lib/python3.12/site-packages/weconnect/addressable.py", line 533, in updateComplete
child.updateComplete()
File "/opt/venv/lib/python3.12/site-packages/weconnect/addressable.py", line 534, in updateComplete
super().updateComplete()
File "/opt/venv/lib/python3.12/site-packages/weconnect/addressable.py", line 96, in updateComplete
observer(element=self, flags=self.onCompleteNotifyFlags)
File "/opt/venv/lib/python3.12/site-packages/vwsfriend/agent_connector.py", line 122, in onEnable
self.agents[element.vin.value].append(WarningLightAgent(session=self.Session(), vehicle=foundVehicle))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/vwsfriend/agents/warning_light_agent.py", line 27, in __init__
self.__onCarCapturedTimestampChange(self.vehicle.weConnectVehicle.domains['vehicleHealthWarnings']['warningLights'].carCapturedTimestamp, None)
File "/opt/venv/lib/python3.12/site-packages/vwsfriend/agents/warning_light_agent.py", line 64, in __onCarCapturedTimestampChange
with self.session.begin_nested():
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 1958, in begin_nested
return self.begin(nested=True)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 1924, in begin
trans = trans._begin(nested=nested)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 2, in _begin
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
ret_value = fn(self, *arg, **kw)
^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 1045, in _begin
return SessionTransaction(
^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 960, in __init__
self._take_snapshot()
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 1089, in _take_snapshot
self.session.flush()
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 4341, in flush
self._flush(objects)
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 4476, in _flush
with util.safe_reraise():
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
raise exc_value.with_traceback(exc_tb)
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 4437, in _flush
flush_context.execute()
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/orm/unitofwork.py", line 466, in execute
rec.execute(self)
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/orm/unitofwork.py", line 642, in execute
util.preloaded.orm_persistence.save_obj(
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/orm/persistence.py", line 93, in save_obj
_emit_insert_statements(
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/orm/persistence.py", line 1233, in _emit_insert_statements
result = connection.execute(
^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1418, in execute
return meth(
^^^^^
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection
return connection._execute_clauseelement(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement
ret = self._execute_context(
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context
return self._exec_single_context(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context
self._handle_dbapi_exception(
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2353, in _handle_dbapi_exception
raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context
self.dialect.do_execute(
File "/opt/venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 924, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.DataError: (psycopg2.errors.InvalidTextRepresentation) invalid input value for enum category: "OTHER"
LINE 1: ...timestamptz, 18184, NULL, NULL, 'TEXT_NOT_FOUND', 'OTHER', '...
^
[SQL: INSERT INTO warning_lights (vehicle_vin, start, start_mileage, "end", end_mileage, text, category, "messageId", priority, "serviceLead", "customerRelevance") VALUES (%(vehicle_vin)s, %(start)s, %(start_mileage)s, %(end)s, %(end_mileage)s, %(text)s, %(category)s, %(messageId)s, %(priority)s, %(serviceLead)s, %(customerRelevance)s) RETURNING warning_lights.id]
[parameters: {'vehicle_vin': 'WVWZZZE1XXXXXXXXX', 'start': datetime.datetime(2024, 9, 8, 16, 0, 39, tzinfo=datetime.timezone.utc), 'start_mileage': 18184, 'end': None, 'end_mileage': None, 'text': 'TEXT_NOT_FOUND', 'category': 'OTHER', 'messageId': '0xA227', 'priority': 125, 'serviceLead': False, 'customerRelevance': None}]
(Background on this error at: https://sqlalche.me/e/20/9h9h)
Alles anzeigen
Ich fahr jetzt nochmal paar Meter zum Laden und guck mal, wie es sich verhält, wenn die Warnung wieder weg ist und ob er deshalb ausgestiegen ist bei der Trip und Ladeaufzeichnung.