Hyundai-Kia-Connect / kia_uvo

A Home Assistant HACS integration that supports Kia Connect(Uvo) and Hyundai Bluelink. The integration supports the EU, Canada and the USA.
MIT License
391 stars 81 forks source link

Enable debug logging through main HA Settings integration menu #829

Closed Taomyn closed 4 months ago

Taomyn commented 4 months ago

Is your feature request related to a problem? Please describe. Enabling debug logging requires editing a config file then restarting HA, then capturing the log data manually.

Describe the solution you'd like HA allows the enable/disable of debug logging from within the integration options under the main HA settings, this makes it simpler for everyone to provide logs for issues or other requests, and works immediately.

Additional context image

At the moment the switch only enables just a few messages, but nothing useful

image

When you disable debug logging, the log file is offered as a download which you can then edit/trim as necessary.

cdnninja commented 4 months ago

Are you able to test this PR out locally to confirm it solves what you would like? I don't own a Kia anymore so can't test.

830

Taomyn commented 4 months ago

Are you able to test this PR out locally to confirm it solves what you would like? I don't own a Kia anymore so can't test.

830

I uploaded the changed json file to replace the current one, restarted HA and tested. Worked perfectly and didn't need to restart HA to toggle debugging, many thanks. This will make it much easier to quickly check things when there's a problem.

cdnninja commented 4 months ago

Awesome. It's merged for next release.