Closed JongsmaSimon closed 3 years ago
Hi, I have now added the zip-file that was missing. Please update your folder with the latest version 0.24 and try again. If it is not working please reply here and I will take a look at it.
Do I now have to use a Tronity Client Id and Client Secret ? Not SkodaConnect login parms? At least that is what is shown in Domoticz. Anyway I used the previous SkodaConnect parms:
In Domoticz log:
And in Tronity.log:
No, you should use Skoda Connect login parameters. Do you have Tronity plugin as well? If yes please disable it and try with Skoda first.
No I do not have Tronity plugin in Domoticz. I used the SkodaConnect parms. It fails with a 500 error after the line: Domoticz.Log("Missing Car ID, will try to get it")
I am so sorry, I wrote wrong link in README. Please remove the plugin and use the link in README now :)
Ok I thought so;-) Now in Domoticz.log: 2021-10-22 22:20:40.979 Error: (Enyaq) 'onHeartbeat' failed 'NameError'. 2021-10-22 22:20:40.979 Error: (Enyaq) ----> Line 270 in '/home/pi/domoticz/plugins/SkodaConnect-Domoticz/plugin.py', function onHeartbeat 2021-10-22 22:20:40.979 Error: (Enyaq) ----> Line 122 in '/home/pi/domoticz/plugins/SkodaConnect-Domoticz/plugin.py', function onHeartbeat 2021-10-22 22:20:40.979 Error: (Enyaq) ----> Line 50 in '/usr/lib/python3.7/asyncio/runners.py', function run 2021-10-22 22:20:40.979 Error: (Enyaq) ----> Line 584 in '/usr/lib/python3.7/asyncio/base_events.py', function run_until_complete 2021-10-22 22:20:40.979 Error: (Enyaq) ----> Line 66 in '/home/pi/domoticz/plugins/SkodaConnect-Domoticz/plugin.py', function main
And in SkodaConnect.lpog:
My SkodaConnect package is located at ~/.local/lib/python3.7/site-packages is this OK? Can it be reached there?
Hi Flopp999, I still have the same ‘NameError’ (see above). I’m not familiar with Python so any help is welcome! Regards
Skodaconnect updated the code because Skoda also did some update. I have not check what charges have been made but I will try to get some time soon to look over the code
Ok thanks in advance!
I have now tested it on a clean Linux and notice that I have not uploaded the requirement.txt
if you are on linux please run "sudo git pull" when you are in Skoda folder
I did the git pull + restart domoticz. requirements.txt is in SkodaConnect-Domoticz folder. The plugin when activated still generates the same error trace as above in domoticz log… the ‘NameError’
I found somewhere that I must do: sudo pip3 install -r requirements.txt Now the NameError is gone. Now in domoticz.log 2021-10-26 22:04:02.945 Status: Enyaq: (Enyaq) Entering work loop. 2021-10-26 22:04:02.945 Status: Enyaq: (Enyaq) Started. 2021-10-26 22:04:05.274 Status: Enyaq: (Enyaq) Initialized version 0.24, author 'flopp999' 2021-10-26 22:04:14.313 Enyaq: (Enyaq) Something went wrong when access Skoda API 2021-10-26 22:04:24.682 (Evohome DeStijl) fetch data from server
oh my god, I have been trying to install an old version of DZ, because I know that it has been working. Now ~4 hours later I found my mistake, it is just one line that needs to get it to work. I will fix this tomorrow and update you here. Now I need to sleep zzzzz
I think you mean this line: await connection.get_vehicles() I have added it and now more is happening: 2021-10-27 11:38:09.188 Enyaq hardware started. 2021-10-27 11:38:09.187 Status: Enyaq: (Enyaq) Entering work loop. 2021-10-27 11:38:09.188 Status: Enyaq: (Enyaq) Started. 2021-10-27 11:38:11.269 Status: Enyaq: (Enyaq) Initialized version 0.24, author 'flopp999' 2021-10-27 11:38:26.397 Enyaq: (Enyaq) connectionState 2021-10-27 11:38:26.397 Enyaq: (Enyaq) Connected 2021-10-27 11:38:26.399 Enyaq: (Enyaq) lockState 2021-10-27 11:38:26.399 Enyaq: (Enyaq) Locked 2021-10-27 11:38:26.400 Enyaq: (Enyaq) state 2021-10-27 11:38:26.400 Enyaq: (Enyaq) ReadyForCharging 2021-10-27 11:38:26.401 Enyaq: (Enyaq) remainingToCompleteInSeconds 2021-10-27 11:38:26.401 Enyaq: (Enyaq) 0 2021-10-27 11:38:26.402 Enyaq: (Enyaq) chargingPowerInWatts 2021-10-27 11:38:26.402 Enyaq: (Enyaq) 0.0 2021-10-27 11:38:26.403 Enyaq: (Enyaq) chargingRateInKilometersPerHour 2021-10-27 11:38:26.403 Enyaq: (Enyaq) 0.0 2021-10-27 11:38:26.404 Enyaq: (Enyaq) chargingType 2021-10-27 11:38:26.404 Enyaq: (Enyaq) Invalid 2021-10-27 11:38:26.405 Enyaq: (Enyaq) chargeMode 2021-10-27 11:38:26.405 Enyaq: (Enyaq) MANUAL 2021-10-27 11:38:26.406 Enyaq: (Enyaq) chargingSettings 2021-10-27 11:38:26.406 Enyaq: (Enyaq) PROFILE 2021-10-27 11:38:26.408 Enyaq: (Enyaq) Traceback (most recent call last): 2021-10-27 11:38:26.408 File "/home/pi/domoticz/plugins/SkodaConnect-Domoticz/plugin.py", line 80, in main 2021-10-27 11:38:26.408 UpdateDevice(name, 0, data) 2021-10-27 11:38:26.408 File "/home/pi/domoticz/plugins/SkodaConnect-Domoticz/plugin.py", line 235, in UpdateDevice 2021-10-27 11:38:26.408 if (ID in Devices): 2021-10-27 11:38:26.408 UnboundLocalError: local variable 'ID' referenced before assignment 2021-10-27 11:38:26.408 2021-10-27 11:38:26.408 Enyaq: (Enyaq) <class 'UnboundLocalError'> 2021-10-27 11:38:26.408 Enyaq: (Enyaq) Something went wrong when access Skoda API
It seems there are new attributes like 'chargingSettings' that are not catched? Maybe report these in general sense & prevent error? Or plugin will fail on each update to SkodaConnect package.
I am working on a solution for new devices
I hope to be ready today
I am finally done. Please download version 0.25 and I hope it will work now
This helped a lot! 14 new devices are now present with values. Thanks!
Still errors in domoticz.log like following; not sure what they mean.. 2021-10-27 23:57:10.779 Error: Enyaq: (Enyaq) Please create an issue at github and write this error. Missing chargingSettings - PROFILE 2021-10-27 23:57:10.833 Error: Enyaq: (Enyaq) Please create an issue at github and write this error. Missing connectionState - Off 2021-10-27 23:57:10.863 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["image"]="", ["deviceID"]="", ["name"]="Enyaq - Cable connected", ["changed"]=true, ["protected"]=false, ["iconNumber"]=18, ["lastLevel"]=255, ["subType"]="Custom Sensor", ["switchTypeValue"]=0, ["lastUpdate"]="", ["batteryLevel"]=1687148000, ["baseType"]="device", ["rawData"]={"1"}, ["id"]=200, ["data"]={["Image"]="Skoda", ["hardwareType"]="SkodaConnect 0.24", ["customImage"]=102, ["_state"]="1", ["hardwareTypeValue"]=94, ["protected"]=false, ["unit"]=2, ["sensorUnit"]="", ["hardwareID"]=-1512146177, ["icon"]="Skoda", ["_nValue"]=0, ["sensorType"]=1, ["hardwareName"]="Enyaq"}, ["switchType"]="On/Off", ["signalLevel"]=1687147928, ["description"]="", ["timedOut"]=true, ["deviceType"]="General"} 2021-10-27 23:57:11.011 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["image"]="", ["deviceID"]="", ["name"]="Enyaq - Cable locked", ["changed"]=true, ["protected"]=false, ["iconNumber"]=251, ["lastLevel"]=255, ["subType"]="Custom Sensor", ["switchTypeValue"]=0, ["lastUpdate"]="", ["batteryLevel"]=1687148000, ["baseType"]="device", ["rawData"]={"1"}, ["id"]=201, ["data"]={["Image"]="Skoda", ["hardwareType"]="SkodaConnect 0.24", ["customImage"]=102, ["_state"]="1", ["hardwareTypeValue"]=94, ["protected"]=false, ["unit"]=3, ["sensorUnit"]="", ["hardwareID"]=-1512146177, ["icon"]="Skoda", ["_nValue"]=0, ["sensorType"]=1, ["hardwareName"]="Enyaq"}, ["switchType"]="On/Off", ["signalLevel"]=1687147928, ["description"]="", ["timedOut"]=false, ["deviceType"]="General"} 2021-10-27 23:57:11.031 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["image"]="", ["deviceID"]="", ["name"]="Enyaq - Charge", ["changed"]=true, ["protected"]=false, ["iconNumber"]=100, ["lastLevel"]=255, ["subType"]="Custom Sensor", ["switchTypeValue"]=0, ["lastUpdate"]="", ["batteryLevel"]=1687148000, ["baseType"]="device", ["rawData"]={"0"}, ["id"]=202, ["data"]={["Image"]="Skoda", ["hardwareType"]="SkodaConnect 0.24", ["customImage"]=102, ["_state"]="0", ["hardwareTypeValue"]=94, ["protected"]=false, ["unit"]=4, ["sensorUnit"]="", ["hardwareID"]=451529471, ["icon"]="Skoda", ["_nValue"]=0, ["sensorType"]=1, ["hardwareName"]="Enyaq"}, ["switchType"]="On/Off", ["signalLevel"]=1687147928, ["description"]="", ["timedOut"]=false, ["deviceType"]="General"} 2021-10-27 23:57:11.032 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["image"]="", ["deviceID"]="", ["name"]="Enyaq - Remaining to complete", ["changed"]=true, ["protected"]=false, ["iconNumber"]=20, ["lastLevel"]=255, ["subType"]="Custom Sensor", ["switchTypeValue"]=0, ["lastUpdate"]="", ["batteryLevel"]=1687148000, ["baseType"]="device", ["rawData"]={"0.0"}, ["id"]=203, ["data"]={["Image"]="Skoda", ["hardwareType"]="SkodaConnect 0.24", ["customImage"]=102, ["_state"]="0.0", ["hardwareTypeValue"]=94, ["protected"]=false, ["unit"]=10, ["sensorUnit"]="minutes", ["hardwareID"]=-1879762177, ["icon"]="Skoda", ["_nValue"]=0, ["sensorType"]=0, ["hardwareName"]="Enyaq"}, ["switchType"]="On/Off", ["signalLevel"]=1687147928, ["description"]="", ["timedOut"]=false, ["deviceType"]="General"} 2021-10-27 23:57:11.033 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["image"]="", ["deviceID"]="", ["name"]="Enyaq - Charging power", ["changed"]=true, ["protected"]=false, ["iconNumber"]=109, ["lastLevel"]=255, ["subType"]="Custom Sensor", ["switchTypeValue"]=0, ["lastUpdate"]="", ["batteryLevel"]=1687148000, ["baseType"]="device", ["rawData"]={"0.0"}, ["id"]=204, ["data"]={["Image"]="Skoda", ["hardwareType"]="SkodaConnect 0.24", ["customImage"]=102, ["_state"]="0.0", ["hardwareTypeValue"]=94, ["protected"]=false, ["unit"]=6, ["sensorUnit"]="kW", ["hardwareID"]=-1879762177, ["icon"]="Skoda", ["_nValue"]=0, ["sensorType"]=0, ["hardwareName"]="Enyaq"}, ["switchType"]="On/Off", ["signalLevel"]=1687147928, ["description"]="", ["timedOut"]=false, ["deviceType"]="General"} 2021-10-27 23:57:11.034 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["image"]="", ["deviceID"]="", ["name"]="Enyaq - Charging rate", ["changed"]=true, ["protected"]=false, ["iconNumber"]=241, ["lastLevel"]=255, ["subType"]="Custom Sensor", ["switchTypeValue"]=0, ["lastUpdate"]="", ["batteryLevel"]=1687148000, ["baseType"]="device", ["rawData"]={"0.0"}, ["id"]=205, ["data"]={["Image"]="Skoda", ["hardwareType"]="SkodaConnect 0.24", ["customImage"]=102, ["_state"]="0.0", ["hardwareTypeValue"]=94, ["protected"]=false, ["unit"]=7, ["sensorUnit"]="km/h", ["hardwareID"]=83942014, ["icon"]="Skoda", ["_nValue"]=0, ["sensorType"]=0, ["hardwareName"]="Enyaq"}, ["switchType"]="On/Off", ["signalLevel"]=1687147928, ["description"]="", ["timedOut"]=false, ["deviceType"]="General"} 2021-10-27 23:57:11.035 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["image"]="", ["deviceID"]="", ["name"]="Enyaq - Charging type", ["changed"]=true, ["protected"]=false, ["iconNumber"]=161, ["lastLevel"]=255, ["subType"]="Custom Sensor", ["switchTypeValue"]=0, ["lastUpdate"]="", ["batteryLevel"]=1687148000, ["baseType"]="device", ["rawData"]={"0"}, ["id"]=206, ["data"]={["Image"]="Skoda", ["hardwareType"]="SkodaConnect 0.24", ["customImage"]=102, ["_state"]="0", ["hardwareTypeValue"]=94, ["protected"]=false, ["unit"]=8, ["sensorUnit"]="", ["hardwareID"]=83942014, ["icon"]="Skoda", ["_nValue"]=0, ["sensorType"]=1, ["hardwareName"]="Enyaq"}, ["switchType"]="On/Off", ["signalLevel"]=1687147928, ["description"]="", ["timedOut"]=false, ["deviceType"]="General"} 2021-10-27 23:57:11.036 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["image"]="", ["deviceID"]="", ["name"]="Enyaq - Charge mode", ["changed"]=true, ["protected"]=false, ["iconNumber"]=90, ["lastLevel"]=255, ["subType"]="Custom Sensor", ["switchTypeValue"]=0, ["lastUpdate"]="", ["batteryLevel"]=1687148000, ["baseType"]="device", ["rawData"]={"1"}, ["id"]=207, ["data"]={["Image"]="Skoda", ["hardwareType"]="SkodaConnect 0.24", ["customImage"]=102, ["_state"]="1", ["hardwareTypeValue"]=94, ["protected"]=false, ["unit"]=5, ["sensorUnit"]="", ["hardwareID"]=2047397132, ["icon"]="Skoda", ["_nValue"]=0, ["sensorType"]=1, ["hardwareName"]="Enyaq"}, ["switchType"]="On/Off", ["signalLevel"]=1687147928, ["description"]="", ["timedOut"]=false, ["deviceType"]="General"} 2021-10-27 23:57:11.037 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["image"]="", ["deviceID"]="", ["name"]="Enyaq - Charge Settings", ["changed"]=true, ["protected"]=false, ["iconNumber"]=76, ["lastLevel"]=255, ["subType"]="Custom Sensor", ["switchTypeValue"]=0, ["lastUpdate"]="", ["batteryLevel"]=1687148000, ["baseType"]="device", ["rawData"]={"-1"}, ["id"]=208, ["data"]={["Image"]="Skoda", ["hardwareType"]="SkodaConnect 0.24", ["customImage"]=102, ["_state"]="-1", ["hardwareTypeValue"]=94, ["protected"]=false, ["unit"]=11, ["sensorUnit"]="?", ["hardwareID"]=-283894516, ["icon"]="Skoda", ["_nValue"]=0, ["sensorType"]=0, ["hardwareName"]="Enyaq"}, ["switchType"]="On/Off", ["signalLevel"]=1687147928, ["description"]="", ["timedOut"]=false, ["deviceType"]="General"} 2021-10-27 23:57:11.038 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["image"]="", ["deviceID"]="", ["name"]="Enyaq - Range", ["changed"]=true, ["protected"]=false, ["iconNumber"]=69, ["lastLevel"]=255, ["subType"]="Custom Sensor", ["switchTypeValue"]=0, ["lastUpdate"]="", ["batteryLevel"]=1687148000, ["baseType"]="device", ["rawData"]={"341.0"}, ["id"]=209, ["data"]={["Image"]="Skoda", ["hardwareType"]="SkodaConnect 0.24", ["customImage"]=102, ["_state"]="341.0", ["hardwareTypeValue"]=94, ["protected"]=false, ["unit"]=9, ["sensorUnit"]="km", ["hardwareID"]=-283894516, ["icon"]="Skoda", ["_nValue"]=0, ["sensorType"]=0, ["hardwareName"]="Enyaq"}, ["switchType"]="On/Off", ["signalLevel"]=1687147928, ["description"]="", ["timedOut"]=false, ["deviceType"]="General"} 2021-10-27 23:57:11.194 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["protected"]=false, ["iconNumber"]=123, ["data"]={["protected"]=false, ["hardwareName"]="Enyaq", ["hardwareType"]="SkodaConnect 0.24", ["sensorUnit"]="%", ["unit"]=1, ["sensorType"]=0, ["hardwareTypeValue"]=94, ["_nValue"]=0, ["Image"]="Skoda", ["_state"]="100", ["customImage"]=102, ["icon"]="Skoda", ["hardwareID"]=1312193721}, ["rawData"]={"100"}, ["deviceID"]="", ["deviceType"]="General", ["image"]="", ["subType"]="Custom Sensor", ["id"]=210, ["switchType"]="On/Off", ["switchTypeValue"]=0, ["description"]="", ["lastUpdate"]="", ["signalLevel"]=1687147928, ["batteryLevel"]=1687148000, ["timedOut"]=false, ["lastLevel"]=255, ["baseType"]="device", ["changed"]=true, ["name"]="Enyaq - Battery level"} 2021-10-27 23:57:11.196 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["protected"]=false, ["iconNumber"]=26, ["data"]={["protected"]=false, ["hardwareName"]="Enyaq", ["hardwareType"]="SkodaConnect 0.24", ["sensorUnit"]="", ["unit"]=12, ["sensorType"]=1, ["hardwareTypeValue"]=94, ["_nValue"]=0, ["Image"]="Skoda", ["_state"]="1", ["customImage"]=102, ["icon"]="Skoda", ["hardwareID"]=1312193721}, ["rawData"]={"1"}, ["deviceID"]="", ["deviceType"]="General", ["image"]="", ["subType"]="Custom Sensor", ["id"]=211, ["switchType"]="On/Off", ["switchTypeValue"]=0, ["description"]="", ["lastUpdate"]="", ["signalLevel"]=1687147928, ["batteryLevel"]=1687148000, ["timedOut"]=false, ["lastLevel"]=255, ["baseType"]="device", ["changed"]=true, ["name"]="Enyaq - maxChargeCurrentAc"} 2021-10-27 23:57:11.197 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["protected"]=false, ["iconNumber"]=151, ["data"]={["protected"]=false, ["hardwareName"]="Enyaq", ["hardwareType"]="SkodaConnect 0.24", ["sensorUnit"]="", ["unit"]=13, ["sensorType"]=1, ["hardwareTypeValue"]=94, ["_nValue"]=0, ["Image"]="Skoda", ["_state"]="-1", ["customImage"]=102, ["icon"]="Skoda", ["hardwareID"]=944357198}, ["rawData"]={"-1"}, ["deviceID"]="", ["deviceType"]="General", ["image"]="", ["subType"]="Custom Sensor", ["id"]=212, ["switchType"]="On/Off", ["switchTypeValue"]=0, ["description"]="", ["lastUpdate"]="", ["signalLevel"]=1687147928, ["batteryLevel"]=1687148000, ["timedOut"]=false, ["lastLevel"]=255, ["baseType"]="device", ["changed"]=true, ["name"]="Enyaq - autoUnlockPlugWhenCharged"} 2021-10-27 23:57:11.199 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["protected"]=false, ["iconNumber"]=62, ["data"]={["protected"]=false, ["hardwareName"]="Enyaq", ["hardwareType"]="SkodaConnect 0.24", ["sensorUnit"]="%", ["unit"]=14, ["sensorType"]=0, ["hardwareTypeValue"]=94, ["_nValue"]=0, ["Image"]="Skoda", ["_state"]="90", ["customImage"]=102, ["icon"]="Skoda", ["hardwareID"]=-1386934450}, ["rawData"]={"90"}, ["deviceID"]="", ["deviceType"]="General", ["image"]="", ["subType"]="Custom Sensor", ["id"]=213, ["switchType"]="On/Off", ["switchTypeValue"]=0, ["description"]="", ["lastUpdate"]="", ["signalLevel"]=1687147928, ["batteryLevel"]=1687148000, ["timedOut"]=false, ["lastLevel"]=255, ["baseType"]="device", ["changed"]=true, ["name"]="Enyaq - targetStateOfChargeInPercent"}
Perfect
dzVents has nothing to do with the plug-in, correct?
The errors, this is want I wanted to know. I have not tested all different settings so I didn’t know what the values could be. If anyone get that error I want the user to create an issue so I can update the plugin.
New version will come later today with correct values for your errors
Hi, what model of Skoda do you have? I have Enyaq, so I can only test against my own car. Maybe some data is not compatible with your car.
Hi Flopp999,
I have an Enyaq as well a iV60 to be precise..
Best regards, Simon
Op 28 okt. 2021 om 21:28 heeft flopp999 @.***> het volgende geschreven:
Hi, what model of Skoda do you have? I have Enyaq, so I can only test against my own car. Maybe some data is not compatible with your car.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
I could send you the output of SkodaConnect example.py quite some data is shown.
Hi Flopp999 did you maybe consider using https://www.domoticz.com/wiki/EVehicles?
Version 0.26 is possible to download now
Thanks for the PDF I also have used Skodaconnect on my own car :)
I will take a look at EVehicles, that was new to me, thanks.
Please pull the new version then delete all devices for the plugin, i have new name on some devices
Ok understood and thanks again
0.26 now only creates 5 devices. Some very useful ones are now missing..
0.26 now only creates 5 devices. Some very useful ones are now missing..
Strange, for me it creates 29 devices. Try to restart plugin again. Any error message?
0.26 now only creates 5 devices. Some very useful ones are now missing..
What IDs is it for that 5 devices?
You need to fill in your battery size, that is a new field in plug-in settings. IV60 has 58 kWh netto
Sorry had to restart DZ. Now works fine. I have 22 devices now. No errors (other than dzVents).
Strange, you should get same as me. Can you send a list of what IDs you get?
Sorry, I was tired yesterday, I also got 22 devices :)
I will set version 0.26 to Main and release it, without 2 of the devices(windowsheating and zonesetting) I will fix them later.
Hi Flopp,
The SkodaConnect library is working ok for me with my user/password (I directly patched the values in example.py and actually got back (a lot of) data for my Enyaq iV 60.
I then installed the plugin in the Domoticz plugins directory:
I then used this plugin in Domoticz:
On starting the plugin from Domoticz (with my user/password) the following trace is shown in the Domoticz log:
The SkodaConnect.log shows the following: 2021-10-21 14:02:29.221706 ===onStart=== 2021-10-21 14:02:39.266964 ===heartbeat=== 2021-10-21 14:02:39.268011 Entered CheckInternet 2021-10-21 14:02:39.268616 Ping 2021-10-21 14:02:39.556061 Internet is OK 2021-10-21 14:02:49.223155 ===heartbeat=== 2021-10-21 14:02:59.245929 ===heartbeat=== 2021-10-21 14:03:09.245689 ===heartbeat=== etc..
Am I missing something here?