Dielee / volvo2mqtt

Home Assistant addon for connecting AAOS Volvos
MIT License
143 stars 30 forks source link

Range and location not showing. #65

Closed walts22 closed 1 year ago

walts22 commented 1 year ago

Hi Dielee, again thank you for your great work on this!

Is there a trick to get it to show range? Mine is functioning great, but doesn't pick up range or location like your examples.

Is there something else I need to do in the Volvo Developer portal?

2023_07_11_14_35_30_Settings_Home_Assistant 2023_07_11_14_38_39_Account_Volvo_Cars_Developer_Portal

Note: Car is a 2023 XC40 Recharge Twin

Dielee commented 1 year ago

Please provide some debug logs. Pretty sure this is an Volvo API issue

walts22 commented 1 year ago

Sure, nothing obvious in the logs since it is operating well. Just not collecting the range and location data.

On the Volvo developer site I am using a VCC API key I made. Do you think I need to "publish" this application to enable location and range data?

Jul 11 15:30:09 volvo2mqtt [106] - INFO: Mqtt update done. Next run in 300 seconds. INFO:root:Sending mqtt update... Jul 11 15:35:09 volvo2mqtt [106] - INFO: Sending mqtt update... INFO:root:Mqtt update done. Next run in 300 seconds. Jul 11 15:35:11 volvo2mqtt [106] - INFO: Mqtt update done. Next run in 300 seconds. INFO:root:Sending mqtt update... Jul 11 15:40:11 volvo2mqtt [106] - INFO: Sending mqtt update... INFO:root:Mqtt update done. Next run in 300 seconds. Jul 11 15:40:14 volvo2mqtt [106] - INFO: Mqtt update done. Next run in 300 seconds. INFO:root:Sending mqtt update... Jul 11 15:45:14 volvo2mqtt [106] - INFO: Sending mqtt update... INFO:root:Mqtt update done. Next run in 300 seconds. Jul 11 15:45:17 volvo2mqtt [106] - INFO: Mqtt update done. Next run in 300 seconds. INFO:root:Sending mqtt update... Jul 11 15:50:17 volvo2mqtt [106] - INFO: Sending mqtt update... INFO:root:Refreshing credentials Jul 11 15:50:17 volvo2mqtt [106] - INFO: Refreshing credentials INFO:root:Mqtt update done. Next run in 300 seconds. Jul 11 15:50:20 volvo2mqtt [106] - INFO: Mqtt update done. Next run in 300 seconds. INFO:root:Sending mqtt update... Jul 11 15:55:20 volvo2mqtt [106] - INFO: Sending mqtt update... INFO:root:Mqtt update done. Next run in 300 seconds. Jul 11 15:55:23 volvo2mqtt [106] - INFO: Mqtt update done. Next run in 300 seconds. INFO:root:Sending mqtt update... Jul 11 16:00:23 volvo2mqtt [106] - INFO: Sending mqtt update... INFO:root:Mqtt update done. Next run in 300 seconds. Jul 11 16:00:25 volvo2mqtt [106] - INFO: Mqtt update done. Next run in 300 seconds. INFO:root:Sending mqtt update... Jul 11 16:05:25 volvo2mqtt [106] - INFO: Sending mqtt update... INFO:root:Mqtt update done. Next run in 300 seconds. Jul 11 16:05:28 volvo2mqtt [106] - INFO: Mqtt update done. Next run in 300 seconds. INFO:root:Sending mqtt update... Jul 11 16:10:28 volvo2mqtt [106] - INFO: Sending mqtt update... INFO:root:Mqtt update done. Next run in 300 seconds. Jul 11 16:10:32 volvo2mqtt [106] - INFO: Mqtt update done. Next run in 300 seconds. Jul 11 16:15:32 volvo2mqtt [106] - INFO: Sending mqtt update... INFO:root:Sending mqtt update... INFO:root:Mqtt update done. Next run in 300 seconds. Jul 11 16:15:34 volvo2mqtt [106] - INFO: Mqtt update done. Next run in 300 seconds.

Dielee commented 1 year ago

This is not a debug log. Please enable debug and send the log as a file.

I can't do anything if I can't see what's going on there.

walts22 commented 1 year ago

Sorry, I still can't find the actual log file. But I have enabled debug mode and this is the new log:

  "Jul 11 19:48:07 volvo2mqtt [106] - INFO: Mqtt update done. Next run in 300 seconds.
Dielee commented 1 year ago

As said in the issue template, you can find your full log here \\<Your HA IP>\addons\volvo2mqtt\log\volvo2mqtt.log. I need the debug log from the addon start, after restarting the addon.

walts22 commented 1 year ago

I would share the full logs if I could find them.

I have tried to find that location in my HA file editor and just navigating in a web browser (with my HA ip first) and it just says 404: not found.

Any hints with finding the log? (If not you can just close this issue)

Dielee commented 1 year ago

You have to install and configure the smb share addon

walts22 commented 1 year ago

You have to install and configure the smb share addon

Sorry, this is the first time I've heard about this to find the Add On folder.

Log file attached. Thank you for your help. EDIT: File contains sensitive data

Dielee commented 1 year ago

Thanks for the log. Unfortunately I can't do anything with the log, because you don't restarted the addon. As said above, I need the startup log, the first logs after the addon started. Stop the addon, delete the log file. Then start the addon and wait about 30 secs and send me the log. AND, I removed your file because it contains your car vin. Please remove all sensitive data from the file before uploading.

walts22 commented 1 year ago

Sorry again, full log after restart here. I appreciate you removing the other log, my apologies.

Log Removed

It looks like range just isn't supported by my vehicle, which is annoying. I might be able to use a helper and the battery percentage to give me rough estimate of range.

Dielee commented 1 year ago

Jep, the whole energy API and location API isn't supported by your car. Sorry, there is nothing I can do for you.

walts22 commented 1 year ago

No problems, thanks for trying!