SoC: OVMS

Alles rund um SoC (Ladezustand des Fahrzeuges). Probleme, Fragen, Fehlfunktionen gehören hier hin
rleidner
Beiträge: 1184
Registriert: Mo Nov 02, 2020 9:50 am
Has thanked: 10 times
Been thanked: 77 times

Re: SoC: OVMS

Beitrag von rleidner »

Fehler ist behoben, PR: https://github.com/openWB/core/pull/2042
Ich mach hier ein update wenn es im master gemerged ist.
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Kia EV6, Smart EQ forfour
rleidner
Beiträge: 1184
Registriert: Mo Nov 02, 2020 9:50 am
Has thanked: 10 times
Been thanked: 77 times

Re: SoC: OVMS

Beitrag von rleidner »

rleidner hat geschrieben: So Dez 01, 2024 12:52 pm Fehler ist behoben, PR: https://github.com/openWB/core/pull/2042
Ich mach hier ein update wenn es im master gemerged ist.
Ist jetzt gemerged im master, 2.1.7-Alpha.1, 2024-12-12 16:34:43 +0100 [2256710a8]++
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Kia EV6, Smart EQ forfour
hengsti
Beiträge: 34
Registriert: Fr Dez 18, 2020 3:01 pm
Has thanked: 1 time

Re: SoC: OVMS

Beitrag von hengsti »

Jetzt funktioniert es. Vielen Dank.
rleidner
Beiträge: 1184
Registriert: Mo Nov 02, 2020 9:50 am
Has thanked: 10 times
Been thanked: 77 times

Re: SoC: OVMS

Beitrag von rleidner »

👍
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Kia EV6, Smart EQ forfour
Raoul1981
Beiträge: 4
Registriert: So Feb 09, 2025 9:36 pm

Re: SoC: OVMS

Beitrag von Raoul1981 »

Hallo,
ich habe seit heute ein OVMS-Modul bekommen. Über App, Dexter und IP im WLAN kann ich überall problemlos die Werte abgreifen.
Leider bekomme ich das Modul nicht in meiner openWB 2.1.6-Patch.1 eingebunden. SoC steht immer auf 0%. Als Server habe ich https://ovms.dexters-web.de eingetragen.

Folgender Fehler wird angezeigt:
Modulmeldung:
<class 'json.decoder.JSONDecodeError'> ('Expecting value: line 1 column 1 (char 0)',)

Hat jemand eine Idee wo mein Fehler liegt?

Danke vorab.
rleidner
Beiträge: 1184
Registriert: Mo Nov 02, 2020 9:50 am
Has thanked: 10 times
Been thanked: 77 times

Re: SoC: OVMS

Beitrag von rleidner »

Raoul1981 hat geschrieben: So Feb 09, 2025 9:40 pm Hallo,
ich habe seit heute ein OVMS-Modul bekommen. Über App, Dexter und IP im WLAN kann ich überall problemlos die Werte abgreifen.
Leider bekomme ich das Modul nicht in meiner openWB 2.1.6-Patch.1 eingebunden. SoC steht immer auf 0%. Als Server habe ich https://ovms.dexters-web.de eingetragen.

Folgender Fehler wird angezeigt:
Modulmeldung:
<class 'json.decoder.JSONDecodeError'> ('Expecting value: line 1 column 1 (char 0)',)

Hat jemand eine Idee wo mein Fehler liegt?

Danke vorab.
Ist das die gesamte Fehlermeldung?
Da sollte eigentlich mehr stehen.
Log-Auszug bitte als code block posten Button </> oben.

EDIT:
Als Server URL bitte dies eintragen: https://ovms.dexters-web.de:6869
Auf der Fahrzeug-Konfigurationsseite gibt es zu jedem Feld ein (?) hinter dem Label.
Click drauf und es kommen Hinweise.

EDIT2: Ich sehe gerade weiter oben, dass das erst in 2.1.7 richtig funktioniert.
Also entweder auf 2.1.7 Release Candidate 1 updaten (Entwicklungszweig BETA) oder ein paar Tage warten, bis 2.1.7 final released wird.
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Kia EV6, Smart EQ forfour
Raoul1981
Beiträge: 4
Registriert: So Feb 09, 2025 9:36 pm

Re: SoC: OVMS

Beitrag von Raoul1981 »

Code: Alles auswählen

2025-02-09 22:59:53,405 - {modules.common.utils.component_parser:33} - {ERROR:MainThread} - Fehlerstatus in Komponente Sma Sunny Boy/Tripower Wechselrichter. Werte werden nicht aktualisiert.
2025-02-09 22:59:53,593 - {control.counter_all:172} - {WARNING:MainThread} - Komponente inverter22 ist im Fehlerzustand und wird nicht berücksichtigt.
2025-02-09 22:59:55,185 - {helpermodules.utils._thread_handler:40} - {ERROR:MainThread} - Thread smarthome ist bereits aktiv und wird nicht erneut gestartet.
2025-02-09 23:00:06,178 - {pymodbus.client.sync:218} - {ERROR:device17} - Connection to (192.168.124.28, 502) failed: timed out
2025-02-09 23:00:06,180 - {modules.common.fault_state:49} - {ERROR:device17} - Sma Sunny Boy/Tripower Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr <class 'pymodbus.exceptions.ConnectionException'> ('Failed to connect[ModbusTcpClient(192.168.124.28:502)]', 'Modbus-Client konnte keine Verbindung zu 192.168.124.28:502 aufbauen. Bitte Einstellungen, IP-Adresse und Port sowie Netzwerk-Anschluss prüfen.'), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_device.py", line 36, in __call__
    self.__updater(components_list)
  File "/var/www/html/openWB/packages/modules/devices/sma/sma_sunny_boy/device.py", line 41, in update_components
    with client:
  File "/var/www/html/openWB/packages/modules/common/modbus.py", line 65, in __enter__
    raise e
  File "/var/www/html/openWB/packages/modules/common/modbus.py", line 61, in __enter__
    self._delegate.__enter__()
  File "/home/openwb/.local/lib/python3.9/site-packages/pymodbus/client/sync.py", line 120, in __enter__
    raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.124.28:502)]

2025-02-09 23:00:06,207 - {modules.common.utils.component_parser:33} - {ERROR:MainThread} - Fehlerstatus in Komponente Sma Sunny Boy/Tripower Wechselrichter. Werte werden nicht aktualisiert.
2025-02-09 23:00:06,507 - {control.counter_all:172} - {WARNING:MainThread} - Komponente inverter22 ist im Fehlerzustand und wird nicht berücksichtigt.
2025-02-09 23:00:08,193 - {modules.common.fault_state:49} - {ERROR:electricity tariff} - Energy-Charts: FaultState FaultStateLevel.ERROR, FaultStr OSError None: Unbekannter Fehler None, Traceback: 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.9/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/lib/python3.9/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.9/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.9/socket.py", line 704, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.9/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.9/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 532, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/lib/python3/dist-packages/six.py", line 719, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 447, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 336, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.energy-charts.info', port=443): Read timed out. (read timeout=5)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_tariff.py", line 27, in update
    tariff_state = self._component_updater()
  File "/var/www/html/openWB/packages/modules/electricity_tariffs/energycharts/tariff.py", line 39, in updater
    return TariffState(prices=fetch_prices(config.configuration))
  File "/var/www/html/openWB/packages/modules/electricity_tariffs/energycharts/tariff.py", line 28, in fetch_prices
    raw_prices = req.get_http_session().get(url).json()
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/var/www/html/openWB/packages/modules/common/req.py", line 16, in request
    return super().request(method, url, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.energy-charts.info', port=443): Read timed out. (read timeout=5)

2025-02-09 23:00:10,930 - {helpermodules.utils._thread_handler:40} - {ERROR:MainThread} - Thread smarthome ist bereits aktiv und wird nicht erneut gestartet.
2025-02-09 23:00:14,001 - {pymodbus.client.sync:218} - {ERROR:device17} - Connection to (192.168.124.28, 502) failed: timed out
2025-02-09 23:00:14,002 - {modules.common.fault_state:49} - {ERROR:device17} - Sma Sunny Boy/Tripower Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr <class 'pymodbus.exceptions.ConnectionException'> ('Failed to connect[ModbusTcpClient(192.168.124.28:502)]', 'Modbus-Client konnte keine Verbindung zu 192.168.124.28:502 aufbauen. Bitte Einstellungen, IP-Adresse und Port sowie Netzwerk-Anschluss prüfen.'), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_device.py", line 36, in __call__
    self.__updater(components_list)
  File "/var/www/html/openWB/packages/modules/devices/sma/sma_sunny_boy/device.py", line 41, in update_components
    with client:
  File "/var/www/html/openWB/packages/modules/common/modbus.py", line 65, in __enter__
    raise e
  File "/var/www/html/openWB/packages/modules/common/modbus.py", line 61, in __enter__
    self._delegate.__enter__()
  File "/home/openwb/.local/lib/python3.9/site-packages/pymodbus/client/sync.py", line 120, in __enter__
    raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.124.28:502)]

2025-02-09 23:00:14,031 - {modules.common.utils.component_parser:33} - {ERROR:MainThread} - Fehlerstatus in Komponente Sma Sunny Boy/Tripower Wechselrichter. Werte werden nicht aktualisiert.
2025-02-09 23:00:14,185 - {control.counter_all:172} - {WARNING:MainThread} - Komponente inverter22 ist im Fehlerzustand und wird nicht berücksichtigt.
2025-02-09 23:00:23,779 - {pymodbus.client.sync:218} - {ERROR:device17} - Connection to (192.168.124.28, 502) failed: timed out
2025-02-09 23:00:23,781 - {modules.common.fault_state:49} - {ERROR:device17} - Sma Sunny Boy/Tripower Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr <class 'pymodbus.exceptions.ConnectionException'> ('Failed to connect[ModbusTcpClient(192.168.124.28:502)]', 'Modbus-Client konnte keine Verbindung zu 192.168.124.28:502 aufbauen. Bitte Einstellungen, IP-Adresse und Port sowie Netzwerk-Anschluss prüfen.'), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_device.py", line 36, in __call__
    self.__updater(components_list)
  File "/var/www/html/openWB/packages/modules/devices/sma/sma_sunny_boy/device.py", line 41, in update_components
    with client:
  File "/var/www/html/openWB/packages/modules/common/modbus.py", line 65, in __enter__
    raise e
  File "/var/www/html/openWB/packages/modules/common/modbus.py", line 61, in __enter__
    self._delegate.__enter__()
  File "/home/openwb/.local/lib/python3.9/site-packages/pymodbus/client/sync.py", line 120, in __enter__
    raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.124.28:502)]

2025-02-09 23:00:23,826 - {modules.common.utils.component_parser:33} - {ERROR:MainThread} - Fehlerstatus in Komponente Sma Sunny Boy/Tripower Wechselrichter. Werte werden nicht aktualisiert.
2025-02-09 23:00:24,057 - {control.counter_all:172} - {WARNING:MainThread} - Komponente inverter22 ist im Fehlerzustand und wird nicht berücksichtigt.
2025-02-09 23:00:25,604 - {helpermodules.utils._thread_handler:40} - {ERROR:MainThread} - Thread smarthome ist bereits aktiv und wird nicht erneut gestartet.
Ich verstehe kein Wort von all diesen Zeilen. Ich hoffe, diese Daten helfen dir.
rleidner
Beiträge: 1184
Registriert: Mo Nov 02, 2020 9:50 am
Has thanked: 10 times
Been thanked: 77 times

Re: SoC: OVMS

Beitrag von rleidner »

Das ist nicht der soc log, aber da funktioniert ausser dem ovms soc noch mehr nicht.
Ich habe oben bereits geschrieben, was für den ovms soc zu tun ist.
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Kia EV6, Smart EQ forfour
Raoul1981
Beiträge: 4
Registriert: So Feb 09, 2025 9:36 pm

Re: SoC: OVMS

Beitrag von Raoul1981 »

Das sollte jetzt der Soc-Log der letzten beiden Tage sein:

Code: Alles auswählen

2025-02-09 22:01:13,141 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev2} - OVMS: FaultState FaultStateLevel.ERROR, FaultStr <class 'json.decoder.JSONDecodeError'> ('Expecting value: line 1 column 1 (char 0)',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 110, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 24, in updater
    return fetch(vehicle_update_data, vehicle_config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 18, in fetch
    soc, range, soc_ts = api.fetch_soc(config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 190, in fetch_soc
    soc, range, soc_ts = loop.run_until_complete(a._fetch_soc(conf, vehicle))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 143, in _fetch_soc
    self.token = self.create_token()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 53, in create_token
    tokenDict = loads(resp.text)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2025-02-09 22:02:32,934 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev2} - OVMS: FaultState FaultStateLevel.ERROR, FaultStr <class 'json.decoder.JSONDecodeError'> ('Expecting value: line 1 column 1 (char 0)',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 110, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 24, in updater
    return fetch(vehicle_update_data, vehicle_config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 18, in fetch
    soc, range, soc_ts = api.fetch_soc(config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 190, in fetch_soc
    soc, range, soc_ts = loop.run_until_complete(a._fetch_soc(conf, vehicle))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 143, in _fetch_soc
    self.token = self.create_token()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 53, in create_token
    tokenDict = loads(resp.text)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2025-02-09 22:03:39,713 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev2} - OVMS: FaultState FaultStateLevel.ERROR, FaultStr <class 'json.decoder.JSONDecodeError'> ('Expecting value: line 1 column 1 (char 0)',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 110, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 24, in updater
    return fetch(vehicle_update_data, vehicle_config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 18, in fetch
    soc, range, soc_ts = api.fetch_soc(config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 190, in fetch_soc
    soc, range, soc_ts = loop.run_until_complete(a._fetch_soc(conf, vehicle))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 143, in _fetch_soc
    self.token = self.create_token()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 53, in create_token
    tokenDict = loads(resp.text)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2025-02-09 22:09:23,815 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev2} - OVMS: FaultState FaultStateLevel.ERROR, FaultStr <class 'json.decoder.JSONDecodeError'> ('Expecting value: line 1 column 1 (char 0)',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 110, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 24, in updater
    return fetch(vehicle_update_data, vehicle_config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 18, in fetch
    soc, range, soc_ts = api.fetch_soc(config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 190, in fetch_soc
    soc, range, soc_ts = loop.run_until_complete(a._fetch_soc(conf, vehicle))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 143, in _fetch_soc
    self.token = self.create_token()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 53, in create_token
    tokenDict = loads(resp.text)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2025-02-09 22:12:07,203 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev2} - OVMS: FaultState FaultStateLevel.ERROR, FaultStr <class 'json.decoder.JSONDecodeError'> ('Expecting value: line 1 column 1 (char 0)',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 110, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 24, in updater
    return fetch(vehicle_update_data, vehicle_config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 18, in fetch
    soc, range, soc_ts = api.fetch_soc(config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 190, in fetch_soc
    soc, range, soc_ts = loop.run_until_complete(a._fetch_soc(conf, vehicle))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 143, in _fetch_soc
    self.token = self.create_token()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 53, in create_token
    tokenDict = loads(resp.text)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2025-02-09 23:05:10,521 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev2} - OVMS: FaultState FaultStateLevel.ERROR, FaultStr <class 'json.decoder.JSONDecodeError'> ('Expecting value: line 1 column 1 (char 0)',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 110, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 24, in updater
    return fetch(vehicle_update_data, vehicle_config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 18, in fetch
    soc, range, soc_ts = api.fetch_soc(config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 190, in fetch_soc
    soc, range, soc_ts = loop.run_until_complete(a._fetch_soc(conf, vehicle))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 143, in _fetch_soc
    self.token = self.create_token()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 53, in create_token
    tokenDict = loads(resp.text)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2025-02-10 00:24:26,816 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev2} - OVMS: FaultState FaultStateLevel.ERROR, FaultStr <class 'json.decoder.JSONDecodeError'> ('Expecting value: line 1 column 1 (char 0)',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 110, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 24, in updater
    return fetch(vehicle_update_data, vehicle_config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 18, in fetch
    soc, range, soc_ts = api.fetch_soc(config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 190, in fetch_soc
    soc, range, soc_ts = loop.run_until_complete(a._fetch_soc(conf, vehicle))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 143, in _fetch_soc
    self.token = self.create_token()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 53, in create_token
    tokenDict = loads(resp.text)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2025-02-10 00:24:35,521 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev2} - OVMS: FaultState FaultStateLevel.ERROR, FaultStr <class 'json.decoder.JSONDecodeError'> ('Expecting value: line 1 column 1 (char 0)',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 110, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 24, in updater
    return fetch(vehicle_update_data, vehicle_config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 18, in fetch
    soc, range, soc_ts = api.fetch_soc(config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 190, in fetch_soc
    soc, range, soc_ts = loop.run_until_complete(a._fetch_soc(conf, vehicle))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 143, in _fetch_soc
    self.token = self.create_token()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 53, in create_token
    tokenDict = loads(resp.text)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2025-02-10 00:26:14,699 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev2} - OVMS: FaultState FaultStateLevel.ERROR, FaultStr <class 'json.decoder.JSONDecodeError'> ('Expecting value: line 1 column 1 (char 0)',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 110, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 24, in updater
    return fetch(vehicle_update_data, vehicle_config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 18, in fetch
    soc, range, soc_ts = api.fetch_soc(config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 190, in fetch_soc
    soc, range, soc_ts = loop.run_until_complete(a._fetch_soc(conf, vehicle))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 143, in _fetch_soc
    self.token = self.create_token()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 53, in create_token
    tokenDict = loads(resp.text)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2025-02-10 00:26:15,631 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev2} - OVMS: FaultState FaultStateLevel.ERROR, FaultStr <class 'json.decoder.JSONDecodeError'> ('Expecting value: line 1 column 1 (char 0)',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 110, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 24, in updater
    return fetch(vehicle_update_data, vehicle_config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 18, in fetch
    soc, range, soc_ts = api.fetch_soc(config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 190, in fetch_soc
    soc, range, soc_ts = loop.run_until_complete(a._fetch_soc(conf, vehicle))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 143, in _fetch_soc
    self.token = self.create_token()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 53, in create_token
    tokenDict = loads(resp.text)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2025-02-10 00:31:49,481 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev2} - OVMS: FaultState FaultStateLevel.ERROR, FaultStr <class 'json.decoder.JSONDecodeError'> ('Expecting value: line 1 column 1 (char 0)',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 110, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 24, in updater
    return fetch(vehicle_update_data, vehicle_config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 18, in fetch
    soc, range, soc_ts = api.fetch_soc(config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 190, in fetch_soc
    soc, range, soc_ts = loop.run_until_complete(a._fetch_soc(conf, vehicle))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 143, in _fetch_soc
    self.token = self.create_token()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 53, in create_token
    tokenDict = loads(resp.text)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2025-02-10 10:26:25,050 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev2} - OVMS: FaultState FaultStateLevel.ERROR, FaultStr <class 'json.decoder.JSONDecodeError'> ('Expecting value: line 1 column 1 (char 0)',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 110, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 24, in updater
    return fetch(vehicle_update_data, vehicle_config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/soc.py", line 18, in fetch
    soc, range, soc_ts = api.fetch_soc(config, vehicle)
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 190, in fetch_soc
    soc, range, soc_ts = loop.run_until_complete(a._fetch_soc(conf, vehicle))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 143, in _fetch_soc
    self.token = self.create_token()
  File "/var/www/html/openWB/packages/modules/vehicles/ovms/api.py", line 53, in create_token
    tokenDict = loads(resp.text)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Falls du eine Lösung findest, wäre das toll, ich kann aber auch gut auf 2.1.7 warten. Es eilt nicht...
Danke für deine Hilfe!
rleidner
Beiträge: 1184
Registriert: Mo Nov 02, 2020 9:50 am
Has thanked: 10 times
Been thanked: 77 times

Re: SoC: OVMS

Beitrag von rleidner »

Danke für den SoC-Log;
Das aktuelle Problem ist der fehlende port (6869) in der Server-URL; das muss auf alle Fälle korrigiert werden -> 1).
Wenn das korrigiert ist wird es etwas weiter gehen bis zu einem anderen Fehler:

Code: Alles auswählen

...
AttributeError: 'api' object has no attribute 'confDict'
dafür braucht es dann noch 2)

1) Als Server URL bitte dies eintragen: https://ovms.dexters-web.de:6869
Auf der Fahrzeug-Konfigurationsseite gibt es zu jedem Feld ein (?) hinter dem Label.
Click drauf und es kommen Hinweise.

2) In 2.1.7 gibt es einen notwendigen Fix, ohne den der initiale Abruf nicht funktioniert
Also entweder auf 2.1.7 Release Candidate 1 updaten (Entwicklungszweig BETA) oder ein paar Tage warten, bis 2.1.7 final released wird. Ich hoffe, die 2.1.7 Release dauert nicht mehr lange, habe aber keinen Einfluss darauf.
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Kia EV6, Smart EQ forfour
Antworten