Open Kasu80 opened 1 month ago
Hi Thank you for the errorlog. Few questions as I don't have Leaf <2019: Did it work before? If so what was the last working version? Can you read your car's data using MyLeaf App on your mobile?
Regards
Hi Thank you for the errorlog. Few questions as I don't have Leaf <2019: Did it work before? If so what was the last working version? Can you read your car's data using MyLeaf App on your mobile?
Regards
HI I never used before leaf2mqtt, this is the first install. Yes, MyLeaf App working well, except Locate my vehicle function.
Hi! Sorry for late reply. Looks like battery status is fetched properly but fails on cockpit. Please try earlier version https://github.com/kamiKAC/leaf2mqtt/tree/v0.0.4
Hi! I tried it, I think it's the same error.
NFO: 2024-07-07 12:16:44.024491: main: Version: v0.0.4
INFO: 2024-07-07 12:16:44.024754: MqttClientWrapper: Creating MQTT client with 192.168.50.181:1883 listening on leaf.
INFO: 2024-07-07 12:16:44.031143: MqttClientWrapper: Connecting...
INFO: 2024-07-07 12:16:44.059675: MqttClientWrapper: Mqtt connection code: MqttConnectReturnCode.connectionAccepted
INFO: 2024-07-07 12:16:44.059747: main: Logging in.
INFO: 2024-07-07 12:16:50.000541: main: Login successful
INFO: 2024-07-07 12:16:50.000609: main: MQTT connected.
INFO: 2024-07-07 12:16:50.000636: MqttClientWrapper: Subscribing to command topics
FINEST: 2024-07-07 12:16:50.000953: main: publishStates {nickname: Leaf1FANT, vin: SJNFAAZE1U0025017, SJNFAAZE1U0025017/nickname: Leaf1FANT, SJNFAAZE1U0025017/vin: SJNFAAZE1U0025017}
FINEST: 2024-07-07 12:16:50.000994: MqttClientWrapper: Publishing message nickname Leaf1FANT
FINEST: 2024-07-07 12:16:50.001085: MqttClientWrapper: Publishing message vin SJNFAAZE1U0025017
FINEST: 2024-07-07 12:16:50.001165: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/nickname Leaf1FANT
FINEST: 2024-07-07 12:16:50.001254: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/vin SJNFAAZE1U0025017
INFO: 2024-07-07 12:16:50.001376: main: Starting loop for SJNFAAZE1U0025017
INFO: 2024-07-07 12:16:50.001400: main: Subscribing to commands for SJNFAAZE1U0025017
FINE: 2024-07-07 12:16:50.001427: MqttClientWrapper: Subscribing to SJNFAAZE1U0025017/command
FINE: 2024-07-07 12:16:50.001492: MqttClientWrapper: Subscribing to command
FINE: 2024-07-07 12:16:50.001521: MqttClientWrapper: Subscribing to SJNFAAZE1U0025017/command/battery
FINE: 2024-07-07 12:16:50.001563: MqttClientWrapper: Subscribing to command/battery
FINE: 2024-07-07 12:16:50.001634: MqttClientWrapper: Subscribing to SJNFAAZE1U0025017/command/climate
FINE: 2024-07-07 12:16:50.001677: MqttClientWrapper: Subscribing to command/climate
FINE: 2024-07-07 12:16:50.001696: MqttClientWrapper: Subscribing to SJNFAAZE1U0025017/command/stats/daily
FINE: 2024-07-07 12:16:50.001731: MqttClientWrapper: Subscribing to command/stats/daily
FINE: 2024-07-07 12:16:50.001749: MqttClientWrapper: Subscribing to SJNFAAZE1U0025017/command/stats/monthly
FINE: 2024-07-07 12:16:50.001777: MqttClientWrapper: Subscribing to command/stats/monthly
FINE: 2024-07-07 12:16:50.001797: MqttClientWrapper: Subscribing to SJNFAAZE1U0025017/command/location
FINE: 2024-07-07 12:16:50.001814: MqttClientWrapper: Subscribing to command/location
FINE: 2024-07-07 12:16:50.001840: MqttClientWrapper: Subscribing to SJNFAAZE1U0025017/command/cockpitStatus
FINE: 2024-07-07 12:16:50.001858: MqttClientWrapper: Subscribing to command/cockpitStatus
FINER: 2024-07-07 12:16:50.001875: main: fetchAndPublishAllStatus for SJNFAAZE1U0025017
FINER: 2024-07-07 12:16:50.001913: main: fetchAndPublishBatteryStatus for SJNFAAZE1U0025017
FINEST: 2024-07-07 12:16:50.001945: LeafSession: Executing
FINER: 2024-07-07 12:16:50.002509: main: fetchAndPublishCockpit for SJNFAAZE1U0025017
FINEST: 2024-07-07 12:16:50.002529: LeafSession: Executing
FINER: 2024-07-07 12:16:50.002616: main: fetchAndPublishClimateStatus for SJNFAAZE1U0025017
FINEST: 2024-07-07 12:16:50.002634: LeafSession: Executing
FINER: 2024-07-07 12:16:50.003027: main: fetchAndPublishLocation for SJNFAAZE1U0025017
FINEST: 2024-07-07 12:16:50.003055: LeafSession: Executing
FINEST: 2024-07-07 12:16:50.003647: main: publishStates {}
FINEST: 2024-07-07 12:16:50.004287: main: publishStates {nickname: Leaf1FANT, vin: SJNFAAZE1U0025017, json: {"nickname":"Leaf1FANT","vin":"SJNFAAZE1U0025017"}}
FINEST: 2024-07-07 12:16:50.004325: MqttClientWrapper: Publishing message nickname Leaf1FANT
FINEST: 2024-07-07 12:16:50.004459: MqttClientWrapper: Publishing message vin SJNFAAZE1U0025017
FINEST: 2024-07-07 12:16:50.004545: MqttClientWrapper: Publishing message json {"nickname":"Leaf1FANT","vin":"SJNFAAZE1U0025017"}
FINE: 2024-07-07 12:16:51.160331: LeafSession: FormatException: Unexpected character (at character 1)
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
^
FINER: 2024-07-07 12:16:51.162529: LeafSession: #0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1383)
#1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1250)
#2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:915)
#3 _parseJson (dart:convert-patch/convert_patch.dart:35)
#4 JsonDecoder.convert (dart:convert/json.dart:610)
#5 JsonCodec.decode (dart:convert/json.dart:216)
#6 CarwingsSession.request (package:dartcarwings/src/carwings_session.dart:72)
<asynchronous suspension>
#7 CarwingsSession.requestWithRetry (package:dartcarwings/src/carwings_session.dart:46)
<asynchronous suspension>
#8 CarwingsVehicle.requestLocation (package:dartcarwings/src/carwings_vehicle.dart:370)
<asynchronous suspension>
#9 CarwingsVehicleWrapper.fetchLocation (file:///app/src/leaf/carwings_wrapper.dart:148)
<asynchronous suspension>
#10 LeafSession._executeWithRetry (file:///app/src/leaf/leaf_session.dart:153)
<asynchronous suspension>
#11 LeafSession.executeWithRetry (file:///app/src/leaf/leaf_session.dart:129)
<asynchronous suspension>
#12 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#13 startUpdateLoop (file:///app/src/leaf_2_mqtt.dart:113)
<asynchronous suspension>
#14 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#15 main (file:///app/src/leaf_2_mqtt.dart:71)
<asynchronous suspension>
FINER: 2024-07-07 12:16:51.162664: LeafSession: Force a login before retrying failed execution.
FINEST: 2024-07-07 12:16:51.514792: main: publishStates {battery/percentage: 89, battery/connected: false, battery/charging: false, battery/capacity: 240.0, battery/cruisingRangeAcOffKm: 230, battery/cruisingRangeAcOffMiles: 143, battery/cruisingRangeAcOnKm: 216, battery/cruisingRangeAcOnMiles: 134, battery/lastUpdatedDateTimeUtc: 2024-07-07T12:15:00.000Z, battery/timeToFullL2InMinutes: 3:00:00.000000, battery/timeToFullL2_6kwInMinutes: 1:30:00.000000, battery/timeToFullTrickleInMinutes: 5:30:00.000000, battery/lastReceivedDateTimeUtc: 2024-07-07T12:16:51.514526Z, battery/json: {"percentage":"89","connected":"false","charging":"false","capacity":"240.0","cruisingRangeAcOffKm":"230","cruisingRangeAcOffMiles":"143","cruisingRangeAcOnKm":"216","cruisingRangeAcOnMiles":"134","lastUpdatedDateTimeUtc":"2024-07-07T12:15:00.000Z","timeToFullL2InMinutes":"3:00:00.000000","timeToFullL2_6kwInMinutes":"1:30:00.000000","timeToFullTrickleInMinutes":"5:30:00.000000","lastReceivedDateTimeUtc":"2024-07-07T12:16:51.514526Z"}, SJNFAAZE1U0025017/battery/percentage: 89, SJNFAAZE1U0025017/battery/connected: false, SJNFAAZE1U0025017/battery/charging: false, SJNFAAZE1U0025017/battery/capacity: 240.0, SJNFAAZE1U0025017/battery/cruisingRangeAcOffKm: 230, SJNFAAZE1U0025017/battery/cruisingRangeAcOffMiles: 143, SJNFAAZE1U0025017/battery/cruisingRangeAcOnKm: 216, SJNFAAZE1U0025017/battery/cruisingRangeAcOnMiles: 134, SJNFAAZE1U0025017/battery/lastUpdatedDateTimeUtc: 2024-07-07T12:15:00.000Z, SJNFAAZE1U0025017/battery/timeToFullL2InMinutes: 3:00:00.000000, SJNFAAZE1U0025017/battery/timeToFullL2_6kwInMinutes: 1:30:00.000000, SJNFAAZE1U0025017/battery/timeToFullTrickleInMinutes: 5:30:00.000000, SJNFAAZE1U0025017/battery/lastReceivedDateTimeUtc: 2024-07-07T12:16:51.514526Z, SJNFAAZE1U0025017/battery/json: {"percentage":"89","connected":"false","charging":"false","capacity":"240.0","cruisingRangeAcOffKm":"230","cruisingRangeAcOffMiles":"143","cruisingRangeAcOnKm":"216","cruisingRangeAcOnMiles":"134","lastUpdatedDateTimeUtc":"2024-07-07T12:15:00.000Z","timeToFullL2InMinutes":"3:00:00.000000","timeToFullL2_6kwInMinutes":"1:30:00.000000","timeToFullTrickleInMinutes":"5:30:00.000000","lastReceivedDateTimeUtc":"2024-07-07T12:16:51.514526Z"}}
FINEST: 2024-07-07 12:16:51.514882: MqttClientWrapper: Publishing message battery/percentage 89
FINEST: 2024-07-07 12:16:51.515125: MqttClientWrapper: Publishing message battery/connected false
FINEST: 2024-07-07 12:16:51.515219: MqttClientWrapper: Publishing message battery/charging false
FINEST: 2024-07-07 12:16:51.515301: MqttClientWrapper: Publishing message battery/capacity 240.0
FINEST: 2024-07-07 12:16:51.515380: MqttClientWrapper: Publishing message battery/cruisingRangeAcOffKm 230
FINEST: 2024-07-07 12:16:51.515464: MqttClientWrapper: Publishing message battery/cruisingRangeAcOffMiles 143
FINEST: 2024-07-07 12:16:51.515565: MqttClientWrapper: Publishing message battery/cruisingRangeAcOnKm 216
FINEST: 2024-07-07 12:16:51.515649: MqttClientWrapper: Publishing message battery/cruisingRangeAcOnMiles 134
FINEST: 2024-07-07 12:16:51.515735: MqttClientWrapper: Publishing message battery/lastUpdatedDateTimeUtc 2024-07-07T12:15:00.000Z
FINEST: 2024-07-07 12:16:51.515842: MqttClientWrapper: Publishing message battery/timeToFullL2InMinutes 3:00:00.000000
FINEST: 2024-07-07 12:16:51.515933: MqttClientWrapper: Publishing message battery/timeToFullL2_6kwInMinutes 1:30:00.000000
FINEST: 2024-07-07 12:16:51.516026: MqttClientWrapper: Publishing message battery/timeToFullTrickleInMinutes 5:30:00.000000
FINEST: 2024-07-07 12:16:51.516121: MqttClientWrapper: Publishing message battery/lastReceivedDateTimeUtc 2024-07-07T12:16:51.514526Z
FINEST: 2024-07-07 12:16:51.516234: MqttClientWrapper: Publishing message battery/json {"percentage":"89","connected":"false","charging":"false","capacity":"240.0","cruisingRangeAcOffKm":"230","cruisingRangeAcOffMiles":"143","cruisingRangeAcOnKm":"216","cruisingRangeAcOnMiles":"134","lastUpdatedDateTimeUtc":"2024-07-07T12:15:00.000Z","timeToFullL2InMinutes":"3:00:00.000000","timeToFullL2_6kwInMinutes":"1:30:00.000000","timeToFullTrickleInMinutes":"5:30:00.000000","lastReceivedDateTimeUtc":"2024-07-07T12:16:51.514526Z"}
FINEST: 2024-07-07 12:16:51.516509: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/percentage 89
FINEST: 2024-07-07 12:16:51.516601: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/connected false
FINEST: 2024-07-07 12:16:51.516704: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/charging false
FINEST: 2024-07-07 12:16:51.516798: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/capacity 240.0
FINEST: 2024-07-07 12:16:51.516887: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/cruisingRangeAcOffKm 230
FINEST: 2024-07-07 12:16:51.516989: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/cruisingRangeAcOffMiles 143
FINEST: 2024-07-07 12:16:51.517086: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/cruisingRangeAcOnKm 216
FINEST: 2024-07-07 12:16:51.517180: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/cruisingRangeAcOnMiles 134
FINEST: 2024-07-07 12:16:51.517358: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/lastUpdatedDateTimeUtc 2024-07-07T12:15:00.000Z
FINEST: 2024-07-07 12:16:51.517471: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/timeToFullL2InMinutes 3:00:00.000000
FINEST: 2024-07-07 12:16:51.517937: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/timeToFullL2_6kwInMinutes 1:30:00.000000
FINEST: 2024-07-07 12:16:51.518110: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/timeToFullTrickleInMinutes 5:30:00.000000
FINEST: 2024-07-07 12:16:51.518218: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/lastReceivedDateTimeUtc 2024-07-07T12:16:51.514526Z
FINEST: 2024-07-07 12:16:51.518344: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/json {"percentage":"89","connected":"false","charging":"false","capacity":"240.0","cruisingRangeAcOffKm":"230","cruisingRangeAcOffMiles":"143","cruisingRangeAcOnKm":"216","cruisingRangeAcOnMiles":"134","lastUpdatedDateTimeUtc":"2024-07-07T12:15:00.000Z","timeToFullL2InMinutes":"3:00:00.000000","timeToFullL2_6kwInMinutes":"1:30:00.000000","timeToFullTrickleInMinutes":"5:30:00.000000","lastReceivedDateTimeUtc":"2024-07-07T12:16:51.514526Z"}
FINEST: 2024-07-07 12:16:57.125984: LeafSession: Executing
FINE: 2024-07-07 12:16:58.259985: LeafSession: FormatException: Unexpected character (at character 1)
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
^
FINER: 2024-07-07 12:16:58.260255: LeafSession: #0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1383)
#1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1250)
#2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:915)
#3 _parseJson (dart:convert-patch/convert_patch.dart:35)
#4 JsonDecoder.convert (dart:convert/json.dart:610)
#5 JsonCodec.decode (dart:convert/json.dart:216)
#6 CarwingsSession.request (package:dartcarwings/src/carwings_session.dart:72)
<asynchronous suspension>
#7 CarwingsSession.requestWithRetry (package:dartcarwings/src/carwings_session.dart:46)
<asynchronous suspension>
#8 CarwingsVehicle.requestLocation (package:dartcarwings/src/carwings_vehicle.dart:370)
<asynchronous suspension>
#9 CarwingsVehicleWrapper.fetchLocation (file:///app/src/leaf/carwings_wrapper.dart:148)
<asynchronous suspension>
#10 LeafSession._executeWithRetry (file:///app/src/leaf/leaf_session.dart:153)
<asynchronous suspension>
#11 LeafSession.executeWithRetry (file:///app/src/leaf/leaf_session.dart:129)
<asynchronous suspension>
#12 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#13 startUpdateLoop (file:///app/src/leaf_2_mqtt.dart:113)
<asynchronous suspension>
#14 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#15 main (file:///app/src/leaf_2_mqtt.dart:71)
<asynchronous suspension>
FINE: 2024-07-07 12:16:58.260337: LeafSession: Exception: Execution failed.
FINER: 2024-07-07 12:16:58.260411: LeafSession: #0 LeafSession._executeWithRetry (file:///app/src/leaf/leaf_session.dart:161)
<asynchronous suspension>
#1 LeafSession.executeWithRetry (file:///app/src/leaf/leaf_session.dart:129)
<asynchronous suspension>
#2 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#3 startUpdateLoop (file:///app/src/leaf_2_mqtt.dart:113)
<asynchronous suspension>
#4 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#5 main (file:///app/src/leaf_2_mqtt.dart:71)
<asynchronous suspension>
WARNING: 2024-07-07 12:16:58.260432: main: Could not execute request.
FINEST: 2024-07-07 12:16:58.260466: MqttClientWrapper: Publishing message lastErrorDateTimeUtc 2024-07-07T12:16:58.260457Z
FINEST: 2024-07-07 12:16:58.260679: MqttClientWrapper: Publishing message {vin}/lastErrorDateTimeUtc 2024-07-07T12:16:58.260457Z
FINE: 2024-07-07 12:17:06.202227: LeafSession: Error
FINER: 2024-07-07 12:17:06.202567: LeafSession: #0 CarwingsVehicle.responseFlagHandler (package:dartcarwings/src/carwings_vehicle.dart:417)
#1 CarwingsVehicle._getCabinTemperature (package:dartcarwings/src/carwings_vehicle.dart:343)
<asynchronous suspension>
#2 CarwingsVehicle.requestCabinTemperature (package:dartcarwings/src/carwings_vehicle.dart:319)
<asynchronous suspension>
#3 CarwingsVehicleWrapper.fetchClimateStatus (file:///app/src/leaf/carwings_wrapper.dart:125)
<asynchronous suspension>
#4 LeafSession._executeWithRetry (file:///app/src/leaf/leaf_session.dart:153)
<asynchronous suspension>
#5 LeafSession.executeWithRetry (file:///app/src/leaf/leaf_session.dart:129)
<asynchronous suspension>
#6 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#7 startUpdateLoop (file:///app/src/leaf_2_mqtt.dart:113)
<asynchronous suspension>
#8 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#9 main (file:///app/src/leaf_2_mqtt.dart:71)
<asynchronous suspension>
Please try image kamikac/leaf2mqtt:no-cockpit-older-europe-fix
(just use no-cockpit-older-europe-fix
as version).
Strange thing is noone else confirms this issue :(
Please try image
kamikac/leaf2mqtt:no-cockpit-older-europe-fix
(just useno-cockpit-older-europe-fix
as version). Strange thing is noone else confirms this issue :(
I tried, but it also fails:
INFO: 2024-07-08 05:44:27.884683: main: Version: no-cockpit-older-europe-fix
INFO: 2024-07-08 05:44:27.891613: MqttClientWrapper: Creating MQTT client with 192.168.50.181:1883 listening on leaf.
INFO: 2024-07-08 05:44:27.902357: MqttClientWrapper: Connecting...
INFO: 2024-07-08 05:44:27.941799: MqttClientWrapper: Mqtt connection code: MqttConnectReturnCode.connectionAccepted
INFO: 2024-07-08 05:44:27.941878: main: Logging in.
INFO: 2024-07-08 05:44:34.307056: main: Login successful
INFO: 2024-07-08 05:44:34.307162: main: MQTT connected.
INFO: 2024-07-08 05:44:34.307196: MqttClientWrapper: Subscribing to command topics
FINEST: 2024-07-08 05:44:34.307692: main: publishStates {nickname: Leaf1FANT, vin: SJNFAAZE1U0025017, SJNFAAZE1U0025017/nickname: Leaf1FANT, SJNFAAZE1U0025017/vin: SJNFAAZE1U0025017}
FINEST: 2024-07-08 05:44:34.307770: MqttClientWrapper: Publishing message nickname Leaf1FANT
FINEST: 2024-07-08 05:44:34.307926: MqttClientWrapper: Publishing message vin SJNFAAZE1U0025017
FINEST: 2024-07-08 05:44:34.308095: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/nickname Leaf1FANT
FINEST: 2024-07-08 05:44:34.308263: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/vin SJNFAAZE1U0025017
INFO: 2024-07-08 05:44:34.308486: main: Starting loop for SJNFAAZE1U0025017
INFO: 2024-07-08 05:44:34.308557: main: Subscribing to commands for SJNFAAZE1U0025017
FINE: 2024-07-08 05:44:34.308593: MqttClientWrapper: Subscribing to SJNFAAZE1U0025017/command
FINE: 2024-07-08 05:44:34.308704: MqttClientWrapper: Subscribing to command
FINE: 2024-07-08 05:44:34.308757: MqttClientWrapper: Subscribing to SJNFAAZE1U0025017/command/battery
FINE: 2024-07-08 05:44:34.308792: MqttClientWrapper: Subscribing to command/battery
FINE: 2024-07-08 05:44:34.308840: MqttClientWrapper: Subscribing to SJNFAAZE1U0025017/command/climate
FINE: 2024-07-08 05:44:34.308915: MqttClientWrapper: Subscribing to command/climate
FINE: 2024-07-08 05:44:34.308950: MqttClientWrapper: Subscribing to SJNFAAZE1U0025017/command/stats/daily
FINE: 2024-07-08 05:44:34.309013: MqttClientWrapper: Subscribing to command/stats/daily
FINE: 2024-07-08 05:44:34.309047: MqttClientWrapper: Subscribing to SJNFAAZE1U0025017/command/stats/monthly
FINE: 2024-07-08 05:44:34.309100: MqttClientWrapper: Subscribing to command/stats/monthly
FINE: 2024-07-08 05:44:34.309135: MqttClientWrapper: Subscribing to SJNFAAZE1U0025017/command/location
FINE: 2024-07-08 05:44:34.309182: MqttClientWrapper: Subscribing to command/location
FINE: 2024-07-08 05:44:34.309217: MqttClientWrapper: Subscribing to SJNFAAZE1U0025017/command/cockpitStatus
FINE: 2024-07-08 05:44:34.309248: MqttClientWrapper: Subscribing to command/cockpitStatus
FINER: 2024-07-08 05:44:34.309296: main: fetchAndPublishAllStatus for SJNFAAZE1U0025017
FINER: 2024-07-08 05:44:34.309555: main: fetchAndPublishBatteryStatus for SJNFAAZE1U0025017
FINEST: 2024-07-08 05:44:34.309781: LeafSession: Executing
FINER: 2024-07-08 05:44:34.310922: main: fetchAndPublishClimateStatus for SJNFAAZE1U0025017
FINEST: 2024-07-08 05:44:34.310993: LeafSession: Executing
FINER: 2024-07-08 05:44:34.311769: main: fetchAndPublishLocation for SJNFAAZE1U0025017
FINEST: 2024-07-08 05:44:34.311830: LeafSession: Executing
FINER: 2024-07-08 05:44:34.312567: main: fetchAndPublishCockpit for SJNFAAZE1U0025017
FINEST: 2024-07-08 05:44:34.312628: LeafSession: Executing
FINEST: 2024-07-08 05:44:34.313782: main: publishStates {}
FINEST: 2024-07-08 05:44:34.314479: main: publishStates {nickname: Leaf1FANT, vin: SJNFAAZE1U0025017, json: {"nickname":"Leaf1FANT","vin":"SJNFAAZE1U0025017"}}
FINEST: 2024-07-08 05:44:34.314786: MqttClientWrapper: Publishing message nickname Leaf1FANT
FINEST: 2024-07-08 05:44:34.315545: MqttClientWrapper: Publishing message vin SJNFAAZE1U0025017
FINEST: 2024-07-08 05:44:34.316320: MqttClientWrapper: Publishing message json {"nickname":"Leaf1FANT","vin":"SJNFAAZE1U0025017"}
FINE: 2024-07-08 05:44:35.463043: LeafSession: FormatException: Unexpected character (at character 1)
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
^
FINER: 2024-07-08 05:44:35.463360: LeafSession: #0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1383)
#1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1250)
#2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:915)
#3 _parseJson (dart:convert-patch/convert_patch.dart:35)
#4 JsonDecoder.convert (dart:convert/json.dart:610)
#5 JsonCodec.decode (dart:convert/json.dart:216)
#6 CarwingsSession.request (package:dartcarwings/src/carwings_session.dart:72)
<asynchronous suspension>
#7 CarwingsSession.requestWithRetry (package:dartcarwings/src/carwings_session.dart:46)
<asynchronous suspension>
#8 CarwingsVehicle.requestLocation (package:dartcarwings/src/carwings_vehicle.dart:370)
<asynchronous suspension>
#9 CarwingsVehicleWrapper.fetchLocation (file:///app/src/leaf/carwings_wrapper.dart:148)
<asynchronous suspension>
#10 LeafSession._executeWithRetry (file:///app/src/leaf/leaf_session.dart:153)
<asynchronous suspension>
#11 LeafSession.executeWithRetry (file:///app/src/leaf/leaf_session.dart:129)
<asynchronous suspension>
#12 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#13 startUpdateLoop (file:///app/src/leaf_2_mqtt.dart:113)
<asynchronous suspension>
#14 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#15 main (file:///app/src/leaf_2_mqtt.dart:71)
<asynchronous suspension>
FINER: 2024-07-08 05:44:35.463423: LeafSession: Force a login before retrying failed execution.
FINEST: 2024-07-08 05:44:35.708661: main: publishStates {battery/percentage: 84, battery/connected: false, battery/charging: false, battery/capacity: 240.0, battery/cruisingRangeAcOffKm: 219, battery/cruisingRangeAcOffMiles: 136, battery/cruisingRangeAcOnKm: 202, battery/cruisingRangeAcOnMiles: 126, battery/lastUpdatedDateTimeUtc: 2024-07-07T20:07:00.000Z, battery/timeToFullL2InMinutes: 4:00:00.000000, battery/timeToFullL2_6kwInMinutes: 2:00:00.000000, battery/timeToFullTrickleInMinutes: 7:30:00.000000, battery/lastReceivedDateTimeUtc: 2024-07-08T05:44:35.708386Z, battery/json: {"percentage":"84","connected":"false","charging":"false","capacity":"240.0","cruisingRangeAcOffKm":"219","cruisingRangeAcOffMiles":"136","cruisingRangeAcOnKm":"202","cruisingRangeAcOnMiles":"126","lastUpdatedDateTimeUtc":"2024-07-07T20:07:00.000Z","timeToFullL2InMinutes":"4:00:00.000000","timeToFullL2_6kwInMinutes":"2:00:00.000000","timeToFullTrickleInMinutes":"7:30:00.000000","lastReceivedDateTimeUtc":"2024-07-08T05:44:35.708386Z"}, SJNFAAZE1U0025017/battery/percentage: 84, SJNFAAZE1U0025017/battery/connected: false, SJNFAAZE1U0025017/battery/charging: false, SJNFAAZE1U0025017/battery/capacity: 240.0, SJNFAAZE1U0025017/battery/cruisingRangeAcOffKm: 219, SJNFAAZE1U0025017/battery/cruisingRangeAcOffMiles: 136, SJNFAAZE1U0025017/battery/cruisingRangeAcOnKm: 202, SJNFAAZE1U0025017/battery/cruisingRangeAcOnMiles: 126, SJNFAAZE1U0025017/battery/lastUpdatedDateTimeUtc: 2024-07-07T20:07:00.000Z, SJNFAAZE1U0025017/battery/timeToFullL2InMinutes: 4:00:00.000000, SJNFAAZE1U0025017/battery/timeToFullL2_6kwInMinutes: 2:00:00.000000, SJNFAAZE1U0025017/battery/timeToFullTrickleInMinutes: 7:30:00.000000, SJNFAAZE1U0025017/battery/lastReceivedDateTimeUtc: 2024-07-08T05:44:35.708386Z, SJNFAAZE1U0025017/battery/json: {"percentage":"84","connected":"false","charging":"false","capacity":"240.0","cruisingRangeAcOffKm":"219","cruisingRangeAcOffMiles":"136","cruisingRangeAcOnKm":"202","cruisingRangeAcOnMiles":"126","lastUpdatedDateTimeUtc":"2024-07-07T20:07:00.000Z","timeToFullL2InMinutes":"4:00:00.000000","timeToFullL2_6kwInMinutes":"2:00:00.000000","timeToFullTrickleInMinutes":"7:30:00.000000","lastReceivedDateTimeUtc":"2024-07-08T05:44:35.708386Z"}}
FINEST: 2024-07-08 05:44:35.708735: MqttClientWrapper: Publishing message battery/percentage 84
FINEST: 2024-07-08 05:44:35.709001: MqttClientWrapper: Publishing message battery/connected false
FINEST: 2024-07-08 05:44:35.709110: MqttClientWrapper: Publishing message battery/charging false
FINEST: 2024-07-08 05:44:35.709202: MqttClientWrapper: Publishing message battery/capacity 240.0
FINEST: 2024-07-08 05:44:35.709304: MqttClientWrapper: Publishing message battery/cruisingRangeAcOffKm 219
FINEST: 2024-07-08 05:44:35.709399: MqttClientWrapper: Publishing message battery/cruisingRangeAcOffMiles 136
FINEST: 2024-07-08 05:44:35.709494: MqttClientWrapper: Publishing message battery/cruisingRangeAcOnKm 202
FINEST: 2024-07-08 05:44:35.709607: MqttClientWrapper: Publishing message battery/cruisingRangeAcOnMiles 126
FINEST: 2024-07-08 05:44:35.709695: MqttClientWrapper: Publishing message battery/lastUpdatedDateTimeUtc 2024-07-07T20:07:00.000Z
FINEST: 2024-07-08 05:44:35.709799: MqttClientWrapper: Publishing message battery/timeToFullL2InMinutes 4:00:00.000000
FINEST: 2024-07-08 05:44:35.709891: MqttClientWrapper: Publishing message battery/timeToFullL2_6kwInMinutes 2:00:00.000000
FINEST: 2024-07-08 05:44:35.709992: MqttClientWrapper: Publishing message battery/timeToFullTrickleInMinutes 7:30:00.000000
FINEST: 2024-07-08 05:44:35.710086: MqttClientWrapper: Publishing message battery/lastReceivedDateTimeUtc 2024-07-08T05:44:35.708386Z
FINEST: 2024-07-08 05:44:35.710201: MqttClientWrapper: Publishing message battery/json {"percentage":"84","connected":"false","charging":"false","capacity":"240.0","cruisingRangeAcOffKm":"219","cruisingRangeAcOffMiles":"136","cruisingRangeAcOnKm":"202","cruisingRangeAcOnMiles":"126","lastUpdatedDateTimeUtc":"2024-07-07T20:07:00.000Z","timeToFullL2InMinutes":"4:00:00.000000","timeToFullL2_6kwInMinutes":"2:00:00.000000","timeToFullTrickleInMinutes":"7:30:00.000000","lastReceivedDateTimeUtc":"2024-07-08T05:44:35.708386Z"}
FINEST: 2024-07-08 05:44:35.710481: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/percentage 84
FINEST: 2024-07-08 05:44:35.710572: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/connected false
FINEST: 2024-07-08 05:44:35.710662: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/charging false
FINEST: 2024-07-08 05:44:35.710762: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/capacity 240.0
FINEST: 2024-07-08 05:44:35.710852: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/cruisingRangeAcOffKm 219
FINEST: 2024-07-08 05:44:35.710955: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/cruisingRangeAcOffMiles 136
FINEST: 2024-07-08 05:44:35.711053: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/cruisingRangeAcOnKm 202
FINEST: 2024-07-08 05:44:35.711147: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/cruisingRangeAcOnMiles 126
FINEST: 2024-07-08 05:44:35.711335: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/lastUpdatedDateTimeUtc 2024-07-07T20:07:00.000Z
FINEST: 2024-07-08 05:44:35.711457: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/timeToFullL2InMinutes 4:00:00.000000
FINEST: 2024-07-08 05:44:35.711573: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/timeToFullL2_6kwInMinutes 2:00:00.000000
FINEST: 2024-07-08 05:44:35.711680: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/timeToFullTrickleInMinutes 7:30:00.000000
FINEST: 2024-07-08 05:44:35.711792: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/lastReceivedDateTimeUtc 2024-07-08T05:44:35.708386Z
FINEST: 2024-07-08 05:44:35.711905: MqttClientWrapper: Publishing message SJNFAAZE1U0025017/battery/json {"percentage":"84","connected":"false","charging":"false","capacity":"240.0","cruisingRangeAcOffKm":"219","cruisingRangeAcOffMiles":"136","cruisingRangeAcOnKm":"202","cruisingRangeAcOnMiles":"126","lastUpdatedDateTimeUtc":"2024-07-07T20:07:00.000Z","timeToFullL2InMinutes":"4:00:00.000000","timeToFullL2_6kwInMinutes":"2:00:00.000000","timeToFullTrickleInMinutes":"7:30:00.000000","lastReceivedDateTimeUtc":"2024-07-08T05:44:35.708386Z"}
FINEST: 2024-07-08 05:44:41.729235: LeafSession: Executing
FINE: 2024-07-08 05:44:42.848779: LeafSession: FormatException: Unexpected character (at character 1)
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
^
FINER: 2024-07-08 05:44:42.849017: LeafSession: #0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1383)
#1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1250)
#2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:915)
#3 _parseJson (dart:convert-patch/convert_patch.dart:35)
#4 JsonDecoder.convert (dart:convert/json.dart:610)
#5 JsonCodec.decode (dart:convert/json.dart:216)
#6 CarwingsSession.request (package:dartcarwings/src/carwings_session.dart:72)
<asynchronous suspension>
#7 CarwingsSession.requestWithRetry (package:dartcarwings/src/carwings_session.dart:46)
<asynchronous suspension>
#8 CarwingsVehicle.requestLocation (package:dartcarwings/src/carwings_vehicle.dart:370)
<asynchronous suspension>
#9 CarwingsVehicleWrapper.fetchLocation (file:///app/src/leaf/carwings_wrapper.dart:148)
<asynchronous suspension>
#10 LeafSession._executeWithRetry (file:///app/src/leaf/leaf_session.dart:153)
<asynchronous suspension>
#11 LeafSession.executeWithRetry (file:///app/src/leaf/leaf_session.dart:129)
<asynchronous suspension>
#12 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#13 startUpdateLoop (file:///app/src/leaf_2_mqtt.dart:113)
<asynchronous suspension>
#14 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#15 main (file:///app/src/leaf_2_mqtt.dart:71)
<asynchronous suspension>
FINE: 2024-07-08 05:44:42.849100: LeafSession: Exception: Execution failed.
FINER: 2024-07-08 05:44:42.849192: LeafSession: #0 LeafSession._executeWithRetry (file:///app/src/leaf/leaf_session.dart:161)
<asynchronous suspension>
#1 LeafSession.executeWithRetry (file:///app/src/leaf/leaf_session.dart:129)
<asynchronous suspension>
#2 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#3 startUpdateLoop (file:///app/src/leaf_2_mqtt.dart:113)
<asynchronous suspension>
#4 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#5 main (file:///app/src/leaf_2_mqtt.dart:71)
<asynchronous suspension>
WARNING: 2024-07-08 05:44:42.849310: main: Could not execute request.
FINEST: 2024-07-08 05:44:42.849419: MqttClientWrapper: Publishing message lastErrorDateTimeUtc 2024-07-08T05:44:42.849400Z
FINEST: 2024-07-08 05:44:42.849786: MqttClientWrapper: Publishing message {vin}/lastErrorDateTimeUtc 2024-07-08T05:44:42.849400Z
FINE: 2024-07-08 05:44:50.564184: LeafSession: Error
FINER: 2024-07-08 05:44:50.564373: LeafSession: #0 CarwingsVehicle.responseFlagHandler (package:dartcarwings/src/carwings_vehicle.dart:417)
#1 CarwingsVehicle._getCabinTemperature (package:dartcarwings/src/carwings_vehicle.dart:343)
<asynchronous suspension>
#2 CarwingsVehicle.requestCabinTemperature (package:dartcarwings/src/carwings_vehicle.dart:319)
<asynchronous suspension>
#3 CarwingsVehicleWrapper.fetchClimateStatus (file:///app/src/leaf/carwings_wrapper.dart:125)
<asynchronous suspension>
#4 LeafSession._executeWithRetry (file:///app/src/leaf/leaf_session.dart:153)
<asynchronous suspension>
#5 LeafSession.executeWithRetry (file:///app/src/leaf/leaf_session.dart:129)
<asynchronous suspension>
#6 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#7 startUpdateLoop (file:///app/src/leaf_2_mqtt.dart:113)
<asynchronous suspension>
#8 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#9 main (file:///app/src/leaf_2_mqtt.dart:71)
<asynchronous suspension>
FINER: 2024-07-08 05:44:50.564397: LeafSession: Force a login before retrying failed execution.
FINEST: 2024-07-08 05:44:56.736446: LeafSession: Executing
I think I have the same Problem - LEAF_TYPE=olderEurope - Leaf 2018
Starting leaf2mqtt ... done
Attaching to leaf2mqtt
leaf2mqtt | INFO: 2024-07-10 07:45:52.808414: main: Version: no-cockpit-older-europe-fix
leaf2mqtt | INFO: 2024-07-10 07:45:52.808478: MqttClientWrapper: Creating MQTT client with 192.168.1.91:8884 listening on leaf.
leaf2mqtt | INFO: 2024-07-10 07:45:52.810668: MqttClientWrapper: Connecting...
leaf2mqtt | INFO: 2024-07-10 07:45:52.818174: MqttClientWrapper: Mqtt connection code: MqttConnectReturnCode.connectionAccepted
leaf2mqtt | INFO: 2024-07-10 07:45:52.818202: main: Logging in.
leaf2mqtt | INFO: 2024-07-10 07:45:59.006443: main: Login successful
leaf2mqtt | INFO: 2024-07-10 07:45:59.006474: main: MQTT connected.
leaf2mqtt | INFO: 2024-07-10 07:45:59.006481: MqttClientWrapper: Subscribing to command topics
leaf2mqtt | FINEST: 2024-07-10 07:45:59.006742: main: publishStates {nickname: Leaf1acme, vin: SJNFAAZE1U0003111, SJNFAAZE1U0003111/nickname: Leaf1acme, SJNFAAZE1U0003111/vin: SJNFAAZE1U0003111}
leaf2mqtt | FINEST: 2024-07-10 07:45:59.006761: MqttClientWrapper: Publishing message nickname Leaf1acme
leaf2mqtt | FINEST: 2024-07-10 07:45:59.006788: MqttClientWrapper: Publishing message vin SJNFAAZE1U0003111
leaf2mqtt | FINEST: 2024-07-10 07:45:59.006809: MqttClientWrapper: Publishing message SJNFAAZE1U0003111/nickname Leaf1acme
leaf2mqtt | FINEST: 2024-07-10 07:45:59.006822: MqttClientWrapper: Publishing message SJNFAAZE1U0003111/vin SJNFAAZE1U0003111
leaf2mqtt | INFO: 2024-07-10 07:45:59.006841: main: Starting loop for SJNFAAZE1U0003111
leaf2mqtt | INFO: 2024-07-10 07:45:59.006848: main: Subscribing to commands for SJNFAAZE1U0003111
leaf2mqtt | FINE: 2024-07-10 07:45:59.006850: MqttClientWrapper: Subscribing to SJNFAAZE1U0003111/command
leaf2mqtt | FINE: 2024-07-10 07:45:59.006863: MqttClientWrapper: Subscribing to command
leaf2mqtt | FINE: 2024-07-10 07:45:59.006866: MqttClientWrapper: Subscribing to SJNFAAZE1U0003111/command/battery
leaf2mqtt | FINE: 2024-07-10 07:45:59.006868: MqttClientWrapper: Subscribing to command/battery
leaf2mqtt | FINE: 2024-07-10 07:45:59.006872: MqttClientWrapper: Subscribing to SJNFAAZE1U0003111/command/climate
leaf2mqtt | FINE: 2024-07-10 07:45:59.006880: MqttClientWrapper: Subscribing to command/climate
leaf2mqtt | FINE: 2024-07-10 07:45:59.006885: MqttClientWrapper: Subscribing to SJNFAAZE1U0003111/command/stats/daily
leaf2mqtt | FINE: 2024-07-10 07:45:59.006887: MqttClientWrapper: Subscribing to command/stats/daily
leaf2mqtt | FINE: 2024-07-10 07:45:59.006890: MqttClientWrapper: Subscribing to SJNFAAZE1U0003111/command/stats/monthly
leaf2mqtt | FINE: 2024-07-10 07:45:59.006893: MqttClientWrapper: Subscribing to command/stats/monthly
leaf2mqtt | FINE: 2024-07-10 07:45:59.006896: MqttClientWrapper: Subscribing to SJNFAAZE1U0003111/command/location
leaf2mqtt | FINE: 2024-07-10 07:45:59.006903: MqttClientWrapper: Subscribing to command/location
leaf2mqtt | FINE: 2024-07-10 07:45:59.006906: MqttClientWrapper: Subscribing to SJNFAAZE1U0003111/command/cockpitStatus
leaf2mqtt | FINE: 2024-07-10 07:45:59.006908: MqttClientWrapper: Subscribing to command/cockpitStatus
leaf2mqtt | FINER: 2024-07-10 07:45:59.006911: main: fetchAndPublishAllStatus for SJNFAAZE1U0003111
leaf2mqtt | FINER: 2024-07-10 07:45:59.006916: main: fetchAndPublishBatteryStatus for SJNFAAZE1U0003111
leaf2mqtt | FINEST: 2024-07-10 07:45:59.006921: LeafSession: Executing
leaf2mqtt | FINER: 2024-07-10 07:45:59.007026: main: fetchAndPublishClimateStatus for SJNFAAZE1U0003111
leaf2mqtt | FINEST: 2024-07-10 07:45:59.007032: LeafSession: Executing
leaf2mqtt | FINER: 2024-07-10 07:45:59.007093: main: fetchAndPublishLocation for SJNFAAZE1U0003111
leaf2mqtt | FINEST: 2024-07-10 07:45:59.007096: LeafSession: Executing
leaf2mqtt | FINER: 2024-07-10 07:45:59.007153: main: fetchAndPublishCockpit for SJNFAAZE1U0003111
leaf2mqtt | FINEST: 2024-07-10 07:45:59.007156: LeafSession: Executing
leaf2mqtt | FINEST: 2024-07-10 07:45:59.007572: main: publishStates {}
leaf2mqtt | FINEST: 2024-07-10 07:45:59.007638: main: publishStates {nickname: Leaf1acme, vin: SJNFAAZE1U0003111, json: {"nickname":"Leaf1acme","vin":"SJNFAAZE1U0003111"}}
leaf2mqtt | FINEST: 2024-07-10 07:45:59.007641: MqttClientWrapper: Publishing message nickname Leaf1acme
leaf2mqtt | FINEST: 2024-07-10 07:45:59.007666: MqttClientWrapper: Publishing message vin SJNFAAZE1U0003111
leaf2mqtt | FINEST: 2024-07-10 07:45:59.007677: MqttClientWrapper: Publishing message json {"nickname":"Leaf1acme","vin":"SJNFAAZE1U0003111"}
leaf2mqtt | FINE: 2024-07-10 07:46:00.082272: LeafSession: FormatException: Unexpected character (at character 1)
leaf2mqtt | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
leaf2mqtt | ^
leaf2mqtt |
leaf2mqtt | FINER: 2024-07-10 07:46:00.082752: LeafSession: #0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1383)
leaf2mqtt | #1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1250)
leaf2mqtt | #2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:915)
leaf2mqtt | #3 _parseJson (dart:convert-patch/convert_patch.dart:35)
leaf2mqtt | #4 JsonDecoder.convert (dart:convert/json.dart:610)
leaf2mqtt | #5 JsonCodec.decode (dart:convert/json.dart:216)
leaf2mqtt | #6 CarwingsSession.request (package:dartcarwings/src/carwings_session.dart:72)
leaf2mqtt |
Hi jepter
Thanks for sending log. Yours looks a little different.
Please use this version kamikac/leaf2mqtt:no-cockpit-older-europe-debug
and set LOG_LEVEL
to All
- this should give debug info.
Use pastebin with password protection to share logs as they can contain sensitive data, put link to log here and send password by email.
Hi kamiKAC,
generated a new log under https://pastebin.com/kqAUkb3G
Sorry - but how can I send you a PM
Thanks and regards
Hi It's confusing there is no private messaging in GitHub but you can paste password here https://privnote.com/# and provide link to that password in issue disussion Link will expire once I open it.
Here it is - https://privnote.com/tj4wobEW#ILsDYcOeS
Hi After the investigation I can't see any obvious trace of bug. According to logs data is published to MQTT. From the first message of this thread:
FINEST: 2024-07-01 09:54:21.630533: main: publishStates {battery/percentage: 84, battery/connected: false, battery/charging: false, battery/capacity: 240.0, battery/cruisingRangeAcOffKm: 211, battery/cruisingRangeAcOffMiles: 131, battery/cruisingRangeAcOnKm: 201, battery/cruisingRangeAcOnMiles: 125, battery/lastUpdatedDateTimeUtc: 2024-07-01T07:53:00.000Z, battery/timeToFullL2InMinutes: 3:30:00.000000, battery/timeToFullL2_6kwInMinutes: 2:00:00.000000, battery/timeToFullTrickleInMinutes: 7:00:00.000000, battery/lastReceivedDateTimeUtc: 2024-07-01T07:54:21.629992Z, battery/json: {"percentage":"84","connected":"false","charging":"false","capacity":"240.0","cruisingRangeAcOffKm":"211","cruisingRangeAcOffMiles":"131","cruisingRangeAcOnKm":"201","cruisingRangeAcOnMiles":"125","lastUpdatedDateTimeUtc":"2024-07-01T07:53:00.000Z","timeToFullL2InMinutes":"3:30:00.000000","timeToFullL2_6kwInMinutes":"2:00:00.000000","timeToFullTrickleInMinutes":"7:00:00.000000","lastReceivedDateTimeUtc":"2024-07-01T07:54:21.629992Z"}, SJNFAAZE1U0025017/battery/percentage: 84, SJNFAAZE1U0025017/battery/connected: false, SJNFAAZE1U0025017/battery/charging: false, SJNFAAZE1U0025017/battery/capacity: 240.0, SJNFAAZE1U0025017/battery/cruisingRangeAcOffKm: 211, SJNFAAZE1U0025017/battery/cruisingRangeAcOffMiles: 131, SJNFAAZE1U0025017/battery/cruisingRangeAcOnKm: 201, SJNFAAZE1U0025017/battery/cruisingRangeAcOnMiles: 125, SJNFAAZE1U0025017/battery/lastUpdatedDateTimeUtc: 2024-07-01T07:53:00.000Z, SJNFAAZE1U0025017/battery/timeToFullL2InMinutes: 3:30:00.000000, SJNFAAZE1U0025017/battery/timeToFullL2_6kwInMinutes: 2:00:00.000000, SJNFAAZE1U0025017/battery/timeToFullTrickleInMinutes: 7:00:00.000000, SJNFAAZE1U0025017/battery/lastReceivedDateTimeUtc: 2024-07-01T07:54:21.629992Z, SJNFAAZE1U0025017/battery/json: {"percentage":"84","connected":"false","charging":"false","capacity":"240.0","cruisingRangeAcOffKm":"211","cruisingRangeAcOffMiles":"131","cruisingRangeAcOnKm":"201","cruisingRangeAcOnMiles":"125","lastUpdatedDateTimeUtc":"2024-07-01T07:53:00.000Z","timeToFullL2InMinutes":"3:30:00.000000","timeToFullL2_6kwInMinutes":"2:00:00.000000","timeToFullTrickleInMinutes":"7:00:00.000000","lastReceivedDateTimeUtc":"2024-07-01T07:54:21.629992Z"}}
FINEST: 2024-07-01 09:54:21.630664: MqttClientWrapper: Publishing message battery/percentage 84
FINEST: 2024-07-01 09:54:21.641520: MqttClientWrapper: Publishing message battery/connected false
FINEST: 2024-07-01 09:54:21.643016: MqttClientWrapper: Publishing message battery/charging false
FINEST: 2024-07-01 09:54:21.643770: MqttClientWrapper: Publishing message battery/capacity 240.0
FINEST: 2024-07-01 09:54:21.644604: MqttClientWrapper: Publishing message battery/cruisingRangeAcOffKm 211
FINEST: 2024-07-01 09:54:21.646367: MqttClientWrapper: Publishing message battery/cruisingRangeAcOffMiles 131
FINEST: 2024-07-01 09:54:21.647575: MqttClientWrapper: Publishing message battery/cruisingRangeAcOnKm 201
FINEST: 2024-07-01 09:54:21.648703: MqttClientWrapper: Publishing message battery/cruisingRangeAcOnMiles 125
FINEST: 2024-07-01 09:54:21.650599: MqttClientWrapper: Publishing message battery/lastUpdatedDateTimeUtc 2024-07-01T07:53:00.000Z
FINEST: 2024-07-01 09:54:21.650897: MqttClientWrapper: Publishing message battery/timeToFullL2InMinutes 3:30:00.000000
FINEST: 2024-07-01 09:54:21.655391: MqttClientWrapper: Publishing message battery/timeToFullL2_6kwInMinutes 2:00:00.000000
FINEST: 2024-07-01 09:54:21.655610: MqttClientWrapper: Publishing message battery/timeToFullTrickleInMinutes 7:00:00.000000
FINEST: 2024-07-01 09:54:21.655766: MqttClientWrapper: Publishing message battery/lastReceivedDateTimeUtc 2024-07-01T07:54:21.629992Z
Errors are related to location endpoint which returns error as it is not available/not functional.
FINE: 2024-07-01 09:54:21.252348: LeafSession: FormatException: Unexpected character (at character 1)
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
^
FINER: 2024-07-01 09:54:21.252681: LeafSession: #0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1383)
#1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1250)
#2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:915)
#3 _parseJson (dart:convert-patch/convert_patch.dart:35)
#4 JsonDecoder.convert (dart:convert/json.dart:610)
#5 JsonCodec.decode (dart:convert/json.dart:216)
#6 CarwingsSession.request (package:dartcarwings/src/carwings_session.dart:72)
<asynchronous suspension>
#7 CarwingsSession.requestWithRetry (package:dartcarwings/src/carwings_session.dart:46)
<asynchronous suspension>
#8 CarwingsVehicle.requestLocation (package:dartcarwings/src/carwings_vehicle.dart:370)
<asynchronous suspension>
#9 CarwingsVehicleWrapper.fetchLocation (file:///app/src/leaf/carwings_wrapper.dart:148)
<asynchronous suspension>
#10 LeafSession._executeWithRetry (file:///app/src/leaf/leaf_session.dart:153)
<asynchronous suspension>
#11 LeafSession.executeWithRetry (file:///app/src/leaf/leaf_session.dart:129)
<asynchronous suspension>
#12 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#13 startUpdateLoop (file:///app/src/leaf_2_mqtt.dart:113)
<asynchronous suspension>
#14 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
#15 main (file:///app/src/leaf_2_mqtt.dart:71)
<asynchronous suspension>
FINER: 2024-07-01 09:54:21.252716: LeafSession: Force a login before retrying failed execution.
Without account with Leaf <2019 for testing I'm not able to confirm your issue :( Please use MQTTExplorer to check if topics are published as mentioned in logs.
Regards Marcin
Hi, I have had issues with no MQTT Messages with the standard image - the debug image - which loges you have got did work. Now i pulled the latest Image again - an now it works for me too. Sorry - maybe my fault - Thank you for your support
Describe the bug
I have an error message and no data is coming from MQTT: LeafSession: FormatException: Unexpected character (at character 1)
LEAF_TYPE: LEAF_TYPE=olderEurope Leaf 2018
LOG: