fhempy: Skoda Connect

Begonnen von dominik, 30 Juli 2021, 21:34:14

Vorheriges Thema - Nächstes Thema

Nogga


scooty

Zitat von: Nogga am 04 November 2023, 21:30:41Seit zwei Tagen synced mein Enyaq nicht mehr mit FHEM.
Bei mir gehts nach Update des FHEMPY-Server auf Version 0.1.673 wieder.
Bin mir aber nicht sicher, ob dies der Grund ist, dass es wieder funktioniert?

Viele Grüße,
Andreas
Fhem auf Gigabyte Brix
CUL V3 HM / CUL V3 MAX / MaxCube aFW Homematic&MAX / ZWave.me ZME_UZB1 / SDuino 433 / Velux KLF200
Homematic / MAX / Logitech Hub / ZWave / Wifi LED / div. 433 Temperatursensoren / pywws WH10880 / IO Homecontrol

SimonHipp

AHHH, ich erhalte seit gestern, ohne was gemacht zu haben den Fehler -> 127.0.0.1: Verbindungsaufbau abgelehnt (111)
Kann mir jemand helfen, Fhem-Neustart, sowie NUC Neustart haben nix gebracht.
FHEM 6.0 auf AMD Ryzen 5 MICRO PC (NUC) mit VDSL 100/40Mbit/s

JoWiemann

Zitat von: SimonHipp am 15 Dezember 2023, 22:21:57AHHH, ich erhalte seit gestern, ohne was gemacht zu haben den Fehler -> 127.0.0.1: Verbindungsaufbau abgelehnt (111)
Kann mir jemand helfen, Fhem-Neustart, sowie NUC Neustart haben nix gebracht.

Hallo,

die Datenschutzbedingungen haben sich geändert. Dem musst erst durch Anmeldung über die Internetadresse zustimmen.

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

BergMuel

hey vielen Dank für Eure Infos in diesem Kanal. Ich konnte meinen neuen Skoda Enyaq 85 problemlose mit wenigen Klicks einbinden. Funktioniert alles bestens, Top!!
Damit bin ich nun auf den Geschmack gekommen und möchte hier eine Frage stellen, die ich anderswo im Forum nirgends geklärt bekommen habe.
Skoda und Volkswagen basieren ja auf der gleichen Plattform und ich vermute auch die Zugriffe auf skodaconnect und weconnect dürften sehr ähnlich sein. Gibt es eine Möglichkeit mit fhempy auch meinen VW auszulesen? Kann ich irgendwo die geänderte Portaladresse eintragen oder einen Parameter einstellen? Hat das schon jemand realisiert?

satprofi

Da ja seat connect selbe anmeldeprozedur hat, versuchs einfach mit VW. VIN evt. eintragen bei attr
gruss
-----------------------------------------------------------------------
beelink miniPC - Fhem 6.x CUL 868, FS20, NetIO230 CUL 433
HMLAN, HM-CC-RT-DN,Homematic Actoren,LD382A,Telegram

Hausrobot

Hallo ihr,

Installation "Skoda Connect": habe fhempy installiert (soweit ok), aber hänge an:
FHEMWEB WEB CSRF error: csrf_124021830045776 ne csrf_92598614231964 for client WEB_192.168.178.62_56116 / command define fhempy_local BindingsIo fhempy. For details see the csrfToken FHEMWEB attribute.
2024.04.21 20:58:30 1: ERROR evaluating { getRange(1) }: Undefined subroutine &main::getRange called at (eval 1528) line 1.

2024.04.21 20:58:30 1: ERROR evaluating { getRange(2) }: Undefined subroutine &main::getRange called at (eval 1529) line 1. ##möglicherweise anderer Fehler im Log

2024.04.21 20:58:34 1: reload: Error:Modul 10_BindingsIo deactivated:
 Can't locate Protocol/WebSocket/Frame.pm in @INC (you may need to install the Protocol::WebSocket::Frame module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueab
ihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base ./FHEM/lib) at ./FHEM/10_BindingsIo.pm line 10.
BEGIN failed--compilation aborted at ./FHEM/10_BindingsIo.pm line 10.

https://github.com/ntruchsess/fhem-mirror/raw/websockets/fhem/FHEM/98_websocket.pm zeigt ins Nirwana.

Hm, weiß jemand bitte Rat?

Viele Grüße

hetterich

Hallo miteinander,

super Sache!

Die Readings werden alle angezeigt und auch aktualisiert.
Jedoch bei "Set charger on/off" rührt sich gar nichts.
Das wäre aber genau das, was ich für meinen Enyaq Bj24 brauchen würde.
Im fhempy-Log sehe ich nichts, es scheint so als ob der Set-Befehl gar nicht registriert werden würde.
Das ein und ausschalten des Ladens wäre für meinen Plan der Automatisierung (Überschussladen) wichtig.

Activating virtual environment...OK
2024-04-24 10:09:48,069 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.740...
2024-04-24 10:09:48,073 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2024-04-24 10:09:48,189 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2024-04-24 10:09:50,544 - INFO     - websockets.server: connection open
2024-04-24 10:09:50,545 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2024-04-24 10:09:52,132 - INFO     - skodaconnect.connection: Unofficial Skoda Connect library, version 1.3.10
2024-04-24 10:09:52,132 - INFO     - skodaconnect.connection: Initiating new login
2024-04-24 10:09:53,544 - INFO     - skodaconnect.connection: Token for technical verified OK.
2024-04-24 10:09:54,195 - INFO     - skodaconnect.connection: Token for connect verified OK.
2024-04-24 10:09:58,007 - INFO     - skodaconnect.connection: Returning with data {'airConditioning': {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}}, 'airConditioningSettings': {'targetTemperatureInKelvin': 294.65, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': False, 'windowHeatingEnabled': False, 'zonesSettings': {'frontLeftEnabled': False, 'frontRightEnabled': False}}}
2024-04-24 10:09:59,396 - INFO     - skodaconnect.connection: Returning with data {'airConditioning': {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}}, 'airConditioningSettings': {'targetTemperatureInKelvin': 294.65, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': False, 'windowHeatingEnabled': False, 'zonesSettings': {'frontLeftEnabled': False, 'frontRightEnabled': False}}}
2024-04-24 10:10:05,602 - ERROR    - fhempy.lib.fhem: FHEM took 5971ms for readingsSingleUpdate($defs{'SkodaEnyaq'},'position','(48.79964, 11.538322, datetime.datetime(2024, 4, 22, 7, 17, 29, tzinfo=datetime.timezone.utc))',1)
2024-04-24 10:10:12,640 - ERROR    - SkodaEnyaq: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/skodaconnect/skodaconnect.py", line 285, in update_readings_once
    val_state = instrument.state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 127, in state
    val = super().state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 58, in state
    if hasattr(self.vehicle, self.attr):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 1542, in last_connected
    last_connected = datetime.fromisoformat(last_connected_utc)
ValueError: Invalid isoformat string: '2024-04-24T07:44:07.427Z'
2024-04-24 10:15:15,709 - INFO     - skodaconnect.connection: Returning with data {'airConditioning': {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}}, 'airConditioningSettings': {'targetTemperatureInKelvin': 294.65, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': False, 'windowHeatingEnabled': False, 'zonesSettings': {'frontLeftEnabled': False, 'frontRightEnabled': False}}}
2024-04-24 10:15:16,147 - ERROR    - SkodaEnyaq: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/skodaconnect/skodaconnect.py", line 285, in update_readings_once
    val_state = instrument.state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 127, in state
    val = super().state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 58, in state
    if hasattr(self.vehicle, self.attr):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 1542, in last_connected
    last_connected = datetime.fromisoformat(last_connected_utc)
ValueError: Invalid isoformat string: '2024-04-24T07:44:07.427Z'
2024-04-24 10:20:18,233 - INFO     - skodaconnect.connection: Returning with data {'airConditioning': {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}}, 'airConditioningSettings': {'targetTemperatureInKelvin': 294.65, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': False, 'windowHeatingEnabled': False, 'zonesSettings': {'frontLeftEnabled': False, 'frontRightEnabled': False}}}
2024-04-24 10:20:18,722 - ERROR    - SkodaEnyaq: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/skodaconnect/skodaconnect.py", line 285, in update_readings_once
    val_state = instrument.state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 127, in state
    val = super().state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 58, in state
    if hasattr(self.vehicle, self.attr):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 1542, in last_connected
    last_connected = datetime.fromisoformat(last_connected_utc)
ValueError: Invalid isoformat string: '2024-04-24T07:44:07.427Z'
2024-04-24 10:25:19,218 - INFO     - skodaconnect.connection: Returning with data {'airConditioning': {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}}, 'airConditioningSettings': {'targetTemperatureInKelvin': 294.65, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': False, 'windowHeatingEnabled': False, 'zonesSettings': {'frontLeftEnabled': False, 'frontRightEnabled': False}}}
2024-04-24 10:25:20,395 - ERROR    - SkodaEnyaq: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/skodaconnect/skodaconnect.py", line 285, in update_readings_once
    val_state = instrument.state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 127, in state
    val = super().state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 58, in state
    if hasattr(self.vehicle, self.attr):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 1542, in last_connected
    last_connected = datetime.fromisoformat(last_connected_utc)
ValueError: Invalid isoformat string: '2024-04-24T07:44:07.427Z'
2024-04-24 10:30:21,022 - INFO     - skodaconnect.connection: Returning with data {'airConditioning': {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}}, 'airConditioningSettings': {'targetTemperatureInKelvin': 294.65, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': False, 'windowHeatingEnabled': False, 'zonesSettings': {'frontLeftEnabled': False, 'frontRightEnabled': False}}}
2024-04-24 10:30:21,537 - ERROR    - SkodaEnyaq: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/skodaconnect/skodaconnect.py", line 285, in update_readings_once
    val_state = instrument.state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 127, in state
    val = super().state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 58, in state
    if hasattr(self.vehicle, self.attr):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 1542, in last_connected
    last_connected = datetime.fromisoformat(last_connected_utc)
ValueError: Invalid isoformat string: '2024-04-24T07:44:07.427Z'
2024-04-24 10:35:22,002 - INFO     - skodaconnect.connection: Returning with data {'airConditioning': {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}}, 'airConditioningSettings': {'targetTemperatureInKelvin': 294.65, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': False, 'windowHeatingEnabled': False, 'zonesSettings': {'frontLeftEnabled': False, 'frontRightEnabled': False}}}
2024-04-24 10:35:24,067 - ERROR    - SkodaEnyaq: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/skodaconnect/skodaconnect.py", line 285, in update_readings_once
    val_state = instrument.state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 127, in state
    val = super().state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 58, in state
    if hasattr(self.vehicle, self.attr):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 1542, in last_connected
    last_connected = datetime.fromisoformat(last_connected_utc)
ValueError: Invalid isoformat string: '2024-04-24T08:31:58.873Z'
2024-04-24 10:40:24,852 - INFO     - skodaconnect.connection: Returning with data {'airConditioning': {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}}, 'airConditioningSettings': {'targetTemperatureInKelvin': 294.65, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': False, 'windowHeatingEnabled': False, 'zonesSettings': {'frontLeftEnabled': False, 'frontRightEnabled': False}}}
2024-04-24 10:40:27,530 - ERROR    - SkodaEnyaq: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/skodaconnect/skodaconnect.py", line 285, in update_readings_once
    val_state = instrument.state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 127, in state
    val = super().state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 58, in state
    if hasattr(self.vehicle, self.attr):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 1542, in last_connected
    last_connected = datetime.fromisoformat(last_connected_utc)
ValueError: Invalid isoformat string: '2024-04-24T08:31:58.873Z'
2024-04-24 10:41:38,462 - ERROR    - SkodaEnyaq: Exception raised by task: <Task finished name='Task-905' coro=<FhemModule._run_coro() done, defined at /opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/generic.py:216> exception=AttributeError("'str' object has no attribute 'get'")>
Traceback (most recent call last):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/generic.py", line 224, in _handle_task_result
    task.result()
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/generic.py", line 218, in _run_coro
    await coro
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 459, in set_charger
    elif action.get('action', {}) == 'chargelimit':
AttributeError: 'str' object has no attribute 'get'
2024-04-24 10:45:31,266 - INFO     - skodaconnect.connection: Returning with data {'airConditioning': {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}}, 'airConditioningSettings': {'targetTemperatureInKelvin': 294.65, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': False, 'windowHeatingEnabled': False, 'zonesSettings': {'frontLeftEnabled': False, 'frontRightEnabled': False}}}
2024-04-24 10:45:31,684 - ERROR    - SkodaEnyaq: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/skodaconnect/skodaconnect.py", line 285, in update_readings_once
    val_state = instrument.state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 127, in state
    val = super().state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 58, in state
    if hasattr(self.vehicle, self.attr):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 1542, in last_connected
    last_connected = datetime.fromisoformat(last_connected_utc)
ValueError: Invalid isoformat string: '2024-04-24T08:42:20.013Z'
2024-04-24 10:46:58,423 - ERROR    - SkodaEnyaq: Exception raised by task: <Task finished name='Task-1026' coro=<FhemModule._run_coro() done, defined at /opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/generic.py:216> exception=AttributeError("'str' object has no attribute 'get'")>
Traceback (most recent call last):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/generic.py", line 224, in _handle_task_result
    task.result()
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/generic.py", line 218, in _run_coro
    await coro
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 459, in set_charger
    elif action.get('action', {}) == 'chargelimit':
AttributeError: 'str' object has no attribute 'get'
2024-04-24 10:50:33,119 - INFO     - skodaconnect.connection: Returning with data {'airConditioning': {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}}, 'airConditioningSettings': {'targetTemperatureInKelvin': 294.65, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': False, 'windowHeatingEnabled': False, 'zonesSettings': {'frontLeftEnabled': False, 'frontRightEnabled': False}}}
2024-04-24 10:50:34,076 - ERROR    - SkodaEnyaq: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/skodaconnect/skodaconnect.py", line 285, in update_readings_once
    val_state = instrument.state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 127, in state
    val = super().state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 58, in state
    if hasattr(self.vehicle, self.attr):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 1542, in last_connected
    last_connected = datetime.fromisoformat(last_connected_utc)
ValueError: Invalid isoformat string: '2024-04-24T08:42:20.013Z'
2024-04-24 10:55:35,231 - INFO     - skodaconnect.connection: Returning with data {'airConditioning': {'remainingTimeToReachTargetTemperatureInSeconds': 0, 'state': 'Off', 'trigger': 'OFF', 'windowsHeatingStatuses': [{'windowLocation': 'Front', 'state': 'Off'}, {'windowLocation': 'Rear', 'state': 'Off'}], 'seatHeatingSupport': {'frontLeftAvailable': True, 'frontRightAvailable': True, 'rearLeftAvailable': False, 'rearRightAvailable': False}}, 'airConditioningSettings': {'targetTemperatureInKelvin': 294.65, 'temperatureConversionTableUsed': 'CELSIUS_KELVIN', 'airConditioningAtUnlock': False, 'windowHeatingEnabled': False, 'zonesSettings': {'frontLeftEnabled': False, 'frontRightEnabled': False}}}
2024-04-24 10:55:37,981 - ERROR    - SkodaEnyaq: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/fhempy/lib/skodaconnect/skodaconnect.py", line 285, in update_readings_once
    val_state = instrument.state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 127, in state
    val = super().state
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 58, in state
    if hasattr(self.vehicle, self.attr):
  File "/opt/fhem/.fhempy/fhempy_venv/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 1542, in last_connected
    last_connected = datetime.fromisoformat(last_connected_utc)
ValueError: Invalid isoformat string: '2024-04-24T08:42:20.013Z'

Weis jemand was ich da falsch mache?

Viele Grüße
Peter

hetterich

OK, attr EV_Type war nicht gesetzt.

Erst nachdem ich mir die skodaconnect.py angeschaut habe, bin ich draufgekommen.
Allerdings ist es mir ein Rätsel, warum hier ein Unterschied (ohne Attr EV set charger on/off, mit EV start/stop)
gemacht wird. Die Readings waren auch ohne das Attr EV korrekt. Nur das set ging halt nicht.
Was bringt bei nicht EV Fahrzeugen der set on/off?

Viele Grüße
Peter

ThomasFh

hallo,

ehe ich die ganzen Bibliotheken vergeblich installiere:

Klappt das auch mit dem Citig e iV?
Die app dafür heißt my Skoda essentials.

Danke vorab
EM1010PC, EM1000WZ, WS300PC, S300TH, Fritz Dect 200, Victron MPII, Cerbo GX, US3000C

ThomasFh

Zitat von: ThomasFh am 14 Mai 2024, 18:32:33hallo,

ehe ich die ganzen Bibliotheken vergeblich installiere:

Klappt das auch mit dem Citig e iV?
Die app dafür heißt my Skoda essentials.

Danke vorab

läuft auch mit Citigo eiv
EM1010PC, EM1000WZ, WS300PC, S300TH, Fritz Dect 200, Victron MPII, Cerbo GX, US3000C

andkeh

#131
Hallo zusammen,
Versuche seid 2 Tagen meinen neuen Enyaq sichtbar zu machen. Fhempy läuft alles mit grünem Status und auch der Enyaq ist connected leider keine Readings und auch kein Set Befehl.
Ich habe meinen Enyaq über die MySkoda App eingerichtet. Über Škoda Connect im Internet bekomme ich Ihn nicht eingerichtet. Es kommt immer der Hinweis, dass ich die App nutzen soll. Hat jemand Ideen?
Gruß
Andreas

andkeh

Hallo,
zu meinem letzten Beitrag,
habe im LOG diese Einträge gefunden, kann damit aber nix anfangen, hat jemand eine Idee:

skodaconnect.exceptions.SkodaTokenInvalidException: Invalid token "None"
    raise SkodaTokenInvalidException('Invalid token "None"')
  File "/opt/fhem/.local/lib/python3.9/site-packages/skodaconnect/connection.py", line 1851, in verify_token
    verified = await self.verify_token(self._session_tokens['vwg'].get('refresh_token', None), 'vwg')
  File "/opt/fhem/.local/lib/python3.9/site-packages/skodaconnect/connection.py", line 587, in _getAPITokens
    result = await self._getAPITokens()
  File "/opt/fhem/.local/lib/python3.9/site-packages/skodaconnect/connection.py", line 2005, in set_token
    await self.set_token('vwg')
  File "/opt/fhem/.local/lib/python3.9/site-packages/skodaconnect/connection.py", line 840, in get_vehicles
    await connection.get_vehicles()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/skodaconnect/skodaconnect.py", line 83, in start_login
    await coro
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 218, in _run_coro
    task.result()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 224, in _handle_task_result
Traceback (most recent call last):
2024-06-30 21:32:22,651 - ERROR    - Enyaq: Exception raised by task: <Task finished name='Task-43' coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py:216> exception=SkodaTokenInvalidException('Invalid token "None"')>
2024-06-30 21:32:22,023 - WARNING  - skodaconnect.connection: Token for connect could not be verified, verification returned The token is not yet valid (iat).
2024-06-30 21:32:21,430 - WARNING  - skodaconnect.connection: Token for technical could not be verified, verification returned The token is not yet valid (iat).
2024-06-30 21:32:20,216 - INFO     - skodaconnect.connection: Initiating new login
2024-06-30 21:32:20,216 - INFO     - skodaconnect.connection: Unofficial Skoda Connect library, version 1.3.10
2024-06-30 21:32:19,574 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2024-06-30 21:32:19,574 - INFO     - websockets.server: connection open
2024-06-30 21:32:19,055 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2024-06-30 21:32:19,020 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2024-06-30 21:32:19,018 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.742...
Running within a containerized environment.
Running within a Docker container.
2024-06-30 21:31:58,283 - INFO     - fhempy.lib.fhem_pythonbinding: Exit 1
2024-06-30 21:31:58,281 - INFO     - websockets.server: server closed
2024-06-30 21:31:58,280 - INFO     - websockets.server: connection closed
2024-06-30 21:31:48,275 - INFO     - websockets.server: server closing
2024-06-30 21:31:48,274 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2024-06-30 21:31:47,301 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2024-06-30 21:31:47,300 - INFO     - websockets.server: connection open
2024-06-30 21:31:40,751 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2024-06-30 21:31:40,618 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2024-06-30 21:31:40,593 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.742...
Running within a containerized environment.
Running within a Docker container.
2024-06-30 21:31:31,718 - INFO     - websockets.server: server closing
2024-06-30 21:31:31,718 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2024-06-30 21:31:31,717 - INFO     - fhempy.lib.fhem_pythonbinding: Shutdown initiated...
skodaconnect.exceptions.SkodaTokenInvalidException: Invalid token "None"
    raise SkodaTokenInvalidException('Invalid token "None"')
  File "/opt/fhem/.local/lib/python3.9/site-packages/skodaconnect/connection.py", line 1851, in verify_token
    verified = await self.verify_token(self._session_tokens['vwg'].get('refresh_token', None), 'vwg')
  File "/opt/fhem/.local/lib/python3.9/site-packages/skodaconnect/connection.py", line 587, in _getAPITokens
    result = await self._getAPITokens()
  File "/opt/fhem/.local/lib/python3.9/site-packages/skodaconnect/connection.py", line 2005, in set_token
    await self.set_token('vwg')
  File "/opt/fhem/.local/lib/python3.9/site-packages/skodaconnect/connection.py", line 840, in get_vehicles
    await connection.get_vehicles()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/skodaconnect/skodaconnect.py", line 83, in start_login
    await coro
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 218, in _run_coro
    task.result()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 224, in _handle_task_result
Traceback (most recent call last):
2024-06-30 21:29:14,767 - ERROR    - Enyaq: Exception raised by task: <Task finished name='Task-706' coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py:216> exception=SkodaTokenInvalidException('Invalid token "None"')>
2024-06-30 21:29:13,998 - WARNING  - skodaconnect.connection: Token for connect could not be verified, verification returned The token is not yet valid (iat).
2024-06-30 21:29:13,432 - WARNING  - skodaconnect.connection: Token for technical could not be verified, verification returned The token is not yet valid (iat).
2024-06-30 21:29:12,330 - INFO     - skodaconnect.connection: Initiating new login
2024-06-30 21:29:12,330 - INFO     - skodaconnect.connection: Unofficial Skoda Connect library, version 1.3.10
skodaconnect.exceptions.SkodaTokenInvalidException: Invalid token "None"
    raise SkodaTokenInvalidException('Invalid token "None"')
  File "/opt/fhem/.local/lib/python3.9/site-packages/skodaconnect/connection.py", line 1851, in verify_token
    verified = await self.verify_token(self._session_tokens['vwg'].get('refresh_token', None), 'vwg')
  File "/opt/fhem/.local/lib/python3.9/site-packages/skodaconnect/connection.py", line 587, in _getAPITokens
    result = await self._getAPITokens()
  File "/opt/fhem/.local/lib/python3.9/site-packages/skodaconnect/connection.py", line 2005, in set_token
    await self.set_token('vwg')
  File "/opt/fhem/.local/lib/python3.9/site-packages/skodaconnect/connection.py", line 840, in get_vehicles
    await connection.get_vehicles()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/skodaconnect/skodaconnect.py", line 83, in start_login
    await coro
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 218, in _run_coro
    task.result()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 224, in _handle_task_result
Traceback (most recent call last):
2024-06-30 21:26:33,491 - ERROR    - Enyaq: Exception raised by task: <Task finished name='Task-625' coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py:216> exception=SkodaTokenInvalidException('Invalid token "None"')>
2024-06-30 21:26:32,619 - WARNING  - skodaconnect.connection: Token for connect could not be verified, verification returned The token is not yet valid (iat).
2024-06-30 21:26:32,070 - WARNING  - skodaconnect.connection: Token for technical could not be verified, verification returned The token is not yet valid (iat).
2024-06-30 21:26:30,723 - INFO     - skodaconnect.connection: Initiating new login
2024-06-30 21:26:30,723 - INFO     - skodaconnect.connection: Unofficial Skoda Connect library, version 1.3.10


Freue mich über jede hilfe.

Gruß

andreas

MadMax

Ich habe das aufgegeben und nutze IO Broker.
Rangieren dann die Daten hin und her.
Klappt super
Lenovo M910Q Tiny Debian 12, FHEM 6.3, 2x Siemens Logo 0BA7, Homematic CCU3, Philips HUE, 6x SMA Wechselrichter, BYD HVM, BYD HVS, SMA EVCharger, KEBA Wallbox, 2x HMS800W, Daikin Wärmepumpe über CAN, viele ESPs

Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/MadMax

BAfH

Mahlzeit,
Danke für die Arbeit der Entwickler.
Gestern unseren neuen Skoda Karoq abgeholt und gleich versucht ihn in FHEM einzubinden.
Leider ohne Erfolg.
2024-07-05 10:31:43,871 - INFO     - skodaconnect.connection: Unofficial Skoda Connect library, version 1.3.10
2024-07-05 10:31:43,872 - INFO     - skodaconnect.connection: Initiating new login
2024-07-05 10:31:44,782 - INFO     - skodaconnect.connection: Consented scopes: openid mbb, not consented: profile
2024-07-05 10:31:44,782 - ERROR    - skodaconnect.connection: Missing consent for client "technical" scopes: profile
2024-07-05 10:31:44,783 - ERROR    - my_skoda: Exception raised by task: <Task finished name='Task-428' coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py:216> exception=SkodaAuthenticationException('Missing consent for client "technical" scopes: profile')>
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 224, in _handle_task_result
    task.result()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 218, in _run_coro
    await coro
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/skodaconnect/skodaconnect.py", line 79, in start_login
    while await connection.doLogin() is False:
  File "/opt/fhem/.local/lib/python3.9/site-packages/skodaconnect/connection.py", line 196, in doLogin
    return await self._authorize('technical')
  File "/opt/fhem/.local/lib/python3.9/site-packages/skodaconnect/connection.py", line 296, in _authorize
    raise SkodaAuthenticationException(f'Missing consent for client "{client}" scopes: {new_form.get("consentedScopes", "")}')
skodaconnect.exceptions.SkodaAuthenticationException: Missing consent for client "technical" scopes: profile
Ich vermute mal das hängt mit der vorstehenden Umstellung durch Skoda zusammen.
Man will ja das Portal abschaffen.
Wie sieht es bei den anderen aus, läuft es bei Euch noch?
Danke
Gruß Thorben
mit sonnige Grüße aus Schönow